Skip to content

bloqade.lanes.heuristics.physical.target_generator_dsl.TargetPolicyRunner

← Module overview

classTargetPolicyRunnersource

bloqade.lanes.heuristics.physical.target_generator_dsl.TargetPolicyRunner

Reusable runner that wraps a parsed ``.star`` target-generator policy.

class TargetPolicyRunner

Constructed once per (policy file, ArchSpec) pair. Each generate(...) call invokes the policy’s generate(ctx, lib) function, validates each candidate against architecture invariants (qubit coverage, location validity, CZ-blockade pair invariant), and returns the validated candidates as a list of qubit-id → location dicts.