Skip to content

bloqade.lanes.heuristics.physical.target_generator.TargetGeneratorABC

← Module overview

classTargetGeneratorABCsource

bloqade.lanes.heuristics.physical.target_generator.TargetGeneratorABC

Bases: abc.ABC

Plugin interface for choosing the target configuration of a CZ stage.

class TargetGeneratorABC

Implementations return an ordered list of candidate target placements. The strategy framework appends the default candidate (DefaultTargetGenerator) as a guaranteed last-resort, so a plugin may return [] to defer entirely to the default.

methodgeneratesource

bloqade.lanes.heuristics.physical.target_generator.TargetGeneratorABC.generate

def generate(ctx: TargetContext) -> list[dict[int, LocationAddress]]

Parameters

NameTypeDescription
ctxTargetContext

Returns

list[dict[int, LocationAddress]]

source