Metrics
KernelFidelityMetrics
dataclass
KernelFidelityMetrics(
gate_fidelities: list[float],
gate_fidelity_product: float,
)
Fidelity metrics computed from a physical noisy SQuin kernel.
KernelMoveMetrics
dataclass
KernelMoveMetrics(
approx_lane_parallelism: float, moved_lane_count: int
)
Move metadata computed from a compiled Move kernel.
KernelMoveTimeMetrics
dataclass
KernelMoveTimeMetrics(
total_move_time_us: float,
events: list[MoveTimeEvent],
timing_model: str,
)
Move timing metrics computed from a compiled Move kernel.
Metrics
dataclass
Metrics(
arch_spec: Any,
noise_model: LogicalNoiseModelABC | None = None,
)
Unified metrics computation for the lanes pipeline.
Owns kernel-level analysis methods and delegates all move-metric
computation (lane durations, costs, distances) to a
MoveMetricCalculator instance.
analyze_per_cz_motion
analyze_per_cz_motion(
move_mt: Method,
) -> tuple[float, float]
Average hops and traveled distance per moving qubit per CZ episode.
Source code in .venv/lib/python3.12/site-packages/bloqade/lanes/metrics.py
233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 | |
MoveTimeEvent
dataclass
MoveTimeEvent(
event_index: int,
lane_count: int,
move_type: str,
bus_id: int,
direction: str,
lane_durations_us: list[float],
event_duration_us: float,
segment_distances_um: list[float],
segment_durations_us: list[float],
pick_time_us: float,
drop_time_us: float,
timing_model: str,
)
Per-move event timing details in microseconds.