Cross-Entropy Benchmarking and Verification of Sampling

Sampling from the output distribution of a deep random quantum circuit is believed to be classically intractable, and it is the task at the heart of every leading "quantum advantage" experiment. But this raises an awkward question of verification: how do you check that a noisy, imperfect device actually performed the intended sampling, when the ideal distribution it was supposed to reproduce is itself exponentially hard to write down? You cannot collect enough samples to estimate a distribution over 2n2^n strings, and you cannot compare against a target you cannot compute. Cross-entropy benchmarking is the pragmatic escape: it abandons distribution-level verification and replaces it with a single scalar — the linear cross-entropy fidelity FXEBF_{\text{XEB}} — computed from the bitstrings the machine returned and a classically evaluated list of their ideal Born probabilities. The trick that makes one number carry so much is the spikiness of random-circuit output. A deep random circuit scrambles amplitudes into effectively complex Gaussians, so the ideal probabilities obey the Porter–Thomas law: most strings are improbable, but a lucky few are anomalously heavy. A faithful sampler preferentially returns those heavy strings, so the average of the ideal probability over its samples beats the flat baseline; noise smears the spikes toward uniform and the average collapses. XEB reads off how much spikiness survived. Under a global-depolarizing model, that surviving fraction is exactly the circuit fidelity — turning XEB into a tomography-free measurement of accumulated gate error. This dual identity, one statistic that is at once a hardness witness and a fidelity meter, is what made XEB the backbone of Google's Sycamore experiment, and also what makes its soundness so subtle and contested.

Key takeaways
  • Linear cross-entropy benchmarking (linear XEB) estimates the fidelity of a noisy random-circuit sampler by averaging the ideal output probabilities p(x)p(x) over the bitstrings xx the hardware actually returned: FXEB=N⟨p(x)⟩obs−1F_{\text{XEB}}=N\langle p(x)\rangle_{\text{obs}}-1 with N=2nN=2^n.
  • For a circuit that behaves as an approximate unitary 2-design, the ideal probabilities follow the Porter–Thomas law Pr⁡(Np=z)=e−z\Pr(Np=z)=e^{-z}, fixing the two calibration constants ⟨p⟩=1/N\langle p\rangle=1/N and ⟨Np⟩ideal=2\langle Np\rangle_{\text{ideal}}=2.
  • The score reads FXEB≈1F_{\text{XEB}}\approx 1 for a perfect sampler and FXEB≈0F_{\text{XEB}}\approx 0 for the uniform (fully depolarized) distribution; under a global-depolarizing model it equals the circuit fidelity exactly.
  • XEB underpinned Google's 2019 quantum-supremacy claim: a 5353-qubit, depth-2020 circuit reached FXEB≈2×10−3F_{\text{XEB}}\approx 2\times10^{-3} with roughly a million samples — small, but many standard deviations above the statistical floor.
  • XEB is not a proof of quantum advantage: classical spoofing algorithms achieve nonzero FXEBF_{\text{XEB}} without correct sampling, and tensor-network contractions have matched experimental scores, so its security rests on unproven average-case hardness conjectures.
  • Key idea: linear XEB estimates fidelity via FXEB=⟨Np(x)⟩observed−1F_{\text{XEB}}=\langle N p(x)\rangle_{\text{observed}}-1, exploiting Porter–Thomas statistics so that an ideal sampler scores ≈1\approx 1, the uniform distribution scores 00, and under global depolarizing noise the score equals the circuit fidelity.
The core insight

Linear XEB estimates fidelity via FXEB=⟨Np(x)⟩observed−1F_{\text{XEB}}=\langle N p(x)\rangle_{\text{observed}}-1, leveraging Porter–Thomas statistics: an ideal sampler scores ≈1\approx 1, the uniform distribution scores 00, and under global depolarizing noise the score equals the circuit fidelity.

Where this lives today

XEB is now the standard yardstick of the noisy-intermediate-scale era, and its story is still being written on both sides of the advantage line. On the experimental side, every superconducting supremacy claim since Sycamore — Google's later 7070-qubit runs, and the Chinese Zuchongzhi processors — quotes a linear XEB fidelity as its headline result, and photonic Gaussian-boson-sampling machines use closely related cross-entropy tests. Beyond advantage claims, XEB has become a workhorse of device characterization: because it equals the global circuit fidelity under depolarizing noise, experimentalists fit log⁡FXEB\log F_{\text{XEB}} against circuit depth to extract an effective per-cycle error that captures crosstalk and context-dependent errors invisible to isolated-gate randomized benchmarking. On the theory side it drives an active research program in average-case complexity — anticoncentration of random circuits, the average-case #P-hardness of estimating a single p(x)p(x), and the precise relationship between hardness of sampling and hardness of scoring. And it is a moving target: ever-better tensor-network contractions, with slicing and clever contraction ordering, have repeatedly closed the classical-quantum gap, turning the original "10,00010{,}000-year" estimate into days or hours and forcing each new experiment to push to larger volume. The open problem XEB crystallizes — a verification that is efficient, sound, and scalable all at once — remains unsolved, and is one of the sharpest questions in quantum computing.

The physical picture

A deep random circuit acts, on its low moments, like a Haar-random unitary. The output amplitudes ⟨x∣C∣0⟩\langle x|C|0\rangle therefore look like independent complex Gaussians, and the probabilities p(x)=∣⟨x∣C∣0⟩∣2p(x)=|\langle x|C|0\rangle|^2 inherit the Porter–Thomas distribution: their rescaled values Np(x)Np(x) are exponentially distributed. The consequence is a distribution that is spiky rather than flat — the typical string is unlikely, but a small population of strings carries far more than their fair share of the probability. A perfect sampler returns strings in proportion to pp, so it lands on the spikes disproportionately often, and averaging pp over its samples sits above the flat baseline. A noisy device that has forgotten the circuit returns strings uniformly at random, hitting spikes no more often than valleys, and the same average collapses to its minimum. XEB is nothing more than a calibrated reading of that difference.

Figure
Porter–Thomas statistics of a random circuit: the grey curve exp(−z) is the density of Np = N·p(x) across all 2ⁿ strings, whose mean is the uniform baseline ⟨Np⟩ = 1; the blue curve z·exp(−z) is what an ideal sampler returns, with mean ⟨Np⟩ = 2. Linear XEB reads the gap, F_XEB = ⟨Np⟩ − 1, running from 0 for a uniform device to 1 for an ideal one
Spikiness of a random circuit: F_XEB = ⟨Np⟩ − 1 reads the gap between baseline 1 and ideal 2 0 1 2 3 4 5 rescaled probability Np = N·p(x) probability density ⟨Np⟩ = 1 uniform → F_XEB = 0 ⟨Np⟩ = 2 ideal → F_XEB = 1 exp(−z): strings z·exp(−z): ideal samples

There are two ways to read the same estimator, and both matter. As a correlation, FXEB=N∑xq(x)p(x)−1F_{\text{XEB}}=N\sum_x q(x)p(x)-1 measures how strongly the experimental distribution qq overlaps the ideal pp — it is large exactly when the device concentrates where the ideal is heavy, and the subtraction of 11 recenters the worthless uniform output to score zero. As a fidelity, it is even sharper: a deep noisy circuit is well modeled by the global-depolarizing state ρ=F∣ψ⟩⟨ψ∣+(1−F)I/N\rho=F|\psi\rangle\langle\psi|+(1-F)I/N, a fraction FF of the ideal pure state plus a fraction 1−F1-F of structureless noise. Feed that into the estimator and the identity component contributes precisely the uniform baseline that the −1-1 removes, leaving FXEB=FF_{\text{XEB}}=F on the nose. One measured number simultaneously certifies closeness to the ideal distribution and reports the accumulated entanglement fidelity of the whole circuit — no tomography required.

Figure
Fidelity decays exponentially with circuit volume: F ≈ exp(−Σ e_g) falls about a decade every 7 cycles, so a 53-qubit depth-20 Sycamore circuit lands at F_XEB ≈ 2×10⁻³ — small but many σ above the 1/√m ≈ 10⁻³ statistical floor at m ≈ 10⁶ shots
The punchline: fidelity decay F ≈ exp(−Σ e_g) and the Sycamore point F_XEB ≈ 2×10⁻³ 10⁰ 10⁻¹ 10⁻² 10⁻³ 0 5 10 15 20 number of cycles (circuit depth) linear XEB fidelity F statistical floor σ ≈ 1/√m ≈ 10⁻³ (m ≈ 10⁶) Sycamore 53 qubits · depth 20 F_XEB ≈ 2×10⁻³ slope set by Σ e_g per cycle

The deep tension in the picture is that XEB silently answers two very different questions with one number: "did the device sample from something close to the ideal distribution?" and "is achieving this score classically hard?". The Porter–Thomas mathematics and the depolarizing model make the first question rigorous. The second rests on a conjecture — that no efficient classical algorithm can reach a comparable score — and that is the leg spoofing attacks kick at, engineering a cheap distribution that shares the ideal's heavy strings without ever simulating the circuit.

The core equations

Everything begins with the quantity XEB needs but cannot easily get: the ideal probability of a measured string. For a circuit CC on nn qubits initialized in ∣0⊗n⟩|0^{\otimes n}\rangle, the Born rule fixes it, and evaluating it for a generic string is the computational bottleneck of the whole scheme.

p(x)=∣⟨x∣C∣0⊗n⟩∣2(1)p(x)=\lvert\langle x|C|0^{\otimes n}\rangle\rvert^{2} \qquad (1)

where: CC — the (random) quantum circuit on nn qubits, regarded as a unitary; xx — an nn-bit measurement outcome; N=2nN=2^n — dimension of the Hilbert space; p(x)p(x) — ideal probability of xx, generically #P-hard to evaluate. Reading: XEB does not need the whole distribution, only pp evaluated on the few strings the device returned — but even one such evaluation is the hard part. When CC is drawn from an approximate unitary 2-design, its amplitudes behave as complex Gaussians and the rescaled probability NpNp follows a universal law. This is the statistical engine of the benchmark: it is what makes an average over a few samples informative about a distribution over exponentially many strings.

Pr⁡(Np=z)=e−z,z=Np≥0(2)\Pr(Np=z)=e^{-z},\qquad z=Np\ge 0 \qquad (2)

where: z=Np(x)z=Np(x) — the ideal probability rescaled by the Hilbert-space dimension; e−ze^{-z} — the Porter–Thomas density, the limiting law of NpNp as N→∞N\to\infty. Reading: the distribution of probabilities is exponential, not flat — a signature of anticoncentration and the origin of the "spikes". Two averages of NpNp over that law calibrate the estimator. One is taken over strings drawn uniformly (the unweighted average), the other over strings drawn from the ideal distribution itself (weighted by pp); they differ, and their difference is the entire signal.

⟨p⟩=1N,⟨Np⟩ideal=∫0∞z (z e−z) dz=∫0∞z2e−z dz=2(3)\langle p\rangle=\frac{1}{N},\qquad \langle Np\rangle_{\text{ideal}}=\int_0^\infty z\,(z\,e^{-z})\,\mathrm{d}z=\int_0^\infty z^2 e^{-z}\,\mathrm{d}z=2 \qquad (3)

where: ⟨⋅⟩\langle\cdot\rangle — unweighted (uniform) average over the NN strings; ⟨⋅⟩ideal\langle\cdot\rangle_{\text{ideal}} — average weighted by the ideal pp, under which zz is distributed as z e−zz\,e^{-z}. Reading: a uniform device sees ⟨Np⟩=1\langle Np\rangle=1; an ideal device sees ⟨Np⟩=2\langle Np\rangle=2. The factor of two is the second moment of the exponential law. The linear XEB estimator packages those constants into a fidelity-like score. It averages the ideal probability over the experimental distribution qq, rescales by NN, and subtracts the uniform baseline so the score has a clean zero.

FXEB=N ⟨p(x)⟩x∼q−1=N∑xq(x) p(x)−1(4)F_{\text{XEB}}=N\,\big\langle p(x)\big\rangle_{x\sim q}-1=N\sum_x q(x)\,p(x)-1 \qquad (4)

where: q(x)q(x) — the experimental (hardware) output distribution; x∼qx\sim q — bitstrings drawn from the device; FXEBF_{\text{XEB}} — the linear cross-entropy fidelity. Reading: FXEBF_{\text{XEB}} is a rescaled overlap between qq and pp, large when the device concentrates where the ideal is heavy. In practice qq is never known; only mm sampled strings are. The empirical estimator replaces the exact average by the Monte-Carlo mean over shots, which is unbiased for FXEBF_{\text{XEB}}.

F^XEB=Nm∑i=1mp(xi)−1(5)\hat F_{\text{XEB}}=\frac{N}{m}\sum_{i=1}^{m}p(x_i)-1 \qquad (5)

where: x1,…,xmx_1,\dots,x_m — the mm measured bitstrings; mm — the number of shots; F^XEB\hat F_{\text{XEB}} — the unbiased sample estimate. Reading: you evaluate the ideal pp on each returned string, average, rescale, and subtract one — no distribution ever assembled. To turn the correlation into a fidelity you need a noise model. Deep random circuits are well described by global depolarization: a surviving coherent fraction FF on top of a fully scrambled background.

ρnoisy=F ∣ψ⟩⟨ψ∣+(1−F) IN,∣ψ⟩=C∣0⊗n⟩(6)\rho_{\text{noisy}}=F\,|\psi\rangle\langle\psi|+(1-F)\,\frac{I}{N},\qquad |\psi\rangle=C|0^{\otimes n}\rangle \qquad (6)

where: ρnoisy\rho_{\text{noisy}} — the actual output state; ∣ψ⟩|\psi\rangle — the ideal pure output; FF — the global (entanglement) fidelity; I/NI/N — the maximally mixed state. Reading: the more error accumulates, the more weight flows from the ideal state into the featureless background. That fidelity, in turn, is a product over the circuit's gates. Because independent errors multiply, FF shrinks exponentially with the number of gates — the reason deep-circuit fidelities are so small.

F≈∏g(1−eg)≈exp⁡ ⁣(−∑geg)(7)F\approx\prod_{g}(1-e_g)\approx\exp\!\Big(-\sum_g e_g\Big) \qquad (7)

where: ege_g — the infidelity of gate gg (from one- and two-qubit benchmarking, plus idle and readout errors); ∏g\prod_g — the product over all operations in the circuit. Reading: with ngn_g gates of mean error eˉ\bar e, F≈e−ngeˉF\approx e^{-n_g\bar e} — a full-stack error budget compressed into one exponential. A logarithmic variant is also common; it weights the heavy strings less aggressively and is defined so that uniform sampling scores 00 and ideal Porter–Thomas sampling scores 11.

CE(q,p)=−∑xq(x)log⁡p(x),Flog-XEB=H0−CE(q,p)H0−HPT(8)\mathrm{CE}(q,p)=-\sum_x q(x)\log p(x),\qquad F_{\text{log-XEB}}=\frac{H_0-\mathrm{CE}(q,p)}{H_0-H_{PT}} \qquad (8)

where: CE(q,p)\mathrm{CE}(q,p) — the cross entropy of the device distribution against the ideal; H0=log⁡N+γH_0=\log N+\gamma — the uniform-distribution cross entropy, with γ≈0.5772\gamma\approx0.5772 the Euler–Mascheroni constant; HPT=log⁡N+γ−1H_{PT}=\log N+\gamma-1 — the value achieved by ideal sampling. Reading: the "−1-1" separating H0H_0 from HPTH_{PT} is the Porter–Thomas entropy deficit ⟨log⁡z⟩ideal−⟨log⁡z⟩unif=1\langle\log z\rangle_{\text{ideal}}-\langle\log z\rangle_{\text{unif}}=1.

Derivation AWhy random-circuit probabilities are Porter–Thomas distributed

The goal is to establish the statistical law that makes XEB work at all: that for a circuit behaving as an approximate 2-design, the rescaled ideal probability z=Np(x)z=Np(x) is exponentially distributed, with unweighted mean 11 and ideal-weighted mean 22. Everything downstream — the estimator's calibration, the fidelity identity, the sample-complexity scaling — is a corollary of these two moments, so we derive them from the Gaussian statistics of Haar-random amplitudes and check them against the normalization that any probability distribution must obey.

Step 1. Model the output state ∣ψ⟩=C∣0⟩|\psi\rangle=C|0\rangle as Haar-random. Each amplitude a=⟨x∣ψ⟩a=\langle x|\psi\rangle then has real and imaginary parts that are independent Gaussians with variance 1/(2N)1/(2N), so that the expected probability ⟨∣a∣2⟩=1/N\langle|a|^2\rangle=1/N matches the requirement that the NN probabilities sum to 11 on average. Why: a deep random circuit reproduces Haar statistics on its low moments, and it is precisely the first two moments that XEB touches, so the Gaussian model is exact enough for the benchmark.

Step 2. Write a=12N(g1+ig2)a=\tfrac{1}{\sqrt{2N}}(g_1+ig_2) with g1,g2∼N(0,1)g_1,g_2\sim\mathcal N(0,1). Then 2Np=g12+g222Np=g_1^2+g_2^2 is a chi-squared variable with two degrees of freedom, i.e. exponential with mean 22; equivalently z=Npz=Np has density e−ze^{-z} with unweighted mean ∫0∞z e−z dz=1\int_0^\infty z\,e^{-z}\,\mathrm{d}z=1. Why: the sum of two squared Gaussians is the simplest exponential, and this is the mathematical root of the "spiky" distribution — a few strings with large zz, exponentially many with small zz.

Step 3. Compute the ideal-weighted mean. When strings are drawn from pp itself, a string of rescaled value zz appears with probability proportional to p∝zp\propto z times the number of such strings ∝e−z\propto e^{-z}, so under ideal sampling zz is distributed as z e−zz\,e^{-z}. Its mean is ⟨Np⟩ideal=∫0∞z (z e−z) dz=∫0∞z2e−z dz=2\langle Np\rangle_{\text{ideal}}=\int_0^\infty z\,(z\,e^{-z})\,\mathrm{d}z=\int_0^\infty z^2 e^{-z}\,\mathrm{d}z=2. Equivalently ⟨Np⟩ideal=N∑xp2=N⋅(2/N)=2\langle Np\rangle_{\text{ideal}}=N\sum_x p^2=N\cdot(2/N)=2, i.e. NN times the collision probability. Why: the same collection of probabilities looks different depending on how you sample it, and this reweighting from e−ze^{-z} to z e−zz\,e^{-z} — mean 11 to mean 22 — is the entire signal XEB detects.

Step 4. Fix the trivial constant. The unweighted average of pp is ⟨p⟩=1N∑xp(x)=1N\langle p\rangle=\tfrac1N\sum_x p(x)=\tfrac1N exactly, for any distribution, because probabilities sum to one. Hence a uniform device gives N⟨p⟩=1N\langle p\rangle=1 regardless of the circuit. Why: this pins the zero of the estimator — the "−1-1" in FXEBF_{\text{XEB}} is calibrated against this model-independent baseline, so a scrambled device scores exactly zero.

Go deeper · Derivation B · 1 minXEB equals fidelity under global depolarizing noise
Derivation BXEB equals fidelity under global depolarizing noise

The goal is to show that when the device state is the global-depolarizing mixture, feeding it through the linear XEB estimator returns exactly the depolarizing fidelity FF — the result that promotes XEB from a mere correlation test into a tomography-free measurement of accumulated gate error. We take the device distribution to be the diagonal of ρnoisy\rho_{\text{noisy}}, insert it into the estimator, split the sum into an ideal piece and a uniform piece, and apply the two Porter–Thomas moments derived above to collapse everything to a single number.

Step 1. The device distribution is the Born diagonal q(x)=⟨x∣ρnoisy∣x⟩=F p(x)+(1−F)1Nq(x)=\langle x|\rho_{\text{noisy}}|x\rangle=F\,p(x)+(1-F)\tfrac1N, since the maximally mixed component I/NI/N contributes the uniform value 1/N1/N to every string. Why: depolarizing noise cleanly separates into a coherent copy of the ideal distribution and a structureless flat background, which is exactly the convex form the estimator can dissect.

Step 2. Insert into the estimator: FXEB=N∑x(F p(x)+1−FN)p(x)−1F_{\text{XEB}}=N\sum_x\big(F\,p(x)+\tfrac{1-F}{N}\big)p(x)-1. Why: substituting the model directly is legitimate because FXEBF_{\text{XEB}} is linear in qq, so the mixture passes straight through.

Step 3. Split the sum: FXEB=F N∑xp(x)2+(1−F)∑xp(x)−1F_{\text{XEB}}=F\,N\sum_x p(x)^2+(1-F)\sum_x p(x)-1. The second sum is exactly 11 by normalization. Why: linearity lets the ideal and uniform contributions be evaluated independently, and one of them is a constant we already know.

Step 4. Apply the Porter–Thomas moment N∑xp(x)2=⟨Np⟩ideal→2N\sum_x p(x)^2=\langle Np\rangle_{\text{ideal}}\to 2 from the previous derivation. Why: this is the only place the circuit's random structure enters — the collision probability of a spiky distribution is twice that of a flat one.

Step 5. Combine: FXEB=F⋅2+(1−F)⋅1−1=FF_{\text{XEB}}=F\cdot 2+(1-F)\cdot 1-1=F. The ideal term contributes 2F2F, the uniform term 1−F1-F, and the recentering −1-1 leaves exactly FF. Why: the algebra is engineered so the constants cancel — the "22" from spikiness and the "−1-1" recentering conspire to strip everything but the fidelity.

Go deeper · Derivation C · 1 minHow many shots resolve a small XEB score
Derivation CHow many shots resolve a small XEB score

The goal is to estimate the number of samples needed to distinguish a small FXEBF_{\text{XEB}} from statistical noise, which explains why supremacy-scale experiments collect on the order of a million bitstrings per circuit. The estimator averages the random variable Y=Np(x)Y=Np(x) over shots, so its uncertainty is set by the per-shot variance of YY divided by the shot count; we evaluate that variance with the Porter–Thomas moments and impose a signal-to-noise condition.

Step 1. The per-shot variance is Var(Y)=⟨(Np)2⟩−⟨Np⟩2\mathrm{Var}(Y)=\langle(Np)^2\rangle-\langle Np\rangle^2 with Y=Np(x)Y=Np(x), x∼qx\sim q. For a low-fidelity device qq is close to uniform, so both moments are governed by the Porter–Thomas statistics of pp. Why: near the noise floor — exactly where resolution is hard — the device samples almost uniformly, so the relevant statistics are those of pp under uniform sampling.

Step 2. Evaluate the moments: ⟨(Np)2⟩unif=N∑xp(x)2→2\langle(Np)^2\rangle_{\text{unif}}=N\sum_x p(x)^2\to 2 and ⟨Np⟩unif=1\langle Np\rangle_{\text{unif}}=1, giving Var(Y)≈2−1=1\mathrm{Var}(Y)\approx 2-1=1. Why: the variance is O(1)O(1) per shot, independent of nn — the crucial fact that lets a fixed number of samples work at any system size.

Step 3. The estimator variance is Var(F^XEB)=Var(Y)/m≈1/m\mathrm{Var}(\hat F_{\text{XEB}})=\mathrm{Var}(Y)/m\approx 1/m, so the standard error is σ≈1/m\sigma\approx 1/\sqrt m. Why: independent shots average down as 1/m1/\sqrt m, the familiar Monte-Carlo rate, with no hidden dimension factor.

Step 4. Impose resolution at kk standard deviations: FXEB/(1/m)≥k⇒m≳k2/FXEB2F_{\text{XEB}}/(1/\sqrt m)\ge k\Rightarrow m\gtrsim k^2/F_{\text{XEB}}^2. For FXEB≈2×10−3F_{\text{XEB}}\approx 2\times10^{-3} and k≈5k\approx 5, this is m≳25/(4×10−6)≈6×106m\gtrsim 25/(4\times10^{-6})\approx 6\times10^{6} shots — the order of magnitude actually used. Why: the 1/F21/F^2 scaling is unforgiving, and it is why halving the fidelity quadruples the required samples, driving supremacy experiments into the millions of shots.

Limiting cases

CaseResultMeaning
Noiseless ideal samplerFXEB=N⟨p⟩p−1=N⋅2N−1=1F_{\text{XEB}}=N\langle p\rangle_{p}-1=N\cdot\tfrac{2}{N}-1=1samples drawn from pp itself give ⟨Np⟩=2\langle Np\rangle=2 by Porter–Thomas, so the score saturates at 11
Uniform / fully depolarizedFXEB=N⟨p⟩unif−1=N⋅1N−1=0F_{\text{XEB}}=N\langle p\rangle_{\text{unif}}-1=N\cdot\tfrac{1}{N}-1=0averaging pp over random strings returns the mean 1/N1/N, so the centered score vanishes
Global depolarizing, fidelity FFFXEB=F⋅1+(1−F)⋅0=FF_{\text{XEB}}=F\cdot 1+(1-F)\cdot 0=Fa convex mix of ideal and uniform yields XEB equal to the depolarizing fidelity — the basis of XEB-as-metrology
Finite samples mmVar(F^XEB)≈1m(⟨(Np)2⟩−⟨Np⟩2)∼1m\mathrm{Var}(\hat F_{\text{XEB}})\approx\tfrac{1}{m}\big(\langle(Np)^2\rangle-\langle Np\rangle^2\big)\sim\tfrac1mO(1)O(1) per-shot variance means ∼1/FXEB2\sim 1/F_{\text{XEB}}^2 shots resolve a small score; F∼10−3F\sim10^{-3} needs ∼106\sim10^6
Shallow / non-anticoncentrated circuitPorter–Thomas fails; ⟨Np⟩ideal≠2\langle Np\rangle_{\text{ideal}}\ne 2too little depth leaves the distribution un-spiky, breaking the calibration constant and the fidelity identity

Worked examples

1 · The Sycamore fidelity budget (fully worked)

Google's Sycamore circuit uses roughly 11131113 single-qubit gates, 430430 two-qubit gates, and 5353 readouts, with mean errors e1≈0.16%e_1\approx 0.16\%, e2≈0.62%e_2\approx 0.62\%, and ero≈3.8%e_{\text{ro}}\approx 3.8\%. Predict the linear XEB fidelity from the digital error model, and compare to the reported FXEB≈2×10−3F_{\text{XEB}}\approx 2\times10^{-3}.

Step 1. Sum the error budget, ∑geg\sum_g e_g, contribution by contribution. Single-qubit gates give 1113×0.0016=1.781113\times 0.0016=1.78; two-qubit gates give 430×0.0062=2.67430\times 0.0062=2.67; readout gives 53×0.038=2.0153\times 0.038=2.01. The total is ∑geg≈1.78+2.67+2.01=6.46\sum_g e_g\approx 1.78+2.67+2.01=\mathbf{6.46}.

Step 2. Convert to fidelity with equation (7): F≈exp⁡(−∑geg)=exp⁡(−6.46)=1.6×10−3F\approx\exp(-\sum_g e_g)=\exp(-6.46)=\mathbf{1.6\times10^{-3}}. Because the errors are independent and each factor (1−eg)(1-e_g) is close to one, the product and its exponential approximation agree to better than a percent.

Step 3. Interpret. Under the global-depolarizing model FXEB=FF_{\text{XEB}}=F, so the digital error model predicts a score near 1.6×10−31.6\times10^{-3}, the same order of magnitude as the measured 2×10−32\times10^{-3} — the residual gap is absorbed by details of the error model and circuit compilation. The dominant single contributor is the two-qubit gate budget, which is why supremacy engineering fights hardest to lower e2e_2. Predicted F_XEB ≈ 1.6×10⁻³, consistent with the measured ≈ 2×10⁻³, and two-qubit gates dominate the loss.

2 · How many bitstrings to call it (fully worked)

A device posts FXEB≈2×10−3F_{\text{XEB}}\approx 2\times10^{-3}. How many samples are needed to resolve this at five standard deviations, and what does that imply about the classical verification cost?

Step 1. Use the sample-complexity result m≳k2/FXEB2m\gtrsim k^2/F_{\text{XEB}}^2 with k=5k=5. Then m≳25/(2×10−3)2=25/(4×10−6)=6.25×106m\gtrsim 25/(2\times10^{-3})^2=25/(4\times10^{-6})=\mathbf{6.25\times10^{6}} shots — a few million bitstrings, matching the 0.50.5–33 million per circuit actually collected.

Step 2. Account for the standard error. With per-shot variance ≈1\approx 1, the uncertainty on F^XEB\hat F_{\text{XEB}} at m=6.25×106m=6.25\times10^6 is σ=1/m≈4×10−4\sigma=1/\sqrt m\approx 4\times10^{-4}, so the score sits F/σ≈5F/\sigma\approx 5 standard deviations above zero — statistically resolvable but not comfortable.

Step 3. Fold in the hidden cost. Every one of those samples requires a classical evaluation of p(xi)=∣⟨xi∣C∣0⟩∣2p(x_i)=|\langle x_i|C|0\rangle|^2, and each such amplitude is generically #P-hard. For 5353 qubits this took world-class supercomputing; the cost does not scale, so XEB cannot verify arbitrarily large experiments. Need m ≈ 6×10⁶ shots for 5σ, each demanding a #P-hard amplitude — the verification, not the sampling, is what breaks first.

Physics of the portrait

Cross-entropy benchmarking is a young idea built on an old one. Its statistical backbone was forged in nuclear physics decades before anyone imagined a quantum computer, and its rise as a verification tool tracks the sudden, contested arrival of quantum advantage.

Origins · 1 mincross-entropy benchmarking and how this was discovered
CB
cross-entropy benchmarking
the sampling-fidelity witness F_XEB = ⟨N p(x)⟩ − 1 · verification of quantum advantage

The mathematical heart of XEB predates it by more than sixty years. In 1956 Charles Porter and Robert Thomas, studying the widths of nuclear resonances, proposed that the relevant amplitudes were Gaussian random variables, so that intensities followed an exponential law — the Porter–Thomas distribution, which random-matrix theory later placed at the center of quantum chaos. When Sergio Boixo, John Martinis, Hartmut Neven and collaborators at Google set out to demonstrate quantum supremacy, they recognized that a deep random circuit produces exactly this statistics, and that its spikiness could be turned into a verification tool: average the ideal probability over the measured strings, and the Porter–Thomas moments calibrate the answer into a fidelity. Their 2018 analysis of characterizing supremacy, and the 2019 Sycamore experiment, made FXEBF_{\text{XEB}} the reported figure of merit for the first claimed advantage. Almost immediately the complexity theorists pushed back on its meaning: Scott Aaronson and Lijie Chen had already laid out the complexity-theoretic foundations of such experiments, Adam Bouland, Bill Fefferman, Chinmay Nirkhe and Umesh Vazirani proved worst-to-average-case reductions aiming to ground the hardness, and Aaronson with Sam Gunn showed that spoofing linear XEB is itself a delicate question — efficiently spoofable in some regimes, conjecturally hard in others. XEB thus sits exactly on the fault line between what quantum devices can do and what we can prove they do: a fidelity meter that works beautifully, wrapped around a hardness claim that remains open.

History
1956
— Porter and Thomas fit nuclear resonance widths with random-Gaussian amplitudes, giving the exponential intensity law
2016
— cross-entropy benchmarking is proposed as a fidelity witness for random-circuit sampling
2018
— Boixo and colleagues characterize quantum supremacy and the role of anticoncentration
2019
— Google's Sycamore reports F_XEB ≈ 2×10⁻³ on 53 qubits, claiming quantum supremacy
2020
— Aaronson and Gunn analyze the classical hardness of spoofing linear XEB
2022
— tensor-network contractions reproduce Sycamore-scale XEB scores at modest classical cost

Going further

References. Arute et al., "Quantum supremacy using a programmable superconducting processor", Nature 574, 505 (2019) · Boixo et al., "Characterizing quantum supremacy in near-term devices", Nature Physics 14, 595 (2018) · Aaronson & Chen, "Complexity-Theoretic Foundations of Quantum Supremacy Experiments", CCC 2017 · Bouland, Fefferman, Nirkhe & Vazirani, "On the complexity and verification of quantum random circuit sampling", Nature Physics 15, 159 (2019) · Aaronson & Gunn, "On the Classical Hardness of Spoofing Linear Cross-Entropy Benchmarking", Theory of Computing 16 (2020) · Preskill, "Quantum computing and the entanglement frontier", arXiv:1203.5813 · Nielsen & Chuang, Quantum Computation and Quantum Information, 10th anniv. ed., Ch. 8. The Porter–Thomas moments (⟨p⟩=1/N\langle p\rangle=1/N, ⟨Np⟩ideal=2\langle Np\rangle_{\text{ideal}}=2, exponential law e−ze^{-z}) follow from Gaussian-amplitude statistics; the ideal-weighted mean evaluates as ∫0∞z2e−z dz=2\int_0^\infty z^2 e^{-z}\,\mathrm{d}z=2, and the log-XEB deficit is ⟨log⁡z⟩ideal−⟨log⁡z⟩unif=(1−γ)−(−γ)=1\langle\log z\rangle_{\text{ideal}}-\langle\log z\rangle_{\text{unif}}=(1-\gamma)-(-\gamma)=1. The XEB-equals-fidelity identity follows from ρ=F∣ψ⟩⟨ψ∣+(1−F)I/N\rho=F|\psi\rangle\langle\psi|+(1-F)I/N and the same moments. Sycamore figures: 5353 qubits, depth 2020, FXEB≈2×10−3F_{\text{XEB}}\approx 2\times10^{-3}, ∼106\sim10^6 samples, error budget ∑geg≈6.5⇒F≈1.6×10−3\sum_g e_g\approx 6.5\Rightarrow F\approx1.6\times10^{-3}.

Builds on: The Complexity Class BQP · BQP is Contained in PP and PSPACE · BQP versus P, NP, and PSPACE. Leads to: Quantum Query Complexity · The Polynomial Method for Quantum Lower Bounds · BQP is Contained in PP and PSPACE.

Ask the tutor: Ask me to walk through why the number 2 turns into a fidelity, or to show how a tensor-network spoofer could post a Sycamore-level XEB score without ever running the circuit.

Why not just compare the full output distributions instead of using one number?

Because you cannot even write down the ideal distribution, let alone estimate the experimental one. The ideal distribution lives over 2n2^n strings — for 5353 qubits that is about 9×10159\times10^{15} probabilities — so no realistic number of samples could estimate the device's distribution well enough to compare. Worse, each ideal probability is #P-hard to compute. XEB sidesteps both problems by never assembling a distribution: it evaluates the ideal probability only on the few million strings the machine returned, and compresses the comparison into a single expectation value. That is a genuine trade — you lose the ability to detect many kinds of error, but you gain a statistic that is actually computable from feasible data.

What is anticoncentration and why does XEB need it?

Anticoncentration is the property that a random circuit's output probability is not too concentrated on a few strings — formally, that a constant fraction of the total probability sits on strings whose p(x)p(x) is at least of order 1/N1/N. Porter–Thomas statistics are a strong form of it. XEB needs anticoncentration because its calibration constant ⟨Np⟩ideal=2\langle Np\rangle_{\text{ideal}}=2 is exactly the (rescaled) collision probability of the ideal distribution, and that equals 22 only when the distribution is spiky in the Porter–Thomas sense. A circuit too shallow to anticoncentrate has a different constant, so the fidelity identity FXEB=FF_{\text{XEB}}=F silently breaks. This is why supremacy circuits are run at enough depth to reach the 2-design regime.

How can XEB measure fidelity without any tomography?

The magic is the global-depolarizing model plus the Porter–Thomas moment. Full tomography would require reconstructing the density matrix, which needs exponentially many measurements. XEB instead assumes the noisy state is a coherent fraction FF of the ideal plus a fully mixed background. When you feed that mixture into the estimator, the ideal part contributes 2F2F (via the collision-probability moment), the mixed part contributes 1−F1-F, and the recentering −1-1 leaves exactly FF. So a single expectation value returns the fidelity — but only to the extent the depolarizing model holds. Coherent errors, leakage, or strong correlations violate the model, and then XEB and the true fidelity part ways.

What exactly is a spoofing attack on XEB?

A spoofer is a classical algorithm that posts a nonzero FXEBF_{\text{XEB}} without honestly sampling the circuit. The estimator rewards any distribution that overweights the heavy strings of pp, so a spoofer only needs to find and preferentially output some high-probability strings — not reproduce the full distribution. Aaronson and Gunn showed this is a genuine tension: in some regimes (few queries to the circuit, or particular noise assumptions) spoofing is provably easy, while in others it is conjectured hard. Tensor-network methods are a related threat: they compute enough amplitudes cheaply to match the experimental score. Both erode the claim that a given XEB score certifies quantum advantage, which is why the field treats XEB as a moving benchmark rather than a proof.

Is the linear XEB score ever allowed to exceed 1 or go negative?

Yes, though only within statistical fluctuations for a well-behaved device. The population value is bounded: a perfect sampler gives 11 and the uniform distribution gives 00, with the depolarizing model interpolating linearly. But the empirical estimate F^XEB=Nm∑ip(xi)−1\hat F_{\text{XEB}}=\tfrac{N}{m}\sum_i p(x_i)-1 is a finite average of a heavy-tailed variable, so a single fortunate string with a large p(xi)p(x_i) can push a small-sample estimate above 11, and an unlucky batch of low-probability strings can push it slightly below 00. As mm grows the estimate concentrates on the true value with standard error ≈1/m\approx 1/\sqrt m. Scores far outside [0,1][0,1] signal either a calibration bug or a device whose noise is not depolarizing.

Why does the log-XEB variant exist if linear XEB already works?

The two weight the heavy strings differently, which changes their statistical behavior. Linear XEB averages Np(x)Np(x), so a single very heavy string can dominate the sum — the estimator is unbiased but has fatter tails. Logarithmic XEB averages log⁡p(x)\log p(x), taming those tails and often giving a lower-variance estimate, at the cost of a slightly more involved calibration (the constants H0=log⁡N+γH_0=\log N+\gamma and HPT=log⁡N+γ−1H_{PT}=\log N+\gamma-1 that make uniform score 00 and ideal score 11). In practice both are reported; linear XEB has the cleaner fidelity interpretation under depolarizing noise, while log-XEB is sometimes preferred for its estimator stability. The Euler constant γ\gamma appearing in its calibration is just −⟨log⁡z⟩-\langle\log z\rangle for the exponential law.

Before this

Where this leads