Skip to content

bloqade.lanes.heuristics.physical.movement.make_physical_placement_strategy

← Module overview

functionmake_physical_placement_strategysource

bloqade.lanes.heuristics.physical.movement.make_physical_placement_strategy

Signature
def make_physical_placement_strategy(*, move_solutions_per_layer: int = 3, search_budget: int | None = 300, strategy: SearchStrategyName = 'entropy', arch_spec: ArchSpec | None = None, return_moves: bool = True, target_generator: TargetGeneratorABC | TargetGeneratorCallable | None = None) -> PlacementStrategyABC

Build a physical placement strategy from user-facing search knobs.

move_solutions_per_layer maps to the Rust solver’s max_goal_candidates. search_budget maps to the per-CZ-stage max_expansions budget shared across target candidates.

Parameters

NameTypeDefaultDescription
move_solutions_per_layerint3
search_budgetint | None300
strategySearchStrategyName'entropy'
arch_specArchSpec | NoneNone
return_movesboolTrue
target_generatorTargetGeneratorABC | TargetGeneratorCallable | NoneNone

Returns

PlacementStrategyABC

source