When a quantum computing company says its two-qubit gate runs at 99.9 percent fidelity, it is making a specific claim: out of a thousand attempts to flip and entangle qubits in a controlled way, roughly one goes wrong. That single number drives roadmaps, marketing, and billion-dollar bets on which hardware will scale. Yet measuring it is surprisingly treacherous, because the act of checking a gate is itself riddled with errors.
Why you can't just look
The obvious way to test a gate is to prepare a qubit in a known state, apply the gate, and read out the result. The problem is that preparation and measurement are not free. Loading a qubit into a definite starting state and later reading whether it is a zero or a one both introduce mistakes of their own, often at the level of a percent or more. These are lumped together as SPAM errors, for state preparation and measurement.
If your readout is wrong one time in fifty, you simply cannot see whether a gate is good to one part in a thousand. The noise of the measurement swamps the quantity you are trying to measure. Worse, a single run tells you nothing statistically. You need a method that separates the quality of the gate from the sloppiness of everything around it.
The clever detour
Randomized benchmarking is the standard answer, and its core idea is counterintuitive. Instead of running one gate and checking it, you run long sequences of random gates chosen from a special family called the Clifford group. The Cliffords have a useful property: they can be composed and inverted efficiently on a classical computer. So you pick a random string of them, calculate the single gate that would undo the whole sequence, and tack that inverse onto the end.
In a perfect machine, the qubit returns exactly to where it started. Every run, no matter how long or scrambled, should land back on the known answer. Any deviation is accumulated gate error. By running sequences of length 10, 50, 100, and more, and recording how often the qubit still comes home, you get a curve that decays as the sequences grow longer.
The shape of that decay is the payoff. It falls off exponentially, and the rate of the fall tells you the average error per gate. Crucially, the SPAM errors only affect where the curve starts and how high it sits, not how fast it drops. By fitting the decay rate, you extract gate fidelity while the preparation and measurement mistakes quietly fall out of the math. That is the whole trick: randomness turns a messy one-shot measurement into a clean slope.
Zooming in on one gate
Average fidelity over a random mix is useful, but engineers often want to know about a specific gate, say the two-qubit entangling operation that limits most machines. Interleaved randomized benchmarking does this by inserting the target gate between every random Clifford and comparing the new, faster decay to the baseline. The difference isolates that one gate's contribution.
There are now many relatives of the basic method. Cycle benchmarking and cross-entropy benchmarking handle whole layers of gates running in parallel, which matters because gates that behave beautifully in isolation can interfere with their neighbors through crosstalk. Simultaneous randomized benchmarking deliberately runs gates side by side to expose exactly that. Google leaned heavily on cross-entropy benchmarking when it characterized its Sycamore processor, and variations of these tools underpin the fidelity figures published by IonQ, Quantinuum, IBM, and Rigetti alike.
What the number does and doesn't tell you
Randomized benchmarking is powerful, but it has blind spots. It reports an average error, which can hide worst-case behavior. It assumes errors are reasonably stable and well behaved, and it can be fooled by certain correlated or coherent errors that partly cancel over random sequences. A gate can post a flattering benchmark and still misbehave inside a real algorithm with structured, non-random circuits.
That gap is why the field layers additional yardsticks on top, from quantum volume to algorithmic qubits to full application benchmarks. Fidelity from randomized benchmarking is the microscope; the others are the field test.
Still, the humble decay curve remains the bedrock. When a lab shaves a two-qubit error rate from 0.5 percent to 0.1 percent, it is almost always a randomized benchmarking plot that proves it. And because fault-tolerant error correction only works once gates clear a threshold of a few parts per thousand, this quiet statistical method is the referee deciding whether a machine has crossed the line from interesting to useful.