DDGateSequence#

Module: iqm.station_control.interface.models.circuit

class DDGateSequence(ratio, gate_pattern, alignment)#

Bases: NamedTuple

Defines a decoupling gate sequence for a single qubit.

Gate pattern can be defined in two ways. It can be a string containing “X” and “Y” characters, encoding a PRX gate sequence. For example, “YXYX” corresponds to the XY4 sequence, “XYXYYXYX” to the EDD sequence, etc. If more flexibility is needed, a gate pattern can be defined as a sequence of PRX gate argument tuples (that contain a rotation angle and a phase angle). For example, sequence “YX” could be written as [(math.pi, math.pi / 2), (math.pi, 0)].

Create new instance of DDGateSequence(ratio, gate_pattern, alignment)

Attributes

alignment

Temporal alignment of the DD sequence within the idle window.

gate_pattern

Gate pattern as a string shorthand (e.g. "XYXY") or an explicit PRX arg list.

ratio

Minimal idle duration (in PRX gate durations) in which this sequence can be applied.

Methods

Parameters:
ratio: int#

Minimal idle duration (in PRX gate durations) in which this sequence can be applied.

gate_pattern: str | list[tuple[float, float]]#

Gate pattern as a string shorthand (e.g. "XYXY") or an explicit PRX arg list.

alignment: str#

Temporal alignment of the DD sequence within the idle window.

Accepts the values “asap”, “center” and “alap”.

Inheritance

Inheritance diagram of iqm.station_control.interface.models.circuit.DDGateSequence