Skip to content

bloqade.lanes.analysis.placement.strategy.assert_single_cz_zone

← Module overview

functionassert_single_cz_zonesource

bloqade.lanes.analysis.placement.strategy.assert_single_cz_zone

Signature
def assert_single_cz_zone(arch_spec: ArchSpec, strategy_name: str) -> None

Validate 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

NameTypeDescription
arch_specArchSpec
strategy_namestr
source