Randomized Benchmarking
Randomized benchmarking (RB) is the field's standard for measuring an average gate error rate. Its brilliance is that the answer is independent of state-preparation and measurement (SPAM) errors and independent of which input state you use — the two failings of the naive approach from the opening lesson.
The protocol
RB applies long sequences of random Clifford gates and watches how quickly the circuit forgets where it started. A single sequence of length is built as follows:
- Start in .
- Apply uniformly random Clifford gates .
- Compute the single Clifford that inverts the whole sequence, and apply it.
- Measure. In the ideal, noiseless case the net operation is the identity, so you return to with certainty — this is the survival probability.
Repeat over many random sequences and many lengths . Errors accumulate with each gate, so the average survival probability decays with .
Why the decay is a clean exponential
The key mathematical fact is twirling. Averaging an arbitrary noise channel over the uniformly random Clifford group turns it into a depolarizing channel, which is described by a single number. Consequently the average survival probability obeys a simple exponential model (Magesan et al.):
Here is the depolarizing parameter per Clifford, and , absorb all the SPAM errors into constants. Fitting the measured decay to this curve extracts while the SPAM nuisance parameters fall out — that is the SPAM robustness, made precise.
The average error rate per Clifford follows directly from and the Hilbert-space dimension :
For a single qubit, and .
A noiseless sequence on the simulator
Our simulator is noiseless, so every RB sequence returns survival probability exactly — which is precisely the reference curve every real device is compared against. The mechanical heart of RB is that a sequence followed by its inverse is the identity. We can verify that with a concrete Clifford sequence.
Take the Clifford word on one qubit and then append its inverse, (gates inverted and reversed in order, using and ). The whole six-gate circuit composes to the identity, so a noiseless run returns with probability . On a noisy device that probability would be slightly below , and its decay with sequence length is what RB measures.
Try it
Build the length-3 Clifford sequence on one qubit, then append the inverting Clifford so the net operation is the identity, and measure. The grader checks that the survival probability of is exactly .
After running, the Probabilities tab should show all weight on 0: the sequence-plus-inverse is
the identity, the noiseless RB survival probability.
Sign in on the full site to ask questions and join the discussion.