Every quantum computing company loves to quote a number: 99.9 percent gate fidelity, 99.99 percent, and so on. It sounds like a spec you could read off a meter. But there is no meter. A quantum gate happens in nanoseconds or microseconds, it leaves no trace you can inspect, and the moment you measure the qubit to see what happened you destroy the very state you were trying to check. So how does anyone arrive at those confident-sounding decimals? The answer, for most of the industry, is a clever statistical trick called randomized benchmarking.
Why you can't just test a gate directly
The obvious approach would be to run a gate once, look at the result, and compare it to what you expected. That fails for two reasons. First, quantum measurement is probabilistic, so a single run tells you almost nothing. Second, and worse, the readout apparatus itself is faulty. If you apply one gate and then measure, you can't tell whether the error you see came from the gate or from the sloppy measurement at the end. The gate's mistake and the readout's mistake get tangled together into one indistinguishable blur.
You could try to characterize the gate completely using a technique called process tomography, which reconstructs the full mathematical description of what the operation did. But tomography is expensive, it scales terribly as you add qubits, and it too gets contaminated by measurement errors. For a quick, honest number that engineers can track day to day, it is the wrong tool.
The randomness trick
Randomized benchmarking sidesteps all of this by refusing to look at any single gate. Instead it builds long sequences of gates drawn at random from a special set, the Clifford group, which has a convenient property: given any random sequence, you can always compute one final gate that should return the qubit exactly to where it started. Run the whole sequence, then run that inversion, and if everything were perfect the qubit would end up in its original state every time.
Of course nothing is perfect. Each gate in the chain adds a little error, and those errors accumulate. So you run sequences of length 10, then 50, then 200, then 500, each time with fresh random choices, and each time you measure how often the qubit made it home. Plot the success rate against sequence length and you get a curve that decays smoothly. The steeper the decay, the worse the gates. Fit an exponential to that curve and you extract a single decay rate, which converts directly into an average error per gate.
Why the noise averages out
The genius of the method is what the randomization buys you. Real qubits suffer from a messy cocktail of errors: slight over-rotations, phase drifts, crosstalk from neighbors, leakage. Some of these are coherent, meaning they push the qubit in a consistent direction and can conspire to grow. By scrambling the gate order randomly, you smear all those structured errors into something that looks like uniform, featureless noise. That is what makes the decay curve a clean exponential rather than a jagged mess.
Just as important, the readout error only affects where the curve starts, not how fast it falls. Measurement mistakes shift the whole line up or down, but they don't change its slope. Since the fidelity comes entirely from the slope, randomized benchmarking gives you a gate quality number that is immune to the very readout errors that ruin simpler tests. That isolation is the whole point.
The variations and the fine print
The basic recipe has spawned a family. Interleaved randomized benchmarking inserts a specific gate you care about, say a two-qubit entangling gate, repeatedly into the random sequences, so you can pull out that one gate's fidelity by comparison. Simultaneous randomized benchmarking runs the protocol on neighboring qubits at once to expose crosstalk. Cycle benchmarking, favored by some trapped-ion and neutral-atom teams, targets the parallel layers of gates that real algorithms actually use.
The method is not flawless. It assumes errors don't drift much during the experiment, which the calibration treadmill constantly threatens. It averages over gates, so it can hide a single unusually bad operation. And a great randomized benchmarking number does not guarantee your favorite algorithm will run well, because it says nothing about how errors correlate across a full circuit. Still, when you see a vendor claim four nines of two-qubit fidelity, this is almost always the experiment behind it: no single gate ever inspected, just a fog of randomness distilled into one honest slope.