mqt.ionshuttler.linear.dd.timeline¶
Reconstruct timed hardware state from a compiled Linear schedule.
Module Contents¶
- class CompiledTimeline[source]¶
Provide schedule-boundary positions, resource occupancy, and actions.
- ion_position(ion_id: int, timestep: int) int[source]¶
Return an ion’s site at one schedule boundary.
- ion_busy(ion_id: int, timestep: int) bool[source]¶
Return whether an ion is occupied by any physical action.
- ion_gate_busy(ion_id: int, timestep: int) bool[source]¶
Return whether an ion is occupied specifically by a gate.
- pz_busy(zone_name: str, timestep: int) bool[source]¶
Return whether a processing zone is occupied by a gate.
- position_occupied_by_other(ion_id: int, site: int, timestep: int) bool[source]¶
Return whether another ion occupies a site at a boundary.
- action_at(timestep: int) tuple[Action, ...] | None[source]¶
Return the ordered actions at a schedule boundary, if any.
- scheduled_action_at(timestep: int) tuple[ScheduledAction, ...] | None[source]¶
Return actions with stable identity at one boundary.
- state_at(timestep: int) State[source]¶
Reconstruct the hardware portion of state at a schedule boundary.
- Returns:
The reconstructed hardware state.
- with_inserted_single_qubit_gate(scheduled_action: ScheduledAction, zone: str, timestep: int) CompiledTimeline[source]¶
Return a coherent timeline containing one additional physical gate.
- Returns:
A timeline with updated resource and ordered-action indices.
- Raises:
ValueError – If the action is not a physical single-qubit gate or would finish beyond the timeline.
- build_timeline(schedule: ActionSchedule, architecture: Architecture) CompiledTimeline[source]¶
Reconstruct a timeline solely from executable schedule information.
- Parameters:
schedule – Executable schedule to reconstruct.
architecture – Hardware model against which to interpret the actions.
- Returns:
The reconstructed immutable timeline.