bloqade.lanes.heuristics.physical.target_generator_dsl
target_generator_dsl¶
bloqade.lanes.heuristics.physical.target_generator_dsl
Starlark-hosted target generator (Plan B of #597).
Loads a .star file via the Rust TargetPolicyRunner and adapts it to
TargetGeneratorABC so it can be injected at
PhysicalPlacementStrategy(target_generator=...).
Validation (qid coverage, location-group validity, CZ-blockade pair
invariant) is performed by the Rust kernel before the candidates ever
reach Python; if the policy returns a malformed candidate, generate
raises ValueError from the underlying runner.
View bloqade.lanes.heuristics.physical.target_generator_dsl.TargetPolicyRunner →View bloqade.lanes.heuristics.physical.target_generator_dsl.TargetGeneratorDSL →View bloqade.lanes.heuristics.physical.target_generator_dsl.TargetGeneratorDSL.policy_path →View bloqade.lanes.heuristics.physical.target_generator_dsl.TargetGeneratorDSL.policy_params →View bloqade.lanes.heuristics.physical.target_generator_dsl.TargetGeneratorDSL.generate →