bloqade.lanes.analysis.placement.strategy.assert_single_cz_zone
← Module overview
function
source
functionassert_single_cz_zone¶source
bloqade.lanes.analysis.placement.strategy.assert_single_cz_zone
Signature
def assert_single_cz_zone(arch_spec: ArchSpec, strategy_name: str) -> NoneValidate that the arch has exactly one CZ-capable zone.
The current placement strategies emit CZ pulses in every zone with
entangling_pairs (via ArchSpec.cz_zone_addresses), which is
correct only when there is one such zone. Multi-zone CZ scheduling
requires deriving the active zones from the specific (controls,
targets) of each CZ layer and is not yet implemented; until then we
fail loudly at construction time so callers don’t silently get extra
CZ pulses on unrelated zones.
Parameters
| Name | Type | Description |
|---|---|---|
arch_spec | ArchSpec | |
strategy_name | str |