Cross-entropy benchmarking
Cross-entropy benchmarking compares sampled outputs with ideal circuit probabilities to quantify agreement for specified random-circuit ensembles.
Also called XEB
On this page
Explanation and significance
The method is useful when an ideal probability can be calculated for observed strings or a validation subset. Its interpretation as fidelity depends on an ensemble and noise model. A positive score is not by itself a proof of computational advantage, and classical simulation improvements can change the difficulty comparison.
Mechanism and mathematical structure
A common linear estimator is F_XEB=D mean_x[p_ideal(x)]-1, where D=2^n and x is sampled from the experimental distribution. Under suitable chaotic-circuit and depolarizing assumptions it approximates a fidelity-like parameter. For an arbitrary small distribution, its ideal value need not equal one, so the ensemble assumptions must remain explicit.
Fully worked reference example
Take D=4 and ideal probabilities (0.5,0.25,0.125,0.125). If the sampler is uniform, mean sampled ideal probability is 0.25 and F_XEB=0. If the sampler equals the ideal distribution, the mean is sum p_i²=0.34375, giving F_XEB=4×0.34375-1=0.375, not one. This exact example demonstrates why normalization and random-circuit assumptions matter. The score cannot be called a universal state fidelity for arbitrary distributions.
Limits and misconceptions
Scores can be affected by spoofing strategies, finite samples, verification cost and circuit selection. Preserve corrections and supplementary version dates in historical claims. Distinguish sampling-task advantage from useful application advantage.
Scientific relationships
Is a sampling benchmark. Depends on ideal probability calculation and statistical modeling. Is distinct from quantum volume and arbitrary-state fidelity.
Linear XEB is a score, not a distribution distance
For target probabilities p_x and sampled distribution q_x over D outputs, expected linear XEB is D sum_x q_x p_x−1. This is a linear functional of q. Its maximum over all distributions occurs by putting all mass on an output with largest p_x. The target distribution q=p generally does not maximize its own expected score. Consequently the score cannot be interpreted as a universal distance between distributions without additional ensemble and noise assumptions.
Using target probabilities (0.5,0.25,0.125,0.125), a sampler that always returns the first output has score 4×0.5−1=1. The ideal target sampler has score 0.375. The deterministic sampler nevertheless has total-variation distance 0.5 from the target. This exact counterexample shows why a favorable score alone does not certify faithful sampling for an arbitrary circuit. Computational restrictions and ensemble properties matter in arguments about more difficult random-circuit tasks.
Sampling probabilities do not reveal quantum phases
Let |psi> have real positive amplitudes sqrt(p_x) for the same four probabilities. Define |phi> by reversing the sign of the first amplitude while leaving the others unchanged. Their overlap is −0.5+0.25+0.125+0.125=0, so the states are orthogonal. Yet computational-basis sampling produces identical probabilities and identical XEB scores for both states.
A sampling benchmark can therefore test a declared output distribution without establishing complete state or process fidelity. A fidelity interpretation is supplied by a physical noise model linking the observed distribution to the intended circuit. It is not an extra phase-sensitive measurement hidden inside the estimator. Other measurement bases or independently justified channel assumptions are needed for claims about those unobserved coherences.
Exact finite-sample variance
For M independent outputs sampled from q, the estimator variance is D²/M times [sum_x q_x p_x²−(sum_x q_x p_x)²]. For the four-output ideal sampler, sum p_x²=0.34375 and sum p_x³=0.14453125, giving variance 0.421875/M. At M=10,000, standard deviation is approximately 0.00649519. This result follows directly from the sampled random variable D p_x−1, without replacing its distribution by an assumed large-system limit.
For a uniform sampler on the same outputs, the variance is 0.375/M even though the expected score is zero. Positive finite-sample estimates can therefore occur without any target correlation. Confidence calculations must also include circuit-to-circuit variation when several random circuits are sampled; repeated outputs from one circuit do not estimate the full ensemble distribution by themselves.
Normalization under a specified mixture
Suppose q=alpha p+(1−alpha)u with u uniform. Then the expected score is alpha[D sum p_x²−1]. Dividing by the ideal score recovers alpha when that denominator is nonzero and the mixture model is correct. For the toy distribution and alpha=0.4, the raw score is 0.15; dividing by 0.375 gives 0.4. Calling the raw 0.15 a forty-percent or fifteen-percent state fidelity would require explaining which model and normalization are intended.
If the ideal distribution is uniform, its ideal score is zero and the normalization supplies no information. If noise changes probabilities in a structured way, a single mixture weight may not describe it. Readout bias, circuit-dependent errors, or an alternative sampler can produce a similar score through different distributions.
Finite-dimensional random-state expectations
For a complex Haar-random pure state in dimension D, the exact mean of sum_x p_x² is 2/(D+1). The corresponding mean ideal linear score is (D−1)/(D+1), approaching one only at large D. At D=4 it is 0.6. This ensemble mean differs from the score of any particular chosen probability vector and from an assertion that every experimentally generated random circuit follows the same ensemble exactly.
Depth, conserved quantities, circuit architecture, and noise can affect how well an ensemble approximation applies. A benchmark should state which ideal probabilities were calculated directly, which circuits were validated, and where an extrapolation or distributional assumption entered. Verification cost is part of the scientific comparison when the stated task is sampling from a difficult distribution.
Bitstring relabeling and probability resolution
A computational-basis relabeling applied consistently to the ideal probabilities and observed bitstrings leaves linear XEB unchanged. A relabeling applied to only one side generally changes the score, even though it may simply be a classical wiring or convention error. This is why q0 placement, bit ordering, and measurement-map conventions belong to reproducible score definitions. Probability computation also has finite precision: if each supplied ideal probability differs by δp(x), the score changes by DΣ_x q(x)δp(x). A uniform absolute bound |δp(x)|≤ε gives an absolute score-error bound Dε. More informative bounds can exploit the actual sampled support and correlated numerical errors. Classical verification accuracy is therefore part of the uncertainty budget.
Sources
Verification scope
Recorded source check ·
Selected XEB theory and verification-boundary sections checked; finite-four-outcome scores, variances, and phase counterexample are original.
Selected primary-text review; no replication of full experimental dataset or current hardware performance claim.