DDStrategy#

Module: iqm.station_control.interface.models.circuit

class DDStrategy(*, merge_contiguous_waits=True, target_qubits=None, skip_leading_wait=True, skip_trailing_wait=True, gate_sequences=<factory>)#

Bases: PydanticBase

Describes a particular dynamical decoupling strategy.

The current standard DD stategy can be found in STANDARD_DD_STRATEGY, but users can use this class to provide their own dynamical decoupling strategies.

See Ezzell et al., Phys. Rev. Appl. 20, 064027 (2022) for information on DD sequences.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Attributes

model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

merge_contiguous_waits

Merge contiguous Wait instructions into one if they are separated only by Block instructions.

target_qubits

Qubits on which dynamical decoupling should be applied.

skip_leading_wait

Skip processing leading Wait instructions.

skip_trailing_wait

Skip processing trailing Wait instructions.

gate_sequences

Available decoupling gate sequences to choose from in this strategy.

Methods

Parameters:
merge_contiguous_waits: bool#

Merge contiguous Wait instructions into one if they are separated only by Block instructions.

target_qubits: frozenset[str] | None#

Qubits on which dynamical decoupling should be applied. If None, all qubits are targeted.

skip_leading_wait: bool#

Skip processing leading Wait instructions.

skip_trailing_wait: bool#

Skip processing trailing Wait instructions.

model_config: ClassVar[ConfigDict] = {'extra': 'ignore', 'ser_json_inf_nan': 'constants', 'validate_assignment': True, 'validate_default': True}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

gate_sequences: list[DDGateSequence]#

Available decoupling gate sequences to choose from in this strategy.

The Dynamical Decoupling algorithm uses the best fitting gate sequence by first sorting them by DDGateSequence.ratio in descending order. Then the longest fitting pattern is determined by comparing DDGateSequence.ratio with the duration of the time window divided by the PRX gate duration.

Inheritance

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