Skip to content

Cycle benchmarking measures the error of a scheduled layer of gates, idles, and simultaneous activity. It repeats a target Clifford layer while inserting random Pauli operations, then measures how selected Pauli expectations decay.

The central idea is to keep the layer of interest fixed while making its noise easier to analyze. The resulting fidelity refers to the dressed cycle, including the implemented randomizing operations. A fitted decay can measure a product of several Pauli responses, so converting it into a fidelity requires care.

Required background. Randomized benchmarking explains decay experiments; Pauli channels explains diagonal noise in a Pauli basis. Helpful background. Stabilizer formalism supplies efficient Clifford propagation.

A controlled-Z gate applied alone and the same gate applied alongside several drives need not have the same error. Timing, spectators, idles, echo pulses, and frame updates affect the implemented channel. Cycle benchmarking includes this parallel context, rather than inferring a layer’s quality by multiplying isolated component fidelities.

The standard protocol uses a Clifford cycle GG, which maps every Pauli to another Pauli up to sign. The test remains classically trackable without a large random Clifford inversion. It does not directly characterize an arbitrary non-Clifford layer by the same formulas.

Random Pauli operations may be physical pulses, virtual changes of frame, or corrections absorbed into adjacent gates. Their noise and compilation matter. The ideal Pauli twirl describes a fixed error channel conjugated by perfect randomizers; physical implementations need additional assumptions to realize that model (Wallman and Emerson, 2016). The original cycle-benchmarking analysis assumes Markovian noise and gate-independent noise on the randomizing single-qubit cycles (Erhard and colleagues, 2019).

For nn qubits, set d=2nd=2^n. The effective implementation below includes the randomizing operations. In the tailored-noise model, use the convention

G~=G∘Λ,\widetilde{\mathcal G}=\mathcal G\circ\Lambda,

so Λ=G−1∘G~\Lambda=\mathcal G^{-1}\circ\widetilde{\mathcal G} is the relative error before the ideal cycle. Define its response to a Pauli PP by

fP=1dTr⁡[PΛ(P)].f_P=\frac1d\operatorname{Tr}[P\Lambda(P)].

For a Pauli channel, Λ(P)=fPP\Lambda(P)=f_PP. A response near one preserves that Pauli expectation; a smaller response attenuates it.

The process fidelity, or entanglement fidelity relative to GG, is

Fe=1d2∑PfP.F_{\rm e}=\frac1{d^2}\sum_P f_P.

This Pauli-average identity also holds for a general channel; diagonalization is needed for the simple repeated-cycle decay, not for the identity itself (Flammia and Liu, 2011). Trace preservation gives fI=1f_I=1, even when the channel is not unital.

If a Pauli channel applies error QQ with probability μQ\mu_Q, then

fP=∑QμQχ(P,Q),μQ=1d2∑Pχ(P,Q)fP,\begin{aligned} f_P&=\sum_Q\mu_Q\chi(P,Q),\\ \mu_Q&=\frac1{d^2}\sum_P\chi(P,Q)f_P, \end{aligned}

where χ(P,Q)\chi(P,Q) is +1+1 for commuting Paulis and −1-1 otherwise. In particular, Fe=μIF_{\rm e}=\mu_I: process infidelity is the nonidentity error probability in this effective Pauli model.

Average gate fidelity uses a different normalization:

Favg=dFe+1d+1.F_{\rm avg}=\frac{dF_{\rm e}+1}{d+1}.

Thus average infidelity is d/(d+1)d/(d+1) times process infidelity (Nielsen, 2002). This conversion does not turn a bound or an approximate estimate into an exact fidelity.

Why a controlled-Z experiment measures a product

Section titled “Why a controlled-Z experiment measures a product”

Ignore known signs temporarily and write the Clifford permutation as π\pi:

G(P)=sPπ(P),sP=±1.\mathcal G(P)=s_P\pi(P), \qquad s_P=\pm1.

Under stationary Pauli-diagonal noise, each step attenuates the current Pauli and then moves it to the next one. After correcting the known ideal signs, the selected signal has the form

SP(m)=AP∏j=0m−1fπj(P).S_P(m)=A_P\prod_{j=0}^{m-1}f_{\pi^j(P)}.

The constant APA_P represents preparation, readout, and edge effects after the protocol isolates the chosen Pauli component.

For controlled-Z,

XI⟼XZ⟼XI.XI\longmapsto XZ\longmapsto XI.

At even lengths, the measured Pauli returns to its initial form:

SXI(2t)=AXI(fXIfXZ)t.S_{XI}(2t)=A_{XI}(f_{XI}f_{XZ})^t.

Writing this as AXIg2tA_{XI}g^{2t} identifies

g=fXIfXZ,g=\sqrt{f_{XI}f_{XZ}},

assuming positive responses. It does not determine the two factors individually.

A controlled-Z cycle moves XI to XZ and back, acquiring attenuation factors 0.86 and 0.94. An alternative with equal factors has the same two-step product.

Two applications return the Pauli to its starting point and measure the product 0.86×0.94=0.80840.86\times0.94=0.8084. Replacing both factors by 0.8084≃0.899111\sqrt{0.8084}\simeq0.899111 leaves every even-length decay unchanged. The individual responses have different arithmetic means.

More generally, an orbit O\mathcal O of length ℓ\ell gives

gO=(∏P∈OfP)1/ℓ.g_{\mathcal O}=\left(\prod_{P\in\mathcal O}f_P\right)^{1/\ell}.

Use lengths that return to the same ideal measurement procedure. Choosing multiples of the order of the Clifford channel is sufficient. Orbit-compatible lengths can also work when their output signs and measurement amplitudes are controlled.

A practical experiment samples test Paulis, prepares suitable product-basis states, repeats the target with independent Pauli randomizers, and measures the predicted output Pauli. Stabilizer propagation supplies the ideal sign for every circuit. Multiply each recorded outcome by that sign before averaging.

For example, prepare Z=+1Z=+1 and apply one uniformly random Pauli to an otherwise perfect qubit. The raw ZZ outcomes average to zero: I,ZI,Z preserve the sign while X,YX,Y reverse it. Correcting the known sign makes every ideal result +1+1. Forgetting this step would mistake intentional randomization for noise.

The input and measurement randomization must also isolate the desired Pauli component. One useful ideal description uses the mixed eigenstates

ρ±=I±Pd.\rho_\pm=\frac{I\pm P}{d}.

They can be prepared as mixtures of product-basis eigenstates. Taking half the difference of their output Pauli expectations isolates the response to PP and cancels a constant additive readout offset. Implemented preparation and readout errors still require the protocol’s stability and sign-projection assumptions; an arbitrary raw expectation is not guaranteed to be a single exponential.

At two compatible lengths with the same nonzero amplitude,

gP=[SP(m2)SP(m1)]1/(m2−m1).g_P= \left[\frac{S_P(m_2)}{S_P(m_1)}\right]^{1/(m_2-m_1)}.

For m1=4m_1=4, m2=12m_2=12, S(4)=0.842S(4)=0.842, and S(12)=0.790S(12)=0.790, the estimate is approximately 0.9920630.992063. The ratio cancels a constant amplitude, not drift between the two measurements. A small denominator makes it unstable; noisy negative or zero signals should be handled by an appropriate likelihood rather than clipped before taking roots.

Use more than two lengths to test the assumed decay. Two points alone cannot reveal an additional mode, changing amplitude, or offset.

The aggregate is a lower bound in the positive-response model

Section titled “The aggregate is a lower bound in the positive-response model”

Suppose the experiment samples individual nonidentity Paulis uniformly and assigns each its orbit rate gPg_P. Define the population aggregate

FCB=1+∑P≠IgPd2.F_{\rm CB}=\frac{1+\sum_{P\neq I}g_P}{d^2}.

For each orbit, the arithmetic–geometric mean inequality gives

gO≤1∣O∣∑P∈OfP.g_{\mathcal O}\leq \frac1{|\mathcal O|}\sum_{P\in\mathcal O}f_P.

Summing over Paulis, with each orbit weighted by its size, proves

FCB≤Fe.F_{\rm CB}\leq F_{\rm e}.

This derivation assumes nonnegative responses and the stationary effective Pauli model. It is not a bound for arbitrary fitted decay curves. Negative responses can be hidden by even-length sampling, as Exercise 8 shows.

When fP=1−ϵPf_P=1-\epsilon_P and all errors are small, the orbit’s arithmetic mean exceeds its geometric mean by

12Var⁡O(ϵP)+O(ϵ3).\frac12\operatorname{Var}_{\mathcal O}(\epsilon_P) +O(\epsilon^3).

The discrepancy begins at second order. This explains the accurate lower-bound interpretation in the regime of the original protocol. Equality holds when responses are constant within each orbit.

For instance, consider a physical two-qubit Pauli channel with fI=1f_I=1, all nonidentity responses 0.90.9 except fXI=0.86f_{XI}=0.86 and fXZ=0.94f_{XZ}=0.94. The inverse Pauli transform gives nonnegative error probabilities. Then

Fe=0.906250,FCB≃0.906139.\begin{aligned} F_{\rm e}&=0.906250,\\ F_{\rm CB}&\simeq0.906139. \end{aligned}

A second physical channel replacing those two responses by their geometric mean has exactly the same controlled-Z orbit decays, but its true process fidelity equals 0.9061390.906139. Thus the missing distinction is real, not merely uncertainty in the fit.

With finite data, replace the Pauli average by its sample mean and estimate each rate from repeated circuits. The resulting point estimate can fluctuate above the population bound and is generally biased by nonlinear ratios and roots. A confidence statement must account for these effects; the population inequality alone does not make every measured value a certified lower limit.

As a numerical conversion, a two-qubit population mean g‾≠I=0.990\overline g_{\neq I}=0.990 gives

FCB=1+15(0.990)16=0.990625.F_{\rm CB}=\frac{1+15(0.990)}{16}=0.990625.

Under the model this bounds the true average infidelity by r≤0.0075r\leq0.0075. Calling 0.00750.0075 the exact average infidelity would discard the orbit ambiguity.

Information What the standard decay supplies
A Pauli fixed by the cycle Its individual positive response
A nontrivial orbit A product or geometric mean
Uniformly sampled Pauli directions An aggregate fidelity bound
A complete Pauli error distribution Additional information is needed

For controlled-Z, ZIZI, IZIZ, and ZZZZ are fixed. The other twelve nonidentity Paulis form six two-element orbits. Sampling each orbit equally would overweight the fixed directions; sample Paulis uniformly or apply the correct orbit-size weights.

Related cycles and trusted operations can reveal more combinations. In the model studied by Chen and colleagues (2023), Clifford layers have Pauli noise, SPAM is uncertain, and single-qubit controls are ideal or absorbed into a suitable dressed-noise description. A graph of Pauli support patterns characterizes the identifiable products. Its cycles represent products that survive the SPAM ambiguity. This result does not say that one fixed target cycle reveals every response, or that arbitrary noisy controls satisfy the same assumptions.

The total dressed fidelity includes randomizer errors. Dividing it by a reference fidelity does not generally remove those errors. Even independent stochastic Pauli errors can cancel: two bit-flip channels with flip probability 0.10.1 each have process fidelity 0.90.9, but their composition has fidelity 0.820.82, not 0.810.81. The ratio 0.82/0.90.82/0.9 therefore overestimates the second channel’s 0.90.9 fidelity.

There are three sampling questions: which test Paulis were selected, which random circuits were drawn for each Pauli and length, and which outcomes appeared on repeated shots. More shots of existing circuits cannot remove uncertainty from the first two choices. Randomized benchmarking derives the circuit/shot variance and switching-cost tradeoff.

If the exact orbit rates lie in [0,1][0,1], KK independent uniformly sampled Paulis estimate their mean within ε\varepsilon with failure probability at most δ\delta when

K≥log⁡(2/δ)2ε2.K\geq\frac{\log(2/\delta)}{2\varepsilon^2}.

This elementary bound does not depend on the register dimension. It assumes access to the exact rates: finite-shot rate estimation, small preparation/readout contrast, and small decays add costs. Estimating all 4n4^n responses or rare error probabilities is a much larger task.

Compare several compatible length pairs, interleave their acquisition times, and check computational-space population. Leakage, drift, memory, and randomizer-dependent noise can spoil the stationary Pauli model. For an undressed workload, coherent accumulation can also differ from the averaged randomized experiment. These are physical limits of the inference, rather than problems cured by collecting more shots.

A qubit has fX=0.98f_X=0.98, fY=0.97f_Y=0.97, and fZ=0.99f_Z=0.99. Find all four error probabilities and both fidelity conventions.

Solution

The inverse transform gives

μI=(1+fX+fY+fZ)/4=0.985,μX=(1+fX−fY−fZ)/4=0.005,μY=(1−fX+fY−fZ)/4=0,μZ=(1−fX−fY+fZ)/4=0.010.\begin{aligned} \mu_I&=(1+f_X+f_Y+f_Z)/4=0.985,\\ \mu_X&=(1+f_X-f_Y-f_Z)/4=0.005,\\ \mu_Y&=(1-f_X+f_Y-f_Z)/4=0,\\ \mu_Z&=(1-f_X-f_Y+f_Z)/4=0.010. \end{aligned}

They are nonnegative and sum to one. Process fidelity is 0.9850.985 and average fidelity is (2×0.985+1)/3=0.990(2\times0.985+1)/3=0.990.

Verify XI↦XZ↦XIXI\mapsto XZ\mapsto XI. If a fitted positive rate is g=0.991g=0.991, what is determined?

Solution

Controlled-Z maps X1X_1 to X1Z2X_1Z_2 and preserves Z2Z_2. Applying it twice restores X1X_1. The measured product is fXIfXZ=0.9912=0.982081f_{XI}f_{XZ}=0.991^2=0.982081. One product does not fix both factors.

For the figure’s two responses, calculate the aggregate fidelity gap. Why is the proposed two-qubit channel physical?

Solution

The orbit arithmetic mean is 0.90.9, while g=0.8084≃0.899110672g=\sqrt{0.8084}\simeq0.899110672. Only two of the sixteen Pauli terms differ, so

Fe−FCB=2(0.9−g)16≃0.000111166.F_{\rm e}-F_{\rm CB}=\frac{2(0.9-g)}{16} \simeq0.000111166.

Before the perturbation, μI=0.90625\mu_I=0.90625 and every other error probability is 0.006250.00625. The changes −0.04-0.04 and +0.04+0.04 in two Pauli responses alter any nonidentity probability by at most 0.08/16=0.0050.08/16=0.005. All remain nonnegative, and the identity probability is unchanged. The equal-response alternative also remains physical.

If S(mi)=AigmiS(m_i)=A_i g^{m_i}, derive the two-length estimate. Use g=0.99g=0.99, A2/A1=0.98A_2/A_1=0.98, and m2−m1=8m_2-m_1=8.

Solution g^=g(A2/A1)1/8=0.99(0.98)1/8≃0.987503.\begin{aligned} \widehat g&=g(A_2/A_1)^{1/8}\\ &=0.99(0.98)^{1/8}\\ &\simeq0.987503. \end{aligned}

A two-percent amplitude change makes the apparent per-cycle decay stronger. More shots cannot distinguish this systematic change from a different gg using only those two conditions.

A perfect qubit prepared in Z=+1Z=+1 receives a uniformly random Pauli. Explain the raw and corrected means. Separately, if a readout reports b+a⟨P⟩b+a\langle P\rangle, what does pairing the two input signs accomplish?

Solution

The raw means are +1+1 for randomizers I,ZI,Z and −1-1 for X,YX,Y, so the uniform mean is zero. Multiplication by the known ideal sign makes every corrected result +1+1.

For ideal paired inputs with output expectations ±f\pm f, the reported values are b±afb\pm af. Half their difference is afaf: the offset cancels, while the contrast aa remains. Stable contrast can cancel in a length ratio; drifting contrast does not.

Compose two independent bit-flip channels with probabilities q1=q2=0.1q_1=q_2=0.1. Find the total no-error probability and explain the failure of a fidelity ratio.

Solution

Two flips cancel. Thus

Fetotal=(1−q1)(1−q2)+q1q2=0.82.F_{\rm e}^{\rm total} =(1-q_1)(1-q_2)+q_1q_2=0.82.

Each channel has fidelity 0.90.9, but 0.82/0.9≃0.9111110.82/0.9\simeq0.911111 is not the other’s fidelity. Independence of errors does not make their process fidelities multiplicative.

For ε=0.01\varepsilon=0.01 and δ=0.05\delta=0.05, evaluate the stated bound on sampled Pauli directions. Does it bound the total number of experimental shots?

Solution K≥log⁡402(0.01)2≃18444.4,K\geq\frac{\log40}{2(0.01)^2} \simeq18444.4,

so K=18,445K=18{,}445 suffices for the bounded-variable sampling statement. This deliberately conservative result treats orbit rates as known. Measuring each rate with finite precision adds circuit and shot costs; it does not guarantee an experiment of only 18,445 shots.

8. Why the positive-response assumption matters

Section titled “8. Why the positive-response assumption matters”

Take an ideal identity cycle whose implementation applies ZZ deterministically. What would even-length measurements of X,Y,ZX,Y,Z show? What is the true process fidelity?

Solution

The responses are fX=fY=−1f_X=f_Y=-1 and fZ=1f_Z=1. All even powers are one, so sampling only even lengths would resemble a perfect cycle if positive roots were silently imposed. Yet

Fe=(1−1−1+1)/4=0.F_{\rm e}=(1-1-1+1)/4=0.

The near-identity, positive-response regime is essential for the geometric-mean interpretation. Odd lengths expose the sign reversal in this example.

9. When a mean does not define a physical channel

Section titled “9. When a mean does not define a physical channel”

Can the three numbers fX=1f_X=1, fY=1f_Y=1, fZ=0.8f_Z=0.8 describe a qubit Pauli channel?

Solution

No. Although every response lies in [−1,1][-1,1], the inverse transform gives

μZ=(1−fX−fY+fZ)/4=−0.05.\mu_Z=(1-f_X-f_Y+f_Z)/4=-0.05.

Complete positivity constrains the responses jointly. Bounding each fitted number separately does not ensure a physical reconstructed channel.

  • Chen, S., Y. Liu, M. Otten, A. Seif, B. Fefferman, and L. Jiang. “The learnability of Pauli noise.” Nature Communications 14, 52 (2023). arXiv:2206.06362.
  • Erhard, A., and colleagues. “Characterizing large-scale quantum computers via cycle benchmarking.” Nature Communications 10, 5347 (2019). doi:10.1038/s41467-019-13068-7.
  • Flammia, S. T., and Y.-K. Liu. “Direct fidelity estimation from few Pauli measurements.” Physical Review Letters 106, 230501 (2011). arXiv:1104.4695.
  • Nielsen, M. A. “A simple formula for the average gate fidelity of a quantum dynamical operation.” Physics Letters A 303, 249–252 (2002). arXiv:quant-ph/0205035.
  • Wallman, J. J., and J. Emerson. “Noise tailoring for scalable quantum computation via randomized compiling.” Physical Review A 94, 052325 (2016). arXiv:1512.01098.