Comprehensive guide to quantum benchmarking methods covering architecture, implementation, testing, and operational patterns for production engineering teams.
Quantum benchmarking methods are the standardised techniques used to evaluate the performance, fidelity, and reliability of quantum processors across a range of tasks. They matter when selecting hardware, validating software stacks, comparing quantum algorithms, and diagnosing errors in real quantum circuits. Benchmarking is not a one-time measurement but a continuous process that guides system tuning, calibration, and error mitigation.
To assess how well a quantum processor executes individual gates, the most common approach is randomized benchmarking (RB). This method applies random sequences of Clifford gates to a qubit, then measures the probability of returning to the initial state after each sequence. The decay of this fidelity with sequence length reveals the average gate error rate.
The core procedure uses a sequence of *n* random Clifford gates, followed by a final correcting gate to return to the identity. For each sequence length *n*, the experiment is repeated *M* times to improve statistical confidence. The output is a decay curve in the form:
F(n) = A + B × (1 - p)^n
where *F(n)* is the fidelity after *n* gates, *p* is the average gate error, and *A* and *B* are parameters accounting for state preparation and measurement (SPAM) errors.
In practice, this is implemented using a Python script with the qiskit library:
from qiskit import QuantumCircuit, execute
from qiskit.circuit.library import Clifford
from qiskit.ignis.verification.randomized_benchmarking import random_clifford_circuit, random_clifford_sequence
from qiskit.providers import Backend
from qiskit.providers.basicaer import BasicAer
def run_randomized_benchmarking(backend: Backend, num_qubits: int, sequence_lengths: list, num_sequences: int):
circuits = []
for length in sequence_lengths:
for _ in range(num_sequences):
circuit = random_clifford_circuit(num_qubits, length, seed=None)
circuits.append(circuit)
job = execute(circuits, backend, shots=1024, optimization_level=3)
results = job.result()
return results
A common failure mode is the confusion between *interleaved* and *standard* randomized benchmarking. In interleaved RB, a target gate (e.g., a CNOT) is inserted at regular intervals in the sequence, allowing estimation of the error rate of that gate alone. The key distinction lies in the analysis: interleaved RB assumes the target gate error is independent of the background Clifford errors, but this fails when the target gate is slow or sensitive to decoherence during the sequence.
The most subtle failure is misalignment between the sequence length and the number of gates in the circuit. A sequence length of 10 means 10 random Clifford gates, but if the implementation includes pre- and post-compilation steps (like gate folding or layering), the effective number of physical gates increases. This leads to underestimated error rates unless the sequence length is defined in terms of *number of physical gate layers*, not just Clifford counts.
Quantum volume (QV) is a metric that measures the largest random circuit that a device can successfully execute, accounting for gate errors, crosstalk, and qubit connectivity. It is computed via a series of circuits of increasing depth and width, where each circuit is composed of random two-qubit gates selected uniformly from all possible pairs.
The procedure starts with a square circuit: *n* qubits, with depth *d*, where each layer consists of a random permutation of two-qubit gates applied to disjoint pairs of qubits. For each *n*, the circuit is executed *M* times, and the outcome is a probability distribution over *2^n* computational basis states.
The quantum volume is defined as:
QV = max{ n | 2^n ≥ 2^d × (1 - error_rate)^d }
where *error_rate* is the average error per gate, and *d* is the depth.
A key implementation detail is the choice of *random gate set*. A common choice is to use a uniform distribution over all two-qubit gates from the set of all possible controlled-phase and single-qubit gates. The circuit is compiled to the device’s native gate set before execution.
The failure mode in QV is the mismatch between *ideal circuit depth* and *effective execution depth*. The theoretical depth *d* assumes each layer is a full layer of parallel gates. But in practice, the compiler may map the circuit to the device’s connectivity graph, introducing additional layers due to SWAP operations. A qubit with poor connectivity may require multiple SWAPs to move data across the device, inflating the total number of gates beyond the original depth.
Another subtle point: the *probability of success* is not just the probability of getting the correct output state, but the fidelity between the measured distribution and the ideal one. This fidelity is computed as:
F = (1 / 2^n) × Σ_i |⟨ψ_i|φ_i⟩|^2
where *|ψ_i⟩* is the ideal state and *|φ_i⟩* is the experimental state. This requires precise post-processing, including state tomography or maximum likelihood estimation, especially when the success probability falls below 0.5.
To validate a quantum processor’s ability to correct errors, the standard approach is to use *gate set tomography* (GST), which characterises all gates in a gate set, including preparation, measurement, and all gate operations, using a set of fiducial and sequence circuits.
GST requires a set of *preparation fiducials* and *measurement fiducials*, which are sequences that prepare and measure specific states. These are combined with *GST sequences*, which are sequences of gates that span the space of possible operations.
The core data consists of a list of *response vectors* for each combination of preparation and measurement. The output is a set of process matrices for each gate, from which error models can be extracted.
A typical GST pipeline uses the qiskit-quantum-info package:
from qiskit.quantum_info import GateSetTomography
from qiskit import QuantumCircuit
pre_fid = [QuantumCircuit(2), QuantumCircuit(2, 1), ...] # 8 circuits
meas_fid = [QuantumCircuit(2), QuantumCircuit(2, 1), ...]
# Create sequences
sequences = [
[circuit1, circuit2, circuit3],
[circuit4, circuit5],
# ...
]
# Run on backend
job = execute(sequences, backend, shots=2048)
results = job.result()
# Perform GST
gst = GateSetTomography(results, pre_fid, meas_fid, sequence_labels=['S1', 'S2', ...])
fit = gst.fit()
The critical failure here is the *overfitting* of the process matrices due to insufficient data. GST requires high-shot counts—typically 10,000 to 100,000 shots per circuit—because each response vector is a high-dimensional distribution. If the number of sequences is large (e.g., 100+), the total number of experiments exceeds 1 million shots, and the calibration becomes expensive.
A common error is misalignment between the *gate labels* and the *actual gate implementations*. For example, a CNOT gate may be defined as a sequence of two pulses and a CZ gate, but the GST process matrix assumes a single abstract gate. The difference is revealed by *gate error maps*, which show that the CNOT gate has higher error in the control-qubit than in the target-qubit.
Another sharp edge: GST assumes that the state preparation and measurement are independent of the gate sequences. But in practice, the preparation fidelity depends on the time since the last measurement, and the readout error varies with the excitation state of the qubits. This leads to *non-Markovian* errors that are not captured by standard GST.
To benchmark a quantum algorithm, such as a variational quantum eigensolver (VQE) or quantum phase estimation (QPE), the standard method is to run the algorithm on a set of problem instances and report key metrics: convergence, cost function landscape, and fidelity.
For VQE, the circuit is parameterised using a hardware-efficient ansatz, such as:
from qiskit.circuit import Parameter
theta = Parameter('θ')
ansatz = QuantumCircuit(4)
ansatz.h(range(4))
for i in range(3):
ansatz.crx(theta, i, i+1)
ansatz.crx(theta, i+1, i)
ansatz.measure_all()
The algorithm is executed with different values of *theta*, and the expectation value of the Hamiltonian is computed from the measured state.
The key evaluation metric is the *variational cost function*:
C(θ) = ⟨ψ(θ)|H|ψ(θ)⟩
This is computed using a set of circuits, each measuring a term of the Hamiltonian. For a 4-qubit system with 16 terms, 16 separate circuits are executed, each with a different Pauli string.
The failure mode is *shot noise* in the cost function evaluation. If each term is measured with only 1024 shots, the standard deviation of the cost function is on the order of 0.01 to 0.05, depending on the eigenvalue spectrum. This leads to noisy gradients and slow convergence in optimisation.
To mitigate this, a common strategy is *batched measurements*, where multiple Pauli terms are measured in a single circuit using *Pauli twirling* and *grouping*. The circuits are grouped into sets that commute, so that all terms in a group can be measured simultaneously.
For example, a grouping of the Pauli terms for a 4-qubit Hamiltonian:
from qiskit.opflow import PauliExpectation, CircuitSampler
from qiskit.algorithms.optimizers import SPSA
# Group Pauli terms
grouped_terms = [
['IIXX', 'IXXI', 'XIXX', 'XXII'],
['IZZI', 'ZIIZ', 'ZZII'],
# ...
]
# Create circuits for each group
for group in grouped_terms:
circuit = QuantumCircuit(4)
for term in group:
circuit.append(pauli_to_circuit(term), [0,1,2,3])
# Add state preparation and measurement
# ...
The critical failure mode in batched VQE is *error propagation across groups*. When the circuit is executed, errors in the state preparation or gate application affect all terms in the group, but the expectation value is computed as a weighted sum of all measured terms. If one term has a high error, it can dominate the cost function even when other terms are well-measured.
A second sharp edge is the choice of *optimiser*. SPSA (Simultaneous Perturbation Stochastic Approximation) performs well in noisy environments but requires careful tuning of learning rate and perturbation size. The default SPSA parameters often lead to slow convergence or overshoot.
For hardware-level diagnosis, the standard tools are *spectroscopy*, *T1 and T2 relaxation measurements*, and *cross-talk analysis*.
Spectroscopy measures the resonance frequency of a qubit by applying a Rabi pulse and sweeping the frequency of the drive pulse. The output is a curve of probability to be in the excited state vs. drive frequency. The peak frequency gives the qubit’s resonant frequency.
The standard pulse sequence is:
pulse = PulseSchedule()
pulse.play(DriveChannel(0), Constant(100e-9, 0.5), name='rabi_pulse')
pulse.measure(0, Acquire(100e-9, 0, 0), AcquireChannel(0))
The result is a list of experiments, each with a different frequency, and the output is a set of probabilities.
T1 and T2 are measured as follows:
The key failure mode is *incomplete population transfer* in the T1 measurement. If the initial pulse is not sufficiently strong, the qubit is not fully in |1⟩, leading to an underestimation of T1.
For cross-talk, the standard method is to drive one qubit while measuring another. The off-resonant drive excites the target qubit, and the measured state reveals the strength of the coupling.
The most subtle issue is *time jitter* in the measurement. The timing of the pulse sequence is critical, and a delay of 1 ns in the control electronics can lead to a phase error of 10° in a 5 GHz system. This manifests as a reduction in T2 and a broadening of the Rabi pulse.
In summary, quantum benchmarking is not a set of isolated tests but an integrated pipeline: gate fidelity informs quantum volume, which guides algorithm evaluation, while GST and spectroscopy provide the underlying diagnostics. The success of a quantum system depends not just on its average performance, but on the consistency, robustness, and depth of its benchmarking across all layers.
This page was rewritten on 13 October 2026. It replaced a templated version that was not specific to its own title. How these pages are written and checked. If anything here is wrong, tell us at [email protected] and we will correct it.
We use cookies for analytics (Google Analytics) and advertising (Google AdSense) to improve your experience and support free content. Privacy Policy