Move metric
MoveMetricCalculator
dataclass
MoveMetricCalculator(arch_spec: Any)
Move-metric computation: lane durations, distances, and costs.
Owns timing constants extracted from bloqade-flair and provides
cached lane duration / cost lookups. Lives in the layout
package so that PathFinder and heuristics can consume it
without pulling in the heavy compilation imports of Metrics.
get_lane_duration_cost
get_lane_duration_cost(
lane_address: Any, *, amplitude_delta: float = 1.0
) -> float
Return normalized lane duration cost in [0, 1].
Source code in .venv/lib/python3.12/site-packages/bloqade/lanes/layout/move_metric.py
94 95 96 97 98 99 100 101 102 103 104 | |
get_lane_duration_us
get_lane_duration_us(
lane_address: Any, *, amplitude_delta: float = 1.0
) -> float
Return lane execution duration in microseconds.
Source code in .venv/lib/python3.12/site-packages/bloqade/lanes/layout/move_metric.py
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | |
lane_distance_um
lane_distance_um(lane: Any) -> float
Total distance in µm along a lane's path.
Source code in .venv/lib/python3.12/site-packages/bloqade/lanes/layout/move_metric.py
106 107 108 109 | |