mqt.ionshuttler.linear.dd.critical_segments¶
Replay logic-aware normalized phase over ion-local critical segments.
Module Contents¶
- SegmentationMode¶
- class CriticalSegment[source]¶
Describe one interval over which longitudinal phase remains comparable.
- class CriticalSegmentResult[source]¶
Contain logic-aware normalized-phase replay over critical segments.
phase_costis a schedule-ranking surrogate: the sum of squared normalized segment phases. It is not a joint-coherence decay exponent or a complete circuit-error model.- segments: tuple[CriticalSegment, ...]¶
- normalized_sensitivity_values(architecture: Architecture, profile: FieldProfile | None = None) tuple[float, ...][source]¶
Return a nonnegative dimensionless sensitivity envelope with unit RMS.
- Raises:
ValueError – If the profile does not match the architecture or cannot be normalized.
- gate_z_effect(action: Action, ion: int) int | None[source]¶
Return a preserving gate’s Z sign, or
Nonefor a mixing gate.- Raises:
TypeError – If
actionis not a supported algorithmic gate.
- compute_critical_segments(schedule: ActionSchedule, architecture: Architecture, *, sensitivity_profile: FieldProfile | None = None, dt: float = 1.0, segmentation: SegmentationMode = 'critical', local_pulse_action_ids: frozenset[int] = frozenset()) CriticalSegmentResult[source]¶
Replay ion-local segments and their normalized squared-phase proxy.
- Returns:
The reconstructed critical segments and their phase objective.
- Raises:
ValueError – If the analysis parameters or architecture metadata are invalid.