mqt.ionshuttler.linear.dd.sadd¶
Public types for the shuttling-aware dynamical decoupling (SADD) pass.
Module Contents¶
- class SADDMethod[source]¶
Bases:
enum.StrEnumSelect a shuttling-aware dynamical decoupling (SADD) method.
- PULSE_ONLY = 'pulse_only_sadd'¶
- FULL = 'full_sadd'¶
- class OperationDurations[source]¶
Define durations of operations that SADD may synthesize.
- __post_init__() None[source]¶
Validate that every synthesized operation occupies positive time.
- Raises:
TypeError – If a duration is not an integer.
ValueError – If a duration is not positive.
- class SADDConfig[source]¶
Configure the shared pulse-only and transport-enabled SADD backend.
SADD denotes shuttling-aware dynamical decoupling.
timeout_sbounds each control window’s solve. The unchanged schedule is always an admissible solution and is supplied to the solver as a hint, so a window that runs out of time yields a weaker improvement or none at all rather than an invalid or missing result. Raise it for long windows or many participating ions, where proving optimality takes longer.When
operation_durationsisNone, SADD infers uniform transport durations already present in the schedule and uses the standard operation defaults for transport kinds that are absent.- ion_preselection: Literal['phase', 'distance'] = 'phase'¶
- opportunity_order: Literal['chronological', 'reverse_chronological'] = 'chronological'¶
- operation_durations: OperationDurations | None = None¶
- __post_init__() None[source]¶
Validate optimization and problem parameters.
- Raises:
TypeError – If a parameter has the wrong type.
ValueError – If a parameter is outside its supported range.
- class SADDOpportunityRecord[source]¶
Describe one ordered SADD optimization opportunity and its outcome.
transport_deltarecords the signed change in scheduled transport actions by concrete action type between the opportunity input and proposed result.- __post_init__() None[source]¶
Validate and freeze nested opportunity diagnostics.
- Raises:
TypeError – If a field has the wrong type.
ValueError – If a field contains an invalid value.
- class SADDReport[source]¶
Collect ordered opportunity records produced by one SADD pass.
- method: SADDMethod¶
- opportunities: tuple[SADDOpportunityRecord, ...] = ()¶
- __post_init__() None[source]¶
Normalize opportunity records to an immutable tuple.
- Raises:
TypeError – If the method or an opportunity has the wrong type.
- property sequences: tuple[LocalDDSequence, ...]¶
Accepted ion-local pulse sequences in opportunity order.
- classmethod from_dict(data: object) SADDReport[source]¶
Restore a SADD report from JSON-compatible values.
- Returns:
The restored SADD report.
- Raises:
ValueError – If the serialized report is malformed.
- run_sadd(schedule: ActionSchedule, architecture: Architecture, method: SADDMethod, config: SADDConfig | None = None) DDPassResult[SADDReport][source]¶
Apply shuttling-aware dynamical decoupling to a compiled schedule.
Pulse-only and transport-enabled SADD use the same optimization backend;
methodcontrols whether the solver may synthesize transport.- Returns:
The transformed schedule and an ordered SADD report.
- Raises:
TypeError – If
methodis not aSADDMethod.ValueError – If the schedule and architecture are incompatible or the architecture lacks actions required by the selected method.