Skip to content

bloqade.lanes.heuristics.physical.target_generator.TargetContext

← Module overview

classTargetContextsource

bloqade.lanes.heuristics.physical.target_generator.TargetContext

Signals passed to a TargetGenerator.

Signature
class TargetContext(arch_spec: ArchSpec, state: ConcreteState, controls: tuple[int, ...], targets: tuple[int, ...], lookahead_cz_layers: tuple[tuple[tuple[int, ...], tuple[int, ...]], ...], cz_stage_index: int)

Composes ConcreteState to avoid duplicating lattice state fields.

Parameters

NameTypeDescription
arch_specArchSpec
stateConcreteState
controlstuple[int, ...]
targetstuple[int, ...]
lookahead_cz_layerstuple[tuple[tuple[int, ...], tuple[int, ...]], ...]
cz_stage_indexint

Attributes

NameTypeDescription
arch_specArchSpec
stateConcreteState
controlstuple[int, ...]
targetstuple[int, ...]
lookahead_cz_layerstuple[tuple[tuple[int, ...], tuple[int, ...]], ...]
cz_stage_indexint

propertyplacementsource

bloqade.lanes.heuristics.physical.target_generator.TargetContext.placement

placement: dict[int, LocationAddress]
source