Skip to content

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.