← Back to section · Quantum Computing
Randomized Benchmarking: The Machine Behind the Gate-Fidelity Numbers
Most gate fidelities on spec sheets come from randomized benchmarking. This article explains the RB protocol, why it is immune to preparation and measurement errors, what noise it averages away, and the crosstalk, leakage and coherent errors it cannot see.
Most “two-qubit gate fidelity 99.7%” figures on hardware spec sheets come from one family of measurements: randomized benchmarking (RB). Proposed in the 2000s, it is now the de facto standard for characterizing gate quality across the industry. Without understanding its principles and blind spots, no quantum hardware spec sheet can be read properly.
The protocol: a string of random gates, then undo everything
RB is surprisingly simple. Draw a sequence of gates at random from the Clifford group, apply them in order to the target qubits, then append a carefully computed inverse operation so that the ideal total effect of the whole sequence is exactly “do nothing”. Ideally, the qubits return to their initial state; in practice the probability of “surviving” back decays as the sequence lengthens. Sweep the sequence length m and the survival probability follows A·p^m + B; fit the decay parameter p, then convert to an average error rate per gate via r = (1 − p)(d − 1)/d, where d is the Hilbert-space dimension (d = 2 for one qubit, d = 4 for two).
Clifford gates serve two purposes. First, Clifford circuits can be simulated efficiently on a classical computer, so the inverse of any random sequence can always be computed. Second, randomly drawn Clifford gates form a unitary 2-design: averaged over the randomness, any complicated error channel is “twirled” into a simple depolarizing channel, which is why the decay curve is a clean single exponential.
Immunity to SPAM: why RB became the industry standard
In real experiments, state preparation and measurement errors (collectively SPAM) are often larger than gate errors and hard to calibrate separately. RB’s elegance is that SPAM affects only the fit’s intercept A and baseline B, not the decay rate p. In other words, even with sloppy preparation and measurement, the extracted gate error rate remains trustworthy as long as SPAM stays consistent across sequence lengths. Add scalability (testing two-qubit gates just changes the dimension from 2 to 4) and the fact that no trusted reference machine is needed, and RB’s status as the industry’s common language follows naturally.
From decay rate to fidelity: assumptions hidden in the conversion
The reported r is an average error rate per Clifford gate, not per native gate, and a layer of decomposition sits between the two. A two-qubit Clifford gate decomposes on real hardware into on average one to two entangling gates plus several single-qubit gates, so RB’s per-Clifford error rate is usually noticeably higher than the error rate of a single native gate (say, one CZ). Comparing the two numbers directly is one of the most common spec-reading mistakes: machine A can look worse than machine B simply because A reported the Clifford figure and B the native-gate figure.
The conversion formula itself carries assumptions. r = (1 − p)(d − 1)/d holds when errors can be randomized into a depolarizing channel; when errors are predominantly coherent, the same p corresponds to greater real-world harm. Moreover, the shape of the decay curve is itself information: anomalously fast decay at short sequence lengths can indicate low-frequency noise or slow drift; a tail that lifts at long lengths can indicate accumulating leakage. Experienced experimentalists read the fit residuals as a diagnostic tool, not just a number to deliver — though spec sheets never attach residual plots.
What RB cannot measure
Averaging is both the strength and the blind spot. First, coherent and stochastic errors can score the same in RB while differing enormously in harm: stochastic errors add in probability, while coherent errors (say, a systematic over-rotation by a small angle each time) add in amplitude and accumulate far faster in deep circuits. Error correction design truly fears the latter, and RB reports only the averaged number. Second, non-Markovian noise — errors that drift in time or depend on operation history — bends the decay away from a single exponential, and forcing a fit yields a misleading r. Third, leakage: a qubit escaping the computational subspace (a superconducting qubit climbing to its third energy level, for instance) shows up in standard RB only as vague extra decay; quantifying it needs a dedicated leakage RB protocol. Fourth, crosstalk: a qubit pair measured alone may be clean, yet that says nothing about interference when 50 pairs operate simultaneously; simultaneous RB, which contrasts solo and parallel runs, is needed for that.
RB in engineering practice
In real laboratories RB is not an occasional acceptance exam but part of daily calibration: after every major tune-up, engineers run a round of RB to confirm gate parameters have not drifted; when a chip comes back from fabrication, RB sweeps across dozens of qubit pairs produce a full-chip error-rate map that decides which pairs are usable and which to avoid. The “typical fidelities” published by cloud providers are often summaries of exactly this routine data. This also explains why the same machine’s RB numbers wobble slightly over time: what is being measured is a physical system that drifts continuously and needs constant recalibration, and any single figure is a snapshot at one moment. Keep that in mind, and you will not treat the third decimal place on a spec sheet as a constant of nature.
The variant family, and a checklist of questions
Around these blind spots the community has built a whole family of variants: interleaved RB inserts the gate of interest at fixed points in the random sequence to price that specific gate; direct RB targets native gate sets rather than the Clifford group, tracking real compilation outcomes more closely; cycle benchmarking measures the joint performance of a whole layer of parallel gates and so includes crosstalk by construction; gate set tomography abandons averaging altogether and returns a complete picture of the errors, at a cost that explodes with qubit count and does not scale. When reading any spec, four questions are worth asking: Which protocol was used? Is the figure an RB average error rate or a specific native gate’s? How many qubit pairs were measured, and is the number a mean or a median? Was it measured solo or under simultaneous operation? Only with those four answered does a fidelity figure on a spec sheet become solid ground.
Tags: randomized benchmarkinggate fidelityerror characterization