Skip to main content

Module analysis

Module analysis 

Source
Expand description

Analysis utilities for the unified benchmarking system

This module provides helper constructors, default-value builders, and pure analysis functions used by system.rs. Keeping them here prevents system.rs from growing past the 2 000-line limit.

Structs§

FidelityStats
Simple fidelity statistics aggregated from a slice of raw fidelity values.

Functions§

compute_cost_analysis
Aggregate platform results into a CostAnalysisResult.
compute_cost_metrics
Compute CostMetrics from the three benchmark result sets.
compute_cross_platform_analysis
Rank platforms and produce a CrossPlatformAnalysis.
compute_fidelity_statistics
Compute fidelity statistics from a slice of values in [0, 1].
compute_performance_metrics
Compute PlatformPerformanceMetrics from the four benchmark result sets.
compute_reliability_metrics
Compute ReliabilityMetrics from the three benchmark result sets.
compute_resource_analysis
Aggregate platform results into a ResourceAnalysisResult.
default_algorithm_level_results
Build a minimal, valid AlgorithmLevelResults.
default_circuit_level_results
Build a minimal, valid CircuitLevelResults.
default_gate_level_results
Build a minimal, valid GateLevelResults representing a device that has been characterised with generic default values.
default_scirs2_analysis
Produce a fully-structured but analytically trivial SciRS2AnalysisResult. This is the fallback when the scirs2 feature is not available or the per-platform data is too sparse for meaningful analysis.
default_system_level_results
Build a minimal, valid SystemLevelResults.
statistical_summary_from_slice
Build a StatisticalSummary from a non-empty slice of f64 values. If the slice is empty, returns a zero summary.
zero_statistical_summary
Build a zero-valued StatisticalSummary.