bloqade.lanes.heuristics.physical.target_generator.TargetContext
← Module overview
class
property
source
classTargetContext¶source
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
| Name | Type | Description |
|---|---|---|
arch_spec | ArchSpec | |
state | ConcreteState | |
controls | tuple[int, ...] | |
targets | tuple[int, ...] | |
lookahead_cz_layers | tuple[tuple[tuple[int, ...], tuple[int, ...]], ...] | |
cz_stage_index | int |
Attributes
| Name | Type | Description |
|---|---|---|
arch_spec | ArchSpec | |
state | ConcreteState | |
controls | tuple[int, ...] | |
targets | tuple[int, ...] | |
lookahead_cz_layers | tuple[tuple[tuple[int, ...], tuple[int, ...]], ...] | |
cz_stage_index | int |
propertyplacement¶source
bloqade.lanes.heuristics.physical.target_generator.TargetContext.placement
placement: dict[int, LocationAddress]