Cross-entropy benchmarking (XEB) is a method in quantum computing that estimates the fidelity of a quantum processor by running random circuits, sampling their output bitstrings and checking how strongly those samples favor the high-probability outcomes predicted by an ideal simulation. Within quantum hardware, XEB serves two roles: it is a calibration tool for two-qubit gates and a system-level benchmark that gave its name to the random circuit sampling experiments used to claim beyond-classical performance.
The method works because random quantum circuits produce speckle-like output distributions: a few bitstrings are much more likely than average, and a faithful device lands on them more often than chance. Noise flattens the distribution toward uniform, and XEB measures how much of that structure survives.
How cross-entropy benchmarking scores a circuit
XEB compares measured samples with ideal probabilities computed on a classical computer. For each sampled bitstring x, the experimenter looks up its ideal probability P(x); a good device returns bitstrings whose P(x) values are, on average, larger than the uniform value of 1/2^n for n qubits.
The most widely used estimator is linear XEB, defined as F = 2^n times the mean of P(x) over all samples, minus 1. A perfect device yields a value close to 1, while a fully depolarized device yields 0, because uniformly random samples have an average probability of exactly 1/2^n. The original formulation used a logarithmic estimator based on cross-entropy, which gives the method its name, but the linear form has lower variance and is easier to interpret.
The following table summarizes the main steps of a standard XEB experiment and what each step contributes.
| Step | Action | Purpose |
|---|---|---|
| Circuit generation | Draw random single-qubit gates between fixed two-qubit layers | Create scrambling circuits with Porter-Thomas statistics |
| Execution | Run each circuit and collect thousands to millions of samples | Build an empirical output record |
| Ideal simulation | Compute P(x) for every sampled bitstring | Provide the reference distribution |
| Estimation | Average P(x), scale by 2^n, subtract 1 | Obtain the linear XEB fidelity |
| Fitting | Repeat across circuit depths and fit a decay | Extract error per cycle or per gate |
Why random circuits make the estimate work
XEB relies on the statistics of sufficiently deep random circuits. Once a circuit scrambles the state across all qubits, its ideal output probabilities follow the Porter-Thomas distribution, an exponential distribution in which most bitstrings are rare and a minority are several times more likely than average. This property, called anti-concentration, is what lets the average of P(x) separate a working device from a noisy one.
Under a digital error model, in which each gate error destroys the useful signal and pushes the output toward uniform noise, the XEB value approximates the product of individual gate and readout fidelities. That relationship lets engineers predict system fidelity from component benchmarks and check the result against the measured XEB value.
The behavior of the estimator in typical regimes is shown below.
| Device condition | Typical linear XEB | Interpretation |
|---|---|---|
| Ideal noiseless device | About 1 | Samples follow the ideal distribution |
| Small, well-calibrated system | 0.5 to 0.9 | Most circuit structure survives |
| Large beyond-classical experiment | 0.001 to 0.01 | Weak but statistically resolvable signal |
| Fully depolarized output | About 0 | Samples are indistinguishable from uniform |
XEB as a calibration and benchmarking tool
On small subsystems, XEB is a practical calibration method for two-qubit gates. Running random circuits on a pair of qubits at several depths and fitting the decay gives the error per cycle, and fitting the unitary parameters of the gate, for example the swap angle and conditional phase of an fSim gate, corrects coherent control errors. Google Sycamore used this approach to characterize its native gates.
At full scale, XEB became the figure of merit for random circuit sampling. The 2019 Sycamore experiment reported a linear XEB of roughly 0.2 percent on 53 qubits at 20 cycles, and later processors such as Zuchongzhi and Google Willow repeated the approach with more qubits and lower error rates.
XEB sits beside other benchmarks in the quantum hardware toolbox, each answering a different question.
| Benchmark | What it measures | Scalability limit |
|---|---|---|
| Cross-entropy benchmarking | Fidelity of random circuit outputs | Ideal probabilities need classical simulation |
| Randomized benchmarking | Average Clifford gate error | Fits small qubit groups, not whole devices |
| Quantum volume | Largest square circuit run reliably | Heavy output test also needs simulation |
| Algorithmic qubits | Width of application circuits passed | Depends on a chosen algorithm suite |
Limitations and known pitfalls of XEB
The central limitation is the exponential classical cost: computing ideal probabilities for 50 or more qubits requires large-scale simulation, which is precisely the regime XEB is meant to certify. Experiments therefore use patch circuits and elided circuits, simplified variants that remain simulable, and extrapolate to the full circuit.
Researchers have also shown that the linear XEB score is not a perfect proxy for fidelity. Certain correlated or coherent noise can inflate the score, and classical algorithms exploiting weak noise or circuit structure can spoof a nonzero XEB without reproducing the true distribution. Improved tensor network simulations narrowed early beyond-classical claims, which is why later experiments raised both qubit count and depth.
| Pitfall | Cause | Mitigation |
|---|---|---|
| Insufficient sample count | Small XEB values need many shots | Collect millions of samples for low fidelity |
| Shallow circuits | Output not yet anti-concentrated | Use enough cycles to reach scrambling |
| Biased fidelity estimate | Coherent or correlated errors | Cross-check with component benchmarks |
| Classical spoofing | Low depth or exploitable structure | Increase depth and qubit count |
Interpreting XEB results responsibly
An XEB number is meaningful only together with its circuit family, depth, qubit count and sample size. A value of 0.002 on 100 qubits can represent a stronger achievement than 0.5 on 10 qubits, because fidelity decays exponentially with the number of operations. Reports should therefore state the statistical uncertainty and the method used to obtain ideal probabilities.
- XEB measures fidelity on random circuits, not performance on useful algorithms.
- A high per-cycle fidelity indicates good gates but does not prove error correction readiness.
- Beyond-classical claims depend on the best known classical algorithm, which can improve over time.
In plain words
Imagine a machine that is supposed to roll a strangely weighted die with millions of faces. Some faces should come up far more often than others. A computer can work out which faces those are, at least for smaller dice.
Cross-entropy benchmarking checks whether the quantum machine lands on the favored faces more often than chance. If it does, the machine is working well. If its rolls look evenly random, noise has erased the pattern. The score runs from about 1 for a perfect machine to 0 for pure noise.
A real-world example
A hardware team at a superconducting quantum laboratory has just installed a new set of two-qubit couplers on a 70-qubit processor. Before running customer workloads, the engineers run XEB on every neighboring qubit pair, using random circuits from 1 to 200 cycles and about 2,000 samples per circuit.
Fitting the decay curves shows an average error per cycle of 0.6 percent, but three pairs perform far worse. Unitary fitting reveals an uncalibrated conditional phase on those pairs. After recalibration, the team runs a full-device XEB on patch circuits and obtains a predicted system fidelity that matches the product of component fidelities, confirming the processor is ready for further benchmarking.