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.
Raises:
| Type | Description |
|---|---|
MoveValidationError
|
If any move statement cannot execute against the atom state it is applied to. |
Source code in .venv/lib/python3.12/site-packages/bloqade/lanes/metrics.py
268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 | |
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.