pub struct CircuitAnalysis {
pub num_qubits: u32,
pub total_gates: usize,
pub clifford_gates: usize,
pub non_clifford_gates: usize,
pub clifford_fraction: f64,
pub measurement_gates: usize,
pub depth: u32,
pub max_connectivity: u32,
pub is_nearest_neighbor: bool,
pub recommended_backend: BackendType,
pub confidence: f64,
pub explanation: String,
}Expand description
Result of circuit analysis, used for backend selection.
Produced by analyze_circuit and contains both raw statistics about the
circuit (gate counts, depth, connectivity) and a recommended backend with
a confidence score and human-readable explanation.
Fields§
§num_qubits: u32Number of qubits in the circuit.
total_gates: usizeTotal number of gates.
clifford_gates: usizeNumber of Clifford gates (H, S, CNOT, CZ, SWAP, X, Y, Z, Sdg).
non_clifford_gates: usizeNumber of non-Clifford gates (T, Tdg, Rx, Ry, Rz, Phase, Rzz, Unitary1Q).
clifford_fraction: f64Fraction of unitary gates that are Clifford (0.0 to 1.0).
measurement_gates: usizeNumber of measurement gates.
depth: u32Circuit depth (longest qubit timeline).
max_connectivity: u32Maximum qubit distance in any two-qubit gate.
is_nearest_neighbor: boolWhether all two-qubit gates are between adjacent qubits.
recommended_backend: BackendTypeRecommended backend based on the analysis heuristics.
confidence: f64Confidence in the recommendation (0.0 to 1.0).
explanation: StringHuman-readable explanation of the recommendation.
Trait Implementations§
Source§impl Clone for CircuitAnalysis
impl Clone for CircuitAnalysis
Source§fn clone(&self) -> CircuitAnalysis
fn clone(&self) -> CircuitAnalysis
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more