mqt.ionshuttler.multi_shuttler.inside.shuttle

Module Contents

find_pz_order(graph: Graph, gate_info_list: dict[str, list[int]]) list[str][source]
shuttle(graph: Graph, priority_queue: dict[int, str], timestep: int, cycle_or_paths: str, unique_folder: Path) None[source]
main(graph: Graph, sequence: list[int] | None, cycle_or_paths: str, record_path: str | None = None) int[source]

Run the inside-layout shuttle scheduler.

Integer gate IDs in sequence require corresponding entries in graph.gate_info. When requested, timeline snapshots are written to record_path.

Parameters:
  • graph – Configured inside architecture and scheduling state.

  • sequence – Optional ordered stable gate IDs, replacing graph.sequence.

  • cycle_or_paths – Conflict-resolution strategy used for movement.

  • record_path – Optional path for JSON timeline snapshots.

Returns:

The number of simulated timesteps.