mqt.ionshuttler.linear.config¶
Settings for Linear hardware timing and schedule search.
Module Contents¶
- SINGLE_QUBIT_GATE_NAMES¶
- TWO_QUBIT_GATE_NAMES¶
- GATE_NAMES¶
- class GateTiming[source]¶
Configure gate durations and virtual single-ion rotations.
Rx and Ry use physical controls by default. Rz defaults to a zero-duration virtual frame update, as is common on trapped-ion hardware.
- __post_init__() None[source]¶
Ensure the configured timings describe usable gate implementations.
- Raises:
ValueError – If a gate name or duration is invalid.
- duration_for(gate_name: str) int[source]¶
Return how many timesteps a gate takes.
- Raises:
TypeError – If the stored duration is not an integer.
ValueError – If the hardware does not offer
gate_name.
- is_virtual(gate_name: str) bool[source]¶
Return whether a single-ion rotation is implemented virtually.
- Raises:
ValueError – If
gate_nameis not a supported single-ion rotation.
- class HardwareTiming[source]¶
Describe the timing and gate implementations offered by the hardware.
- transport: TransportTiming¶
- gates: GateTiming¶
- class SearchConfig[source]¶
Configure how the compiler searches for a schedule.
A finite
horizonplans a few gates at a time and commitscommitted_gatesbefore planning again. SethorizontoNoneto search the complete circuit at once.heuristicselects the remaining-cost estimate that guides the search: the defaultNoneuses a quality-oriented estimate that finds useful schedules faster but may overestimate the remaining time, whilezero_heuristic()is admissible and supports exact search when all other limits and shortcuts are also disabled. Any other callable matchingHeuristicFnmay be supplied instead.- heuristic: HeuristicFn | None = None¶
- pre_partition_config: FineGrainedTabuConfig | None = None¶
- __post_init__() None[source]¶
Ensure all search limits are meaningful and mutually consistent.
- Raises:
TypeError – If a Boolean option is not Boolean.
ValueError – If a numeric bound or horizon relationship is invalid.
- class LinearCompilerConfig[source]¶
Group the hardware timing and schedule-search settings.
- hardware_timing: HardwareTiming¶
- search: SearchConfig¶