Skip to content

bloqade.lanes.analysis.placement.lattice.ExecuteCZ

← Module overview

classExecuteCZsource

bloqade.lanes.analysis.placement.lattice.ExecuteCZ

Bases: ConcreteState

Defines the state representing the placement of atoms before/after executing CZ gate pulse.

Signature
class ExecuteCZ(occupied: frozenset[LocationAddress], layout: tuple[LocationAddress, ...], move_count: tuple[int, ...], active_cz_zones: frozenset[ZoneAddress], move_layers: tuple[tuple[LaneAddress, ...], ...] = ())

NOTE: you can specify multiple entnangling zones to be active in a single ExecuteCZ state in cases where there are multiple entangling zones that can be used in parallel.

Parameters

NameTypeDefaultDescription
occupiedfrozenset[LocationAddress]required
layouttuple[LocationAddress, ...]required
move_counttuple[int, ...]required
active_cz_zonesfrozenset[ZoneAddress]required
move_layerstuple[tuple[LaneAddress, ...], ...]()

Attributes

NameTypeDefaultDescription
active_cz_zonesfrozenset[ZoneAddress]requiredThe set of CZ zones that need to execute for this round of CZ gates.
move_layerstuple[tuple[LaneAddress, ...], ...]()The layers of moves that need to be executed to reach this state.

methodget_move_layerssource

bloqade.lanes.analysis.placement.lattice.ExecuteCZ.get_move_layers

def get_move_layers() -> tuple[tuple[LaneAddress, ...], ...]

Returns

tuple[tuple[LaneAddress, ...], ...]

source

methodfrom_concrete_statesource

bloqade.lanes.analysis.placement.lattice.ExecuteCZ.from_concrete_state

Signature
def from_concrete_state(state: ConcreteState, active_cz_zones: frozenset[ZoneAddress]) -> ExecuteCZ

Parameters

NameTypeDescription
stateConcreteState
active_cz_zonesfrozenset[ZoneAddress]

Returns

ExecuteCZ

source

methodis_subseteqsource

bloqade.lanes.analysis.placement.lattice.ExecuteCZ.is_subseteq

def is_subseteq(other: AtomState) -> bool

Parameters

NameTypeDescription
otherAtomState

Returns

bool

source

methodverifysource

bloqade.lanes.analysis.placement.lattice.ExecuteCZ.verify

Signature
def verify(arch_spec: ArchSpec, controls: tuple[int, ...], targets: tuple[int, ...])

Returns True if the current atom configuration will execute the provided entangled pairs.

Parameters

NameTypeDescription
arch_specArchSpec
controlstuple[int, ...]
targetstuple[int, ...]
source