bloqade.lanes.metrics.Metrics
← Module overview
class
method
sourcemethod
sourcemethod
sourcemethod
sourcemethod
source
classMetrics¶source
bloqade.lanes.metrics.Metrics
Unified metrics computation for the lanes pipeline.
Signature
class Metrics(arch_spec: Any, noise_model: LogicalNoiseModelABC | None = None)Owns kernel-level analysis methods and delegates all move-metric
computation (lane durations, costs, distances) to a
MoveMetricCalculator instance.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
arch_spec | Any | required | |
noise_model | LogicalNoiseModelABC | None | None |
Attributes
| Name | Type | Default | Description |
|---|---|---|---|
arch_spec | Any | required | |
noise_model | LogicalNoiseModelABC | None | None | |
move_calc | MoveMetricCalculator | field(init=False, repr=False) |
methodanalyze_fidelity¶source
bloqade.lanes.metrics.Metrics.analyze_fidelity
Signature
def analyze_fidelity(mt: ir.Method, *, placement_strategy: PlacementStrategyABC) -> KernelFidelityMetricsParameters
| Name | Type | Description |
|---|---|---|
mt | ir.Method | |
placement_strategy | PlacementStrategyABC |
Returns
KernelFidelityMetrics
methodanalyze_moves¶source
bloqade.lanes.metrics.Metrics.analyze_moves
Signature
def analyze_moves(mt: ir.Method, *, placement_strategy: PlacementStrategyABC) -> KernelMoveMetricsParameters
| Name | Type | Description |
|---|---|---|
mt | ir.Method | |
placement_strategy | PlacementStrategyABC |
Returns
KernelMoveMetrics
methodanalyze_move_time¶source
bloqade.lanes.metrics.Metrics.analyze_move_time
Signature
def analyze_move_time(mt: ir.Method, *, placement_strategy: PlacementStrategyABC, flair_amplitude_delta: float = 1.0) -> KernelMoveTimeMetricsParameters
| Name | Type | Default | Description |
|---|---|---|---|
mt | ir.Method | required | |
placement_strategy | PlacementStrategyABC | required | |
flair_amplitude_delta | float | 1.0 |
Returns
KernelMoveTimeMetrics
methodanalyze_move_time_from_move_ir¶source
bloqade.lanes.metrics.Metrics.analyze_move_time_from_move_ir
Signature
def analyze_move_time_from_move_ir(move_mt: ir.Method, flair_amplitude_delta: float = 1.0) -> KernelMoveTimeMetricsParameters
| Name | Type | Default | Description |
|---|---|---|---|
move_mt | ir.Method | required | |
flair_amplitude_delta | float | 1.0 |
Returns
KernelMoveTimeMetrics
methodanalyze_per_cz_motion¶source
bloqade.lanes.metrics.Metrics.analyze_per_cz_motion
def analyze_per_cz_motion(move_mt: ir.Method) -> tuple[float, float]Average hops and traveled distance per moving qubit per CZ episode.
Parameters
| Name | Type | Description |
|---|---|---|
move_mt | ir.Method |
Returns
tuple[float, float]