mqt.ionshuttler.linear.partition_bias¶
Fine-grained processing-zone preferences for Linear schedule search.
Module Contents¶
- compute_gate_zone_assignment(gate_order: Sequence[int], gates: Mapping[int, GateAction], architecture: Architecture, *, config: FineGrainedTabuConfig | None = None) dict[int, str][source]¶
Assign each gate to a preferred processing zone.
The assignment only biases schedule search; normal action validation still determines where a gate may execute. Architectures with one processing zone need no preference and return immediately without running the partitioner.
- Parameters:
gate_order – Stable gate ids in circuit order.
gates – Linear gate actions keyed by gate id.
architecture – Hardware layout whose zones receive the gates.
config – Optional fine-grained tabu-search settings.
- Returns:
Preferred processing-zone names keyed by gate id, or an empty mapping for a single-zone architecture.