mqt.ionshuttler.linear.dd.result¶
Shared result and report values for Linear dynamical-decoupling passes.
Module Contents¶
- class DDReport[source]¶
Bases:
ProtocolDescribe a method-specific report that supports JSON serialization.
- class LocalDDSequence[source]¶
Describe one ion-local pulse sequence in a DD method report.
- __post_init__() None[source]¶
Validate pulse positions and their associated idle window.
- Raises:
TypeError – If a sequence field has the wrong type.
ValueError – If the window or pulse positions are inconsistent.
- classmethod from_dict(data: object) LocalDDSequence[source]¶
Restore a local sequence from JSON-compatible values.
- Returns:
The restored local DD sequence.
- Raises:
ValueError – If the serialized sequence is malformed.
- class DDPassResult[source]¶
Bases:
Generic[ReportT]Contain an augmented schedule and diagnostics from one DD pass.
- schedule: ActionSchedule¶
- architecture: Architecture¶
- report: ReportT¶
- __post_init__() None[source]¶
Validate the schedule, report, and optional explanation.
- Raises:
TypeError – If the schedule or report violates the pass-result protocol.
ValueError – If an unavailable reason is empty.
- classmethod from_dict(data: object, report_class: type[ReportT], *, action_types: Sequence[type[Action]] | None = None, action_decoders: ActionDecoders | None = None) DDPassResult[ReportT][source]¶
Restore a DD-pass result with an explicit report class.
- Returns:
The restored DD-pass result.
- Raises:
ValueError – If the serialized envelope or report type is malformed.