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:
PydanticBaseDescribes 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
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
Merge contiguous
Waitinstructions into one if they are separated only byBlockinstructions.Qubits on which dynamical decoupling should be applied.
Skip processing leading
Waitinstructions.Skip processing trailing
Waitinstructions.Available decoupling gate sequences to choose from in this strategy.
Methods
- Parameters:
- merge_contiguous_waits: bool#
Merge contiguous
Waitinstructions into one if they are separated only byBlockinstructions.
- target_qubits: frozenset[str] | None#
Qubits on which dynamical decoupling should be applied. If
None, all qubits are targeted.
- 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.ratioin descending order. Then the longest fitting pattern is determined by comparingDDGateSequence.ratiowith the duration of the time window divided by the PRX gate duration.
Inheritance
