Skip to content

bloqade.lanes.heuristics.logical.placement.LogicalPlacementStrategy

← Module overview

classLogicalPlacementStrategysource

bloqade.lanes.heuristics.logical.placement.LogicalPlacementStrategy

Bases: LogicalPlacementMethods, SingleZonePlacementStrategyABC

class LogicalPlacementStrategy(arch_spec: ArchSpec = get_arch_spec())

Parameters

NameTypeDefaultDescription
arch_specArchSpecget_arch_spec()

Attributes

NameTypeDefaultDescription
arch_specArchSpecfield(default_factory=get_arch_spec)

methodcompute_movessource

bloqade.lanes.heuristics.logical.placement.LogicalPlacementStrategy.compute_moves

Signature
def compute_moves(state_before: ConcreteState, state_after: ConcreteState) -> tuple[tuple[LaneAddress, ...], ...]

Parameters

NameTypeDescription
state_beforeConcreteState
state_afterConcreteState

Returns

tuple[tuple[LaneAddress, ...], ...]

source