Gate Fidelity and Randomized Benchmarking

A physical quantum gate is never the ideal unitary it is meant to implement. It is a completely positive trace-preserving (CPTP) map E\mathcal{E} contaminated by coherent control error, decoherence, and leakage, and the first question any experiment must answer is: how close is E\mathcal{E} to the target UU? The trouble is that "close" is not one number. The average gate fidelity Fˉ(E,U)\bar F(\mathcal{E},U) averages the input–output overlap over all pure states; the entanglement fidelity FeF_e probes with a single maximally entangled state; the diamond distance 12∥E−U∥⋄\tfrac12\lVert\mathcal{E}-\mathcal{U}\rVert_\diamond measures the worst case that fault-tolerance theorems constrain. These are linearly or polynomially related, and quietly swapping one for another is a standard way to misreport a device. Measuring Fˉ\bar F directly by process tomography is expensive and self-defeating: on good hardware the state-preparation-and-measurement (SPAM) errors are as large as the gate error you are trying to see. Randomized benchmarking (RB), proposed by Emerson, Alicki and Życzkowski and made rigorous by Magesan, Gambetta and Emerson, sidesteps both. Run random Clifford sequences that compose to the identity, invert at the end, and the average error is twirled into a depolarizing channel whose single parameter pp drives an exponential decay of the survival probability with length mm. SPAM sits entirely in the fit's prefactors; the decay rate — the average error per gate — falls out clean. RB and its descendants are now the language groups use to report progress, the contact point between abstract thresholds and laboratory reality.

Key takeaways
  • Gate fidelity measures how close a noisy channel E\mathcal{E} is to an ideal unitary UU; the workhorse scalar is the average gate fidelity Fˉ\bar F, tied linearly to the entanglement fidelity FeF_e by Fˉ=(dFe+1)/(d+1)\bar F=(dF_e+1)/(d+1).
  • Randomized benchmarking runs random Clifford sequences that ideally return the identity and fits the survival probability to A pm+BA\,p^m+B, extracting the decay base pp independently of SPAM, which lives only in AA and BB.
  • The decay converts to an average error per Clifford r=(d−1)(1−p)/dr=(d-1)(1-p)/d with d=2nd=2^n — RB's central output.
  • The twirl works because the Clifford group is a unitary 2-design: averaging any channel over it collapses the error to a one-parameter depolarizing channel ρ↦pρ+(1−p)I/d\rho\mapsto p\rho+(1-p)I/d.
  • Variants dissect the error: interleaved RB gives per-gate error, simultaneous RB exposes crosstalk, purity RB separates coherent from incoherent, and the diamond norm bounds the worst case rr can hide.
  • Key idea: twirling a noise channel over the Clifford group turns it into a depolarizing channel set by one number pp, so a random length-mm Clifford sequence that ideally returns the identity gives a survival probability A pm+BA\,p^m+B whose decay rate is the SPAM-immune average error per gate.
The core insight

Twirling a noise channel over the Clifford group (a unitary 2-design) turns it into a depolarizing channel parameterized by one number pp, so a random Clifford sequence of length mm that ideally returns the identity produces a survival probability A pm+BA\,p^m+B whose decay rate gives the SPAM-immune average error per gate.

Where this lives today

RB and its family are the reporting standard for every gate-based processor. Superconducting groups quote single-qubit Clifford errors well below 10−310^{-3} and two-qubit errors at the 10−310^{-3} level, extracted by interleaved RB on cross-resonance or CZ gates, with purity benchmarking separating calibration drift from decoherence. Trapped-ion platforms hold some of the lowest RB errors on record for Mølmer–Sørensen gates, and Quantinuum-style cycle benchmarking generalizes the twirl to whole gate layers. Google's cross-entropy benchmarking (XEB) — behind the 2019 "quantum supremacy" claim — twirls with random circuits rather than Cliffords, and where RB's average masks too much, gate-set tomography reconstructs the full process at greater cost. The through-line is the diamond-norm caveat: because fault-tolerance thresholds (surface-code, near 1%1\%) are worst-case statements, an experiment reporting only rr must invoke the rr-to-diamond inequalities — or tailor the noise to be stochastic via randomized compiling so the average RB number is the relevant one.

The physical picture

Think of each random Clifford as grabbing whatever error the hardware makes and rotating it to a new orientation. One error over-rotates about z^\hat z; the next Clifford re-expresses that same fault about a tilted axis; the next about another. Averaged over the whole group, the error is smeared uniformly over every direction — and a fault with no preferred direction is exactly a depolarizing channel, which shrinks the Bloch vector by a single factor pp toward the maximally mixed state. That is the whole trick: an anisotropic error is laundered into an isotropic one described by a lone number, and raising that contraction to the length mm gives the geometric loss pmp^m you observe.

Figure
An RB sequence prepares a state, applies m random Cliffords each followed by the same error Λ, undoes them with one inversion gate, and measures survival. Averaging Λ over the Clifford group smears anisotropic error into an isotropic depolarizing channel ρ → p ρ + (1−p) I∕d, so the whole error is one number p — here p = 0.98 gives r = (d−1)(1−p)∕d = 0.010 for a single qubit
The RB sequence, then the twirl that turns any error into one number |0⟩ C₁ C₂ ··· Cₘ C⁻¹ M ΛΛΛ m random Cliffords — ideal product = I arbitrary error Λ anisotropic — no single number average over the Clifford group (2-design) radius = p depolarizing channel ρ → p ρ + (1−p) I∕d p = 0.98 → r = (d−1)(1−p)∕d = 0.010 (d = 2)

The headline property is SPAM robustness. Imperfect preparation lowers where the curve starts (AA) and imperfect readout shifts where it flattens (BB), but neither bends the rate at which the exponential falls. Because RB reads the rate, not the height, its answer is immune to the errors that wreck single-point estimates and tomography. The price is the subject's deepest caveat: r=1−Fˉr=1-\bar F is an average over input states. A coherent over-rotation by a small angle θ\theta gives r∼θ2r\sim\theta^2 — reassuringly tiny — while the worst-case diamond error grows only as θ\theta and accumulates linearly with depth. RB can thus certify a gate as excellent while a hidden calibration error builds toward a threshold violation — which is why purity benchmarking and the diamond norm exist.

Figure
RB decay: the survival probability follows S(m) = A pᵐ + B with A = B = 0.5. Reference Cliffords decay with p = 0.995, an error of 0.0025 per Clifford; interleaving a target gate steepens the decay to p = 0.988, and the ratio of the two rates isolates that gate error. SPAM moves only A and B, never the rate p
The punchline: survival S(m) = A pᵐ + B — the rate p is the whole measurement 0.5 0.6 0.7 0.8 0.9 1.0 0 100 200 300 400 500 sequence length m survival probability S(m) B = 0.5 reference p = 0.995 r = 0.0025 interleaved p = 0.988 gate error from p₍int₎ ∕ p₍ref₎

The core equations

The starting point is the metric RB reports: the average gate fidelity averages, over the Haar (Fubini–Study) measure on pure states, how much of the input survives the round trip through the noisy channel and the ideal inverse.

Fˉ(E,U)=∫dψ  ⟨ψ∣ U† E(∣ψ⟩⟨ψ∣) U ∣ψ⟩(1)\bar{F}(\mathcal{E},U)=\int \mathrm{d}\psi\;\langle\psi|\,U^\dagger\,\mathcal{E}(|\psi\rangle\langle\psi|)\,U\,|\psi\rangle \qquad (1)

where: E\mathcal{E} — physical CPTP map implementing the gate; UU — ideal target unitary; dψ\mathrm{d}\psi — Haar measure over pure states; ∣ψ⟩|\psi\rangle — the input averaged over. Reading it: Fˉ=1\bar F=1 only if E=U\mathcal{E}=\mathcal{U} on every input, and any deficit is the state-averaged loss of overlap. The Haar average has a closed form tying Fˉ\bar F linearly to the entanglement fidelity FeF_e — the survival of one maximally entangled probe — so a single entangled-state number replaces the full state average.

Fˉ=d Fe+1d+1,Fe=⟨Φ∣(U†⊗I) (E⊗I)(∣Φ⟩⟨Φ∣) (U⊗I)∣Φ⟩(2)\bar{F}=\frac{d\,F_e+1}{d+1},\qquad F_e=\langle\Phi|(U^\dagger\otimes I)\,(\mathcal{E}\otimes I)(|\Phi\rangle\langle\Phi|)\,(U\otimes I)|\Phi\rangle \qquad (2)

where: FeF_e — entanglement (process) fidelity; d=2nd=2^n — Hilbert-space dimension; ∣Φ⟩|\Phi\rangle — maximally entangled state on system plus ancilla. Reading it: the two fidelities agree at unity but their infidelities differ by a fixed factor. Subtracting from one gives the average error rate experiments quote. Note the coefficient: inverting (2) gives d/(d+1)d/(d+1), not (d−1)/d(d-1)/d — the latter belongs to the depolarizing form (6), and conflating them is a common slip.

r≡1−Fˉ=d (1−Fe)d+1(3)r\equiv 1-\bar F=\frac{d\,(1-F_e)}{d+1} \qquad (3)

where: rr — average gate error per operation; Fˉ\bar F — average gate fidelity; FeF_e — entanglement fidelity of the error channel. Reading it: for large dd, r→1−Fer\to 1-F_e; for one qubit the two infidelities differ by 2/32/3. The engine of RB is the twirl: averaging Λ\Lambda over the Clifford group projects it onto the depolarizing channel — the unique group-invariant form — leaving one parameter.

Λˉ(ρ)=1∣C∣∑C∈CC† Λ(Cρ C†) C=p ρ+(1−p) Id(4)\bar{\Lambda}(\rho)=\frac{1}{|\mathcal{C}|}\sum_{C\in\mathcal{C}} \mathcal{C}^\dagger\,\Lambda\big(\mathcal{C}\rho\,\mathcal{C}^\dagger\big)\,\mathcal{C}=p\,\rho+(1-p)\,\frac{I}{d} \qquad (4)

where: C\mathcal{C} — the nn-qubit Clifford group, a unitary 2-design; Λ\Lambda — error channel being twirled; Λˉ\bar\Lambda — twirled (depolarizing) channel; pp — depolarizing (RB decay) parameter. Reading it: whatever anisotropy Λ\Lambda had, only the contraction pp survives. Composing mm twirled steps and reading out imperfectly gives the master fit function — a single exponential in mm on a SPAM-determined floor.

E[Tr(Eψ Eseq(ρ))]=A p m+B(5)\mathbb{E}\big[\mathrm{Tr}(E_\psi\,\mathcal{E}_{\text{seq}}(\rho))\big]=A\,p^{\,m}+B \qquad (5)

where: mm — random Cliffords before the inversion gate; pp — RB decay base; AA — prefactor absorbing SPAM and measurement contrast; BB — SPAM offset, →1/d\to 1/d ideally; Eψ,ρE_\psi,\rho — SPAM-bearing POVM element and state. Reading it: all preparation and readout error is locked in A,BA,B; only pp carries gate quality. The fitted pp converts to the headline number, with coefficient genuinely (d−1)/d(d-1)/d from the depolarizing channel's average fidelity Fˉ=p+(1−p)/d\bar F=p+(1-p)/d.

rClifford=(d−1)(1−p)d(6)r_{\mathrm{Clifford}}=\frac{(d-1)(1-p)}{d} \qquad (6)

where: rCliffordr_{\mathrm{Clifford}} — average error per Clifford; pp — fitted decay base; d=2nd=2^n. Reading it: single-qubit p=0.999p=0.999 gives r=5×10−4r=5\times10^{-4}, a routinely quoted floor. To isolate one gate rather than the Clifford average, interleaved RB runs a second experiment with the target gate inserted after every random Clifford; the ratio of decay bases strips the Clifford-frame error.

rgate=(d−1) (1−pC‾/p)d(7)r_{\mathrm{gate}}=\frac{(d-1)\,\big(1-p_{\overline{C}}/p\big)}{d} \qquad (7)

where: pp — reference decay (Cliffords only); pC‾p_{\overline{C}} — decay with the target gate C‾\overline{C} interleaved; rgater_{\mathrm{gate}} — estimated gate error. Reading it: pC‾/pp_{\overline C}/p is the gate's own depolarizing factor, up to a window. Because rr is an average, it does not bound the worst case. The diamond distance — the worst-case channel distinguishability that fault-tolerance theorems constrain — is sandwiched between rr and r\sqrt r.

r2  ≤  12∥E−U∥⋄  ≤  d(d+1) r(8)\frac{r}{2}\;\le\;\tfrac{1}{2}\lVert\mathcal{E}-\mathcal{U}\rVert_\diamond\;\le\;\sqrt{d(d+1)}\,\sqrt{r} \qquad (8)

where: ∥⋅∥⋄\lVert\cdot\rVert_\diamond — diamond norm; rr — RB average error rate; dd — dimension. Reading it: for coherent errors the upper bound is nearly saturated, so worst-case error can exceed rr by order d/r\sqrt{d/r}. Finally, purity (unitarity) benchmarking measures the decay of the output purity umu^m rather than the survival probability, where the unitarity u=dd−1E[Tr(EC⃗′(ρ)2)]u=\tfrac{d}{d-1}\mathbb{E}[\mathrm{Tr}(\mathcal{E}'_{\vec C}(\rho)^2)] is built from the traceless part E′\mathcal{E}' of the sequence channel. A purely incoherent error gives u=p2u=p^2, so u>p2u>p^2 flags coherent (calibration) error hiding under a small rr.

Derivation AThe average gate fidelity as one channel invariant

The goal is to turn the state-averaged expression (1) into a closed form depending on the channel only through its Kraus operators, exposing why a unitary 2-design — not the full Haar measure — is all the twirl needs. We average ∣⟨ψ∣M∣ψ⟩∣2|\langle\psi|M|\psi\rangle|^2 using its second moment, sum over Kraus terms, and apply trace preservation to reach the boxed formula and its linear link to FeF_e.

Step 1. Fold the ideal inverse into the noise: define Λ=U†∘E\Lambda=U^\dagger\circ\mathcal{E} with Kraus operators Mi=U†KiM_i=U^\dagger K_i, so Fˉ=∑i∫dψ ∣⟨ψ∣Mi∣ψ⟩∣2\bar F=\sum_i\int\mathrm{d}\psi\,|\langle\psi|M_i|\psi\rangle|^2. Why: fidelity to UU becomes fidelity to the identity for Λ\Lambda.

Step 2. Use the second-moment (2-design) integral ∫dψ ∣⟨ψ∣M∣ψ⟩∣2=Tr(MM†)+∣Tr M∣2d(d+1)\int\mathrm{d}\psi\,|\langle\psi|M|\psi\rangle|^2=\dfrac{\mathrm{Tr}(MM^\dagger)+|\mathrm{Tr}\,M|^2}{d(d+1)}. Why: the symmetric two-copy average needs only first and second moments, which the Clifford group reproduces, so it may replace the Haar integral.

Step 3. Sum over Kraus terms and apply trace preservation ∑iKi†Ki=I\sum_i K_i^\dagger K_i=I, giving ∑iTr(MiMi†)=d\sum_i\mathrm{Tr}(M_iM_i^\dagger)=d. Why: the diagonal piece of every CPTP map contributes the same constant dd, so all the physics is in ∣Tr Mi∣2|\mathrm{Tr}\,M_i|^2.

Step 4. Collect to Fˉ=d+∑i∣Tr(U†Ki)∣2d(d+1)\bar F=\dfrac{d+\sum_i|\mathrm{Tr}(U^\dagger K_i)|^2}{d(d+1)} and identify Fe=d−2∑i∣Tr(U†Ki)∣2F_e=d^{-2}\sum_i|\mathrm{Tr}(U^\dagger K_i)|^2, giving Fˉ=(dFe+1)/(d+1)\bar F=(dF_e+1)/(d+1). Why: the surviving sum is exactly d2Fed^2 F_e, so state average and entangled-probe measurement carry the same information. *As a check: the formula reduces to Fˉ=1\bar F=1 when E=U\mathcal{E}=\mathcal{U}, as required, and inverting gives r=d(1−Fe)/(d+1)r=d(1-F_e)/(d+1).*

Go deeper · Derivation B · 1 minThe single-exponential decay from the twirl
Derivation BThe single-exponential decay from the twirl

The goal is to show that gate-independent noise, threaded through a random Clifford sequence with a final inversion, produces the fit function A pm+BA\,p^m+B of (5) with a SPAM-immune decay base, making explicit that the sequence realizes one Clifford twirl per step. We build the sequence channel, reorganize its gates into per-step twirls, average each to a depolarizing channel, compose the mm factors, and take the SPAM-laden expectation.

Step 1. Apply random Cliffords C1,…,CmC_1,\dots,C_m and the inversion Cm+1=(Cm⋯C1)−1C_{m+1}=(C_m\cdots C_1)^{-1}, so the ideal net is the identity and the noisy channel is Eseq=Cm+1Λ CmΛ⋯C1Λ\mathcal{E}_{\text{seq}}=\mathcal{C}_{m+1}\Lambda\,\mathcal{C}_m\Lambda\cdots\mathcal{C}_1\Lambda with a common error Λ\Lambda after each Clifford. Why: forcing the ideal product to identity makes any surviving deviation pure error and the readout a simple survival test.

Step 2. Regroup with Dj=Cm+1⋯Cj+1\mathcal{D}_j=\mathcal{C}_{m+1}\cdots\mathcal{C}_{j+1}, so the sequence becomes a product of brackets Dj Λ Dj−1\mathcal{D}_j\,\Lambda\,\mathcal{D}_j^{-1}; because the CjC_j are uniformly random, each is a uniformly twirled copy of Λ\Lambda. Why: the protocol conjugates each error by an independent random Clifford — the twirl is built in.

Step 3. Average each bracket using (4): C†Λ C‾=Dp\overline{\mathcal{C}^\dagger\Lambda\,\mathcal{C}}=\mathcal{D}_p with Dp(ρ)=pρ+(1−p)I/d\mathcal{D}_p(\rho)=p\rho+(1-p)I/d. Why: the 2-design property forces the average onto the one-parameter depolarizing form, replacing an unknown channel by one number pp.

Step 4. Compose the mm identical steps, Dp∘m(ρ)=pmρ+(1−pm)I/d\mathcal{D}_p^{\circ m}(\rho)=p^{m}\rho+(1-p^{m})I/d, since depolarizing channels multiply in their non-identity eigenvalue. Why: identical factors compose geometrically — the origin of the single exponential, not a sum of rates.

Step 5. Take the SPAM-bearing expectation Tr(Eψ Dp∘m(ρ))=A pm+B\mathrm{Tr}(E_\psi\,\mathcal{D}_p^{\circ m}(\rho))=A\,p^m+B with A=Tr(Eψρ)−Tr(Eψ)/dA=\mathrm{Tr}(E_\psi\rho)-\mathrm{Tr}(E_\psi)/d and B=Tr(Eψ)/dB=\mathrm{Tr}(E_\psi)/d. Why: every dependence on the imperfect ρ,Eψ\rho,E_\psi is quarantined in A,BA,B; the rate pp is untouched — the SPAM robustness that defines RB. *Note: gate-dependent noise adds a second-order correction to this zeroth-order model. The conversion r=(d−1)(1−p)/dr=(d-1)(1-p)/d follows directly from Fˉ=p+(1−p)/d\bar F=p+(1-p)/d for the depolarizing channel Dp\mathcal{D}_p.*

Go deeper · Derivation C · 1 minIsolating one gate with interleaved benchmarking
Derivation CIsolating one gate with interleaved benchmarking

The goal is to derive equation (7): how two RB experiments — one with Cliffords alone, one with a target gate interleaved after every Clifford — yield the error of that single gate, cancelling the Clifford-frame error that dominates a raw fidelity. We compare the two decay bases, form their ratio, argue it is the gate's own depolarizing factor, and flag the honest uncertainty this estimate carries.

Step 1. The reference run gives A pm+BA\,p^m+B, where pp encodes the average Clifford error alone. Why: this is the baseline the interleaved run is measured against, already containing all Clifford-implementation error.

Step 2. The interleaved run applies C‾\overline C after each Clifford, so each step carries both errors; its base is pC‾≈p⋅pgp_{\overline C}\approx p\cdot p_g with pgp_g the gate's depolarizing factor. Why: to leading order the two factors multiply, steepening the decay by the gate's contribution.

Step 3. Divide the bases, pg=pC‾/pp_g=p_{\overline C}/p, then convert with rgate=(d−1)(1−pg)/dr_{\mathrm{gate}}=(d-1)(1-p_g)/d. Why: the division removes the Clifford-frame error common to both runs, leaving the target gate in isolation.

Step 4. Attach the uncertainty: gate-dependence and non-commuting error channels put the true error within a window of half-width ∼(d−1)[(d−1)∣1−p∣+d2−11−p]/d\sim (d-1)\big[(d-1)|1-p|+\sqrt{d^2-1}\sqrt{1-p}\big]/d. Why: interleaved RB gives a point estimate plus provable bounds; quoting it without the window overstates what was measured. *Numerical check: d=4d=4, p=0.94p=0.94, pC‾=0.92p_{\overline C}=0.92 give pg=0.9787p_g=0.9787 and rgate=1.60×10−2r_{\mathrm{gate}}=1.60\times10^{-2}, consistent with the worked example in the section below.*

Limiting cases

How the central RB relations behave in the regimes that matter:

CaseResultMeaning
Single qubitr=12(1−p),  d=2r=\tfrac12(1-p),\;d=2Error per Clifford r=(1−p)/2r=(1-p)/2; a decay p=0.998p=0.998 gives r=10−3r=10^{-3}.
Depolarizing noiseE(ρ)=pρ+(1−p)I/d\mathcal{E}(\rho)=p\rho+(1-p)I/dRB is exact: the fitted base equals the channel's own pp, Fˉ=p+(1−p)/d\bar F=p+(1-p)/d, no correction.
Pure coherent errorr∼θ2,  ∥E−U∥⋄∼θr\sim\theta^2,\;\lVert\mathcal{E}-\mathcal{U}\rVert_\diamond\sim\thetaOver-rotation θ\theta gives quadratic RB error but linear diamond distance — worst case underreported by ∼1/r\sim\sqrt{1/r}.
Many qubitsr→d→∞(1−p)r\xrightarrow{d\to\infty}(1-p)For large registers r→1−pr\to 1-p, but sampling random nn-qubit Cliffords is costly, motivating direct and simultaneous RB.

Worked examples

1 · Single-qubit RB, from decay to per-gate error (confidence builder)

A single-qubit RB fit returns a decay base p=0.9990p=0.9990, and the compiler uses on average 1.8751.875 native π/2\pi/2 pulses per Clifford. Report the error per Clifford, the average Clifford fidelity, and the per-native-gate error.

Step 1. Convert with equation (6). For d=2d=2, rClifford=(d−1)(1−p)/d=(1−0.9990)/2=5.0×10−4r_{\mathrm{Clifford}}=(d-1)(1-p)/d=(1-0.9990)/2=\mathbf{5.0\times10^{-4}}, so FˉClifford=1−r=0.99950\bar F_{\mathrm{Clifford}}=1-r=\mathbf{0.99950}.

Step 2. Deconvolve the compiler overhead. Each Clifford is 1.8751.875 pulses on average and to leading order the errors add, so rgate≈rClifford/1.875=2.7×10−4r_{\mathrm{gate}}\approx r_{\mathrm{Clifford}}/1.875=\mathbf{2.7\times10^{-4}} — the number to compare against a coherence-limited r∼tgate/T1r\sim t_{\text{gate}}/T_1.

Step 3. Sanity-check SPAM. If readout gives A=0.49, B=0.50A=0.49,\,B=0.50 instead of A=0.50A=0.50, the curve starts at S(0)=0.99S(0)=0.99 not 1.001.00, yet refitting still returns p=0.9990p=0.9990: the 1%1\% SPAM error moved only the prefactor. Result: rClifford=5.0×10−4r_{\mathrm{Clifford}}=5.0\times10^{-4}, Fˉ=0.99950\bar F=0.99950, rgate≈2.7×10−4r_{\mathrm{gate}}\approx2.7\times10^{-4}, SPAM-immune.

2 · Two-qubit interleaved RB for an entangling gate

A two-qubit device (d=4d=4) gives a reference decay p=0.94p=0.94 and, with a CZ interleaved after every random Clifford, a decay pC‾=0.92p_{\overline C}=0.92. Find the reference Clifford error, the isolated CZ error, and comment on whether the estimate is trustworthy.

Step 1. Reference Clifford error from (6): rref=3(0.06)/4=4.5×10−2r_{\mathrm{ref}}=3(0.06)/4=\mathbf{4.5\times10^{-2}}. Two-qubit Cliffords compile into several entangling gates each, so this average is dominated by the entangling-gate error — exactly why we interleave.

Step 2. Isolate the CZ with (7). The depolarizing factor is pg=pC‾/p=0.92/0.94=0.97872p_g=p_{\overline C}/p=0.92/0.94=\mathbf{0.97872}, so rgate=3(1−0.97872)/4=1.60×10−2r_{\mathrm{gate}}=3(1-0.97872)/4=\mathbf{1.60\times10^{-2}}.

Step 3. Attach the honest window. The gate-dependence half-width ∼(d−1)[(d−1)∣1−p∣+d2−11−p]/d≈3[0.18+150.06]/4≈0.85\sim(d-1)[(d-1)|1-p|+\sqrt{d^2-1}\sqrt{1-p}]/d\approx 3[0.18+\sqrt{15}\sqrt{0.06}]/4\approx0.85 is enormous, because the reference decay is far from 11. Result: rCZ≈1.6×10−2r_{\mathrm{CZ}}\approx1.6\times10^{-2} as a point estimate, but the rigorous bound is loose; a trustworthy interleaved number needs a high-fidelity reference (pp near 11), so this device should be improved and re-benchmarked before the CZ error is quoted.

Physics of the portrait

Randomized benchmarking is where representation theory, quantum channels, and a decade of hardware met. The story is not one person but a lineage: a fidelity formula, a scalable idea, and the theorem that made it rigorous.

Origins · 1 minrandomized benchmarking and how this was discovered
RB
randomized benchmarking
protocol matured 2005–2012 · scalable, SPAM-robust characterization of quantum gates

Randomized benchmarking is one of the few characterization tools born theoretical that became indispensable in the lab within a decade. Its prehistory is Michael Nielsen's 2002 one-line formula Fˉ=(dFe+1)/(d+1)\bar F=(dF_e+1)/(d+1), which reduced the state-averaged fidelity — an integral over the whole Bloch sphere — to a single channel invariant, making "average error" computable rather than a slogan. The idea of measuring that average by random circuits came from Joseph Emerson, Robert Alicki and Karol Życzkowski in 2005, and Emanuel Knill and collaborators at NIST turned it into a working single-qubit protocol in 2008. The decisive step was Easwar Magesan, Jay Gambetta and Emerson in 2011–2012, who proved that a Clifford twirl projects arbitrary gate-independent noise onto a depolarizing channel — so the survival probability is rigorously a single exponential A pm+BA\,p^m+B with a SPAM-immune rate — and extended it to interleaved RB. What began as a way to dodge the SPAM problem is now the common currency of superconducting and trapped-ion reporting, the number every fault-tolerance threshold is measured against.

History
2002
— Nielsen gives the simple formula relating average gate fidelity to entanglement fidelity
2005
— Emerson, Alicki and Życzkowski propose scalable noise estimation from random unitaries
2008
— Knill and collaborators demonstrate randomized benchmarking of single-qubit gates
2011
— Magesan, Gambetta and Emerson prove the scalable and robust RB decay from the twirl
2012
— interleaved randomized benchmarking isolates the error of an individual gate

Going further

Texts. Nielsen and Chuang, Quantum Computation and Quantum Information, Ch. 9 (fidelity, distance measures) · Watrous, The Theory of Quantum Information, Ch. 3 (diamond norm) · Wilde, Quantum Information Theory · Preskill, Lecture Notes on Quantum Computation, Ch. 3 · Kitaev, Shen and Vyalyi, Classical and Quantum Computation.

Papers. Nielsen, A simple formula for the average gate fidelity, Phys. Lett. A 303, 249 (2002) · Emerson, Alicki, Życzkowski, Scalable noise estimation with random unitary operators, J. Opt. B 7, S347 (2005) · Knill et al., Randomized benchmarking of quantum gates, Phys. Rev. A 77, 012307 (2008) · Magesan, Gambetta, Emerson, Scalable and robust randomized benchmarking, PRL 106, 180504 (2011) and PRA 85, 042311 (2012) · Magesan et al., Interleaved RB, PRL 109, 080505 (2012) · Wallman and Flammia, Randomized benchmarking with confidence, NJP 16, 103032 (2014). Note that Fˉ=(dFe+1)/(d+1)\bar F=(dF_e+1)/(d+1) inverts to r=d(1−Fe)/(d+1)r=d(1-F_e)/(d+1); the common mis-statement r=(d−1)(1−Fe)/dr=(d-1)(1-F_e)/d conflates FeF_e with the depolarizing parameter pp and fails at d=2d=2. The single-qubit anchor p=0.9990⇒r=5.0×10−4p=0.9990\Rightarrow r=5.0\times10^{-4} and the interleaved anchor p=0.94, pC‾=0.92⇒rgate=1.60×10−2p=0.94,\,p_{\overline C}=0.92\Rightarrow r_{\mathrm{gate}}=1.60\times10^{-2} are worked out in the examples above. Stated platform magnitudes are order-of-magnitude regimes, not specific cited measurements.

Prerequisites. The DiVincenzo Criteria · Density operators and CPTP maps · The Clifford group and stabilizer formalism · Haar measure and unitary designs. Leads to. Superconducting Qubits · The Transmon Qubit · Trapped-Ion Qubits · The Mølmer–Sørensen Gate.

Ask the tutor: Ask me why a 99.9%99.9\% RB fidelity can still fail a fault-tolerance threshold, and how purity benchmarking catches the coherent error hiding underneath.

What is the difference between average gate fidelity, entanglement fidelity, and the diamond norm?

They answer three questions about one channel. Average gate fidelity Fˉ\bar F asks how well the gate does on average over all pure inputs; entanglement fidelity FeF_e asks how well it preserves one maximally entangled probe, tied to Fˉ\bar F by Fˉ=(dFe+1)/(d+1)\bar F=(dF_e+1)/(d+1); the diamond distance asks the worst case over all inputs, possibly entangled with an ancilla. Thresholds are worst-case statements, so the diamond norm is binding while Fˉ\bar F is the cheap one. They agree for stochastic error but diverge — by up to d\sqrt d — for coherent error.

Why must the gates come from the Clifford group specifically?

Because the twirl needs a unitary 2-design, and the Clifford group is one — its uniform average reproduces the first and second Haar moments, all the fidelity integral depends on, forcing any error onto the depolarizing form. It has two further virtues: it is finite, so you can sample it exactly and compute the inversion gate efficiently via the stabilizer formalism (Gottesman–Knill), and it is built from gates every platform calibrates. Non-Clifford and approximate designs exist, but the Clifford group is the sweet spot of 2-design and efficiently implementable.

If RB only gives an average, why is it trusted for reporting gate quality?

Because for the dominant failure modes the average is what matters, and RB is one of the few numbers provably free of the SPAM error that corrupts the alternatives. When noise is stochastic — decoherence, dephasing, control jitter — the average error rr and the worst-case diamond error sit within a small constant factor, so rr faithfully summarizes the gate. The exception is coherent error, where r∼θ2r\sim\theta^2 hides a diamond error ∼θ\sim\theta; that is why purity benchmarking exists, to flag when u>p2u>p^2. Practice pairs RB with purity RB and randomized compiling, which makes the average honest.

What exactly are the fit constants A and B, and why do they not affect the answer?

B=Tr(Eψ)/dB=\mathrm{Tr}(E_\psi)/d is the floor the survival probability decays to — the fully depolarized state I/dI/d read out by the measurement's average outcome. A=Tr(Eψρ)−Tr(Eψ)/dA=\mathrm{Tr}(E_\psi\rho)-\mathrm{Tr}(E_\psi)/d is the initial contrast above it, set by how well you prepared ρ\rho and read out EψE_\psi. Both are built entirely from the imperfect preparation and measurement — the SPAM — and neither depends on mm: SPAM scales the curve and shifts its floor but cannot change how fast it falls, so RB, which fits the rate pp, is blind to AA and BB.

How is interleaved RB's per-gate number related to the raw Clifford error?

The reference experiment gives the average error over the Clifford group, dominated for two qubits by the entangling gates each Clifford compiles into. Interleaved RB inserts your target gate after every random Clifford, steepening the decay from pp to pC‾≈p pgp_{\overline C}\approx p\,p_g. Dividing the bases, pg=pC‾/pp_g=p_{\overline C}/p, cancels the common Clifford-frame error and leaves the gate's own factor rgate=(d−1)(1−pg)/dr_{\mathrm{gate}}=(d-1)(1-p_g)/d. The catch is an uncertainty window that grows as pp moves from 11, so the method is sharp only when the baseline gates are good.

Is RB the same as cross-entropy benchmarking (XEB), the quantum-supremacy metric?

They share DNA but differ in what they twirl and read. RB uses random Clifford sequences that compose to the identity and reads a survival probability. XEB uses random circuits (not Cliffords, not inverted) and reads a fidelity from how spiky the output distribution is relative to ideal — the cross-entropy with the Porter–Thomas distribution. XEB scales to the deep, wide random circuits used to show computational advantage, where a Clifford inversion is impractical, but it is more model-sensitive and less cleanly SPAM-robust. RB is the gold standard for isolated gates, XEB for whole-processor random-circuit performance.

Before this

Where this leads