Skip to content

bloqade.lanes.heuristics.physical.target_generator

target_generator

bloqade.lanes.heuristics.physical.target_generator

Target-generation plugin interface for ``PhysicalPlacementStrategy``.

PhysicalPlacementStrategy asks a TargetGeneratorABC for an ordered list of candidate target placements before each CZ stage. The strategy always appends DefaultTargetGenerator‘s output as a guaranteed last-resort fallback, so plugins may return [] to defer entirely to the default.

Attributes

NameTypeDefaultDescription
TargetGeneratorCallable—Callable[[TargetContext], list[dict[int, LocationAddress]]]
View bloqade.lanes.heuristics.physical.target_generator.Direction →View bloqade.lanes.heuristics.physical.target_generator.MoveType →View bloqade.lanes.heuristics.physical.target_generator.TargetContext →View bloqade.lanes.heuristics.physical.target_generator.TargetContext.arch_spec →View bloqade.lanes.heuristics.physical.target_generator.TargetContext.state →View bloqade.lanes.heuristics.physical.target_generator.TargetContext.controls →View bloqade.lanes.heuristics.physical.target_generator.TargetContext.targets →View bloqade.lanes.heuristics.physical.target_generator.TargetContext.lookahead_cz_layers →View bloqade.lanes.heuristics.physical.target_generator.TargetContext.cz_stage_index →View bloqade.lanes.heuristics.physical.target_generator.TargetContext.placement →View bloqade.lanes.heuristics.physical.target_generator.TargetGeneratorABC →View bloqade.lanes.heuristics.physical.target_generator.TargetGeneratorABC.generate →View bloqade.lanes.heuristics.physical.target_generator.DefaultTargetGenerator →View bloqade.lanes.heuristics.physical.target_generator.DefaultTargetGenerator.generate →View bloqade.lanes.heuristics.physical.target_generator.CongestionAwareTargetGenerator →View bloqade.lanes.heuristics.physical.target_generator.CongestionAwareTargetGenerator.direction_factor →View bloqade.lanes.heuristics.physical.target_generator.CongestionAwareTargetGenerator.shared_site_factor →View bloqade.lanes.heuristics.physical.target_generator.CongestionAwareTargetGenerator.generate →View bloqade.lanes.heuristics.physical.target_generator.AODClusterTargetGenerator →View bloqade.lanes.heuristics.physical.target_generator.AODClusterTargetGenerator.generate →View bloqade.lanes.heuristics.physical.target_generator.LookaheadCongestionAwareTargetGenerator →View bloqade.lanes.heuristics.physical.target_generator.LookaheadCongestionAwareTargetGenerator.K →View bloqade.lanes.heuristics.physical.target_generator.LookaheadCongestionAwareTargetGenerator.gamma →View bloqade.lanes.heuristics.physical.target_generator.LookaheadCongestionAwareTargetGenerator.generate →