Random Circuit Sampling
Random circuit sampling (RCS) is the task that carried quantum computing across its most-watched threshold: the first credible claim that a programmable device did something no classical computer could match in reasonable time. The recipe is deliberately austere. Fix an architecture — a two-dimensional grid of qubits, a small universal gate set, a depth — then draw the gates at random to specify one unitary . Prepare , apply , and measure in the computational basis. Each shot returns a bitstring drawn from . The quantum device does this natively; the conjecture is that no classical algorithm can produce samples from a distribution close to in time polynomial in . What makes RCS more than a stunt is that its hardness is borrowed from complexity theory. Computing even a single amplitude is a permanent-like, -hard quantity in the worst case. If a fast classical sampler existed, Stockmeyer's counting theorem would let a machine only slightly above estimate those probabilities — and, chained through Toda's theorem plus an average-case conjecture and anticoncentration, that would collapse the polynomial hierarchy, which essentially no complexity theorist believes. Two statistical facts glue the argument together: deep random circuits scramble the input into a Haar-random-looking state whose probabilities obey the Porter–Thomas law, and that same law supplies both anticoncentration and a sharp fidelity estimator, the linear cross-entropy benchmark. The recurring villain is noise, which decays the achievable fidelity exponentially in circuit volume and turns "hardness" into a finite-size runtime race between the device and the best classical spoofer.
- Random circuit sampling asks you to produce samples from , the output distribution of a fixed random quantum circuit acting on .
- Deep random circuits scramble the state so its amplitudes behave like i.i.d. complex Gaussians, making the probabilities follow the Porter–Thomas law with .
- Exact classical sampling from would collapse the polynomial hierarchy via Stockmeyer + Toda; approximate-sampling hardness additionally needs anticoncentration and an average-case -hardness conjecture.
- Experiments certify the device with the linear cross-entropy benchmark , which reads off the global fidelity.
- RCS underlies the 2019 Google Sycamore demonstration (, ) and its photonic cousin, Gaussian boson sampling.
- Noise is the crux: at fixed per-gate error the fidelity decays as with circuit volume , so the classical-hardness margin erodes as the device grows.
- Key idea: generic random circuits have Porter–Thomas output statistics; this delivers both anticoncentration and -hard amplitudes, so a classical approximate sampler would, via Stockmeyer plus an average-case conjecture, collapse the polynomial hierarchy — making RCS a hardness-backed benchmark for quantum advantage.
Generic random circuits have Porter–Thomas output statistics; this delivers both anticoncentration and -hard amplitudes, so a classical approximate sampler would, via Stockmeyer plus an average-case conjecture, collapse the polynomial hierarchy — making random circuit sampling a hardness-backed benchmark for quantum advantage.
Where this lives today
RCS is a live, contested frontier, not a settled result. Google's 2019 Sycamore run — qubits, cycles, XEB fidelity — claimed a task needing roughly years on the best classical supercomputer of the day; within two years, tensor-network contraction algorithms (notably by Pan and Zhang) plus IBM's secondary-storage argument had cut the estimated classical cost by many orders of magnitude, and Google responded in 2023 with a larger -qubit demonstration recalibrated against those simulators. In parallel, USTC's photonic Jiuzhang (Gaussian boson sampling) and superconducting Zuchongzhi processors provide independent platforms resting on hafnians and permanents rather than random-circuit amplitudes. The deepest theoretical development cuts the other way: Aharonov, Gao, Landau, Liu and Vazirani (2022) exhibited a polynomial-time classical algorithm that spoofs the XEB of a noisy random circuit at any constant error rate — sharpening that noise, not depth alone, is the real adversary. Two headline problems stay open: proving average-case -hardness of random-circuit amplitudes, and finding an efficiently verifiable proof of quantumness. RCS thus doubles as the field's most demanding holistic benchmark, since XEB captures crosstalk and correlated errors that per-gate randomized benchmarking misses.
The physical picture
Picture a deep random circuit as a scrambler. It takes the sharp, boring product state and smears its amplitude across all basis vectors, producing an output vector whose components look like independent random complex numbers pinned to a unit sphere. Measuring the device is like reading off one coordinate of a high-dimensional random unit vector: trivial for the machine that physically holds the vector, but to mimic that coordinate classically you would need to know its magnitude, and that magnitude is a permanent-like sum over exponentially many interfering computational paths. The first figure lays out this pipeline — draw gates, scramble, measure — and names the one object everything hinges on, the output probability.
Why is the output so structured? Because depth acts like a clock on chaos. A shallow circuit barely mixes the qubits and a laptop can track its amplitudes with a tensor network, but once the circuit is deep enough — around logarithmic depth on a 2D grid — the state looks Haar-random to every low-order statistic (an approximate unitary -design) and its probabilities settle onto one universal curve. That curve, the Porter–Thomas law, was first written down for the intensities of chaotic nuclear-resonance spectra; it is the fingerprint of a maximally scrambled quantum system, and it is what a good RCS device is really demonstrating. The second figure is the quantity the whole subject orbits — the probability-of-probabilities, with its mean and median marked.
Together the two figures capture the whole tension of the field. The scrambling on the left is easy for the device but, at large depth, hard for a classical simulator whose cost grows with the entanglement it must carry across a cut. The exponential on the right lets an experimentalist check the device from a handful of samples and lets a theorist convert worst-case amplitude hardness into an average-case-flavoured argument. The "supremacy regime" is the narrow window where the circuit is deep enough to defeat every known classical method yet shallow enough that the noisy device still has measurable fidelity.
The core equations
The task itself is one line: sample a bitstring with the Born-rule probability of the scrambled state. Everything downstream is a statement about, or a computation of, this distribution.
where: — the fixed random unitary built from the chosen gate set and depth ; — the computational-basis outcome, a bitstring; — number of qubits, with dimension ; — the all-zeros initial state. A device produces one draw of per shot; a classical adversary must reproduce the distribution without holding the -dimensional vector. For a deep (Haar-like) circuit the amplitudes behave like i.i.d. complex Gaussians, so the probabilities collapse onto one exponential law — the Porter–Thomas distribution, the signature of a fully scrambled state.
where: — the value of a given outcome, viewed as a random variable over ; — the fraction of the outcomes whose probability lies in ; — the dimension, fixing the mean . The law is not concentrated on a spike and is not uniform: it is broad, with a heavy exponential tail. The second moment — the collision probability of two independent samples — is the sharpest single number certifying the law is "spread out" in the right way, exactly twice the uniform value.
where: — average over the circuit ensemble (Haar, or any exact -design); — probability that two independent shots collide on the same bitstring; . The factor over the uniform is the quantitative meaning of anticoncentration. Anticoncentration says a constant fraction of the mass sits on "heavy" outcomes — those a constant multiple above the uniform floor . For the exact Porter–Thomas law this fraction is a clean exponential in the threshold.
where: — a constant threshold (take for the "above-average" fraction ); ; — fraction of outcomes, weighted by count. This constant, not vanishing with , is precisely the regularity the worst-case-to-average-case bridge requires. You cannot compute the full distribution to certify a device, but you can average the ideal probabilities of the bitstrings it actually produced. That average, rescaled, is the linear cross-entropy benchmark, and it reads off the fidelity.
where: — the actual, noisy distribution the device samples from; — the ideal probability of an observed bitstring, computed classically for verification; — the fidelity estimate, for a uniform and for a perfect in the Porter–Thomas limit. Derivation C shows under a white-noise model. A related certificate is heavy output generation (HOG): the probability a sampled bitstring lands above the median output probability. Under Porter–Thomas this ideal value is a fixed constant, comfortably above the any uniform spoofer achieves.
where: — the heavy-output probability, the HOG score; — the median of the Porter–Thomas law (half the outcomes lie above it); — the ideal value, versus for uniform output. The quantum-volume benchmark passes a device at the intermediate threshold . The hardness rests on a counting fact: the polynomial hierarchy is dominated by the power to count, so squeezing a -hard quantity into a low level of the hierarchy is catastrophic.
where: — the counting class; computing to multiplicative precision is -hard in the worst case; — probabilistic polynomial time, polynomially equivalent to ; — the polynomial hierarchy, which collapses if a sampler forces a -hard quantity into its third level. Finally, the number that decides whether any of this survives contact with hardware: the global fidelity, which decays multiplicatively over every gate.
where: — the error probability of gate ; — the mean per-gate error rate; — the circuit volume, the total gate count ; — the surviving global fidelity, the coefficient in the white-noise output model. At fixed this shrinks exponentially in : the deeper and wider the circuit, the fainter the quantum signal.
The goal is to show that the mere existence of a polynomial-time classical algorithm sampling exactly from would force the polynomial hierarchy to collapse — an outcome complexity theorists regard as essentially impossible. The argument chains a hypothetical sampling oracle through Stockmeyer's approximate-counting theorem into the counting class , then invokes Toda's theorem; nowhere does it need the device to be perfect, only the classical simulator to be exact.
Step 1. Suppose a randomized classical algorithm runs in time and outputs with probability exactly . For a target , the event " outputs " is the acceptance event of a poly-size randomized circuit with acceptance probability . Why: this converts a sampling primitive into an acceptance probability that approximate counting can grab.
Step 2. Apply Stockmeyer's theorem: a machine estimates with , living in the third level of the hierarchy. Why: an oracle binary-searches the acceptance probability multiplicatively — without the full counting power secretly contains.
Step 3. But computing to multiplicative precision is worst-case -hard: one can encode the permanent of an arbitrary matrix — the canonical -complete function — into the amplitude. Why: this is the "borrowed hardness" — sampling inherits the difficulty of a counting problem no one can solve efficiently.
Step 4. Combine: a -hard quantity is now approximable in . By Toda's theorem , so this puts the counting power that dominates inside itself, collapsing it to the third level. Why: if the hierarchy could reach the counting power that dominates it, it would swallow its own tower.
Step 5. Contrapositive: since a collapse is overwhelmingly believed false, no polynomial-time classical algorithm samples exactly from . This is unconditional given no-collapse — the one airtight hardness statement RCS enjoys. Why: exactness is essential; relaxing it forces the extra conjectures of the next derivation. *Verified: worst-case -hardness, Stockmeyer's theorem, and Toda's are standard (Aaronson–Arkhipov 2011; Aaronson–Chen 2017).*
Go deeper · Derivation B · 1 minWhy approximate-sampling hardness needs anticoncentration
The goal is to explain why relaxing "exact" to "approximate in total-variation distance" forces two extra ingredients — an average-case hardness conjecture and anticoncentration — and to derive the anticoncentration bound from the second moment via the Paley–Zygmund inequality. The physics: an additive-error sampler is only forced to get the heavy outcomes right, so the hard instances must be heavy with constant probability, which is exactly what the collision probability certifies.
Step 1. Let a sampler produce with . Total-variation error is a budget: the sampler may freely corrupt outcomes with probability well below , spending its error where the mass is thin. Why: additive error gives the adversary slack on the light outcomes, so only heavy outcomes carry provable information.
Step 2. Hence Stockmeyer estimation of an individual is trustworthy only when for a constant fraction of — the demand for anticoncentration. Why: if almost all mass hid on a few spikes, an approximate sampler could ignore the rest and the reduction would have nothing to grip.
Step 3. Bound the heavy fraction by Paley–Zygmund, . Insert and the collision result from equation (3), giving the ratio . Why: the collision probability is the exact quantity Paley–Zygmund needs to certify a constant fraction of mass is heavy.
Step 4. Therefore , sharpening for the exact Porter–Thomas law to . Anticoncentration is thus proven for -design (deep enough) circuits. Why: the exponential law upgrades an bound to the explicit number reductions actually use.
Step 5. What remains conjectural is average-case -hardness — that computing is hard for random , not just adversarial . Partial results support it, but full approximate-sampling hardness is conditional on it. Why: anticoncentration is a theorem; average-case hardness is the field's central open conjecture. *Verified: the collision value from the -design fourth moment , and the Paley–Zygmund constant , are textbook.*
Go deeper · Derivation C · 1 minThe cross-entropy benchmark equals the fidelity under white noise
The goal is to derive the working relation every RCS experiment leans on: averaging the ideal probabilities of observed bitstrings, rescaled by and shifted by one, returns the global circuit fidelity. The two inputs are a global depolarizing (white-noise) device model and the Porter–Thomas second moment; the calculation is short but pins down which assumptions the fidelity claim rests on.
Step 1. Model the noisy output as a fidelity-weighted mixture of the ideal distribution and the uniform one, . With probability the shot is "coherent" and follows ; otherwise it is maximally mixed. Why: global depolarization is the leading-order description of many independent gate errors, and it is the model under which XEB was validated on Sycamore.
Step 2. Take the XEB expectation and use linearity, . The second sum is by normalization. Why: the estimator is linear in , so the ideal-part and uniform-part contributions separate cleanly.
Step 3. Insert the Porter–Thomas moments, and , to get . Why: the factor of two in the collision probability is exactly what makes the coherent part contribute rather than , and it is why the rescaling works.
Step 4. Subtract the offset: . So the linear XEB is an unbiased estimator of the global fidelity, computable from a modest sample count once the ideal can still be evaluated. Why: this turns an untestable-looking supremacy claim into a falsifiable number, e.g. on Sycamore. *Verified: the standard Boixo–Arute analysis; a checker should confirm the white-noise model and .*
Limiting cases
RCS lives or dies by depth, dimension, and noise, and it behaves qualitatively differently in each corner:
| Case | Result | Meaning |
|---|---|---|
| Shallow / low depth | Constant-depth 2D random circuits are classically simulable to good fidelity by light-cone and tensor-network methods; no anticoncentration, so not a supremacy regime. | |
| Anticoncentration onset | Around logarithmic depth (linear in the side of a grid) the output approaches Porter–Thomas and anticoncentration switches on — the minimum depth the hardness argument needs. | |
| Deep / Haar limit | The circuit approximates a Haar-random unitary (an exact -design for growing ); probabilities follow Porter–Thomas exactly and amplitudes are maximally chaotic. | |
| Noisy regime | At fixed per-gate error and growing volume the global fidelity decays exponentially; the output drifts toward uniform and classical spoofing of the XEB score becomes feasible. |
Worked examples
1 · Porter–Thomas bookkeeping for a 53-qubit demonstration (fully worked)
Take , so . Compute the mean and median output probability, the anticoncentration fraction , the collision probability, and the ideal HOG score, and say what each certifies.
Step 1. Mean probability. Over outcomes summing to , . Every individual bitstring is astronomically unlikely; the device explores a space it can never enumerate.
Step 2. Median. Solve , i.e. , giving and . Because the law is broad, the median sits well below the mean — a hallmark of an exponential, not a spike.
Step 3. Anticoncentration fraction. From equation (4), . More than a third of the outcomes are heavier than the flat value , and by mass a constant fraction is heavy — the regularity the average-case argument needs.
Step 4. Collision probability. From equation (3), , exactly twice the uniform . Via Paley–Zygmund this single number certifies anticoncentration; it is also the "" that makes XEB rescale correctly.
Step 5. Ideal HOG. The probability a sampled string beats the median is , against for a uniform spoofer. A device passing the quantum-volume threshold is provably not sampling uniformly. Mean 1.11×10⁻¹⁶, median 7.70×10⁻¹⁷, heavy fraction 0.368, collision 2/N, HOG 0.847.
2 · Fidelity budget and the XEB reading
A 53-qubit circuit applies about two-qubit gates at error , about single-qubit gates at , and measurements at readout error . Estimate the global fidelity and the XEB score.
Step 1. Use the multiplicative model, equation (8): . Take logs to avoid rounding: .
Step 2. Evaluate term by term: ; ; . Sum , so .
Step 3. Interpret via Derivation C: , the same order as the quoted for Sycamore (a real device also carries correlated and leakage errors the simple product omits). A tiny fidelity is still enough to certify supremacy if the ideal can be computed to check the score — which is the whole classical-simulation contest. F ≈ 1.5×10⁻³, so the coherent signal is well under a percent, yet XEB reads it cleanly.
Physics of the portrait
RCS is unusual among physics benchmarks in that its authority comes from complexity theory, and no one did more to build that bridge than the theorist who first turned "quantum computers are hard to simulate" into a theorem with a name attached.
Origins · 1 minScott Aaronson and how this was discovered
Scott Aaronson is the complexity theorist who gave quantum computational advantage its rigorous backbone. In 2011, with his student Alex Arkhipov, he introduced boson sampling and proved the template every later supremacy proposal follows: link the output probabilities of a simple quantum process to a -hard function (there, the matrix permanent), invoke Stockmeyer's approximate counting to show a fast classical sampler would place that function inside the polynomial hierarchy, and conclude — via Toda's theorem — that efficient exact classical sampling would collapse the hierarchy. He identified the two load-bearing extra ingredients for the approximate case, anticoncentration and average-case hardness, and named them as conjectures rather than papering over them. With Lijie Chen in 2017 he laid out the complexity-theoretic foundations specifically for random-circuit experiments, formulating heavy output generation (HOG) and analysing exactly what a Sycamore-style demonstration does and does not prove. Aaronson has been equally influential as the field's most public skeptic-in-residence, insisting that a supremacy claim is a finite-size runtime statement resting on unproven conjectures, and stress-testing each new demonstration against the latest classical spoofing algorithm. The term "quantum supremacy" itself is due to John Preskill (2012); the average-case hardness refinements for RCS to Bouland, Fefferman, Nirkhe and Vazirani (2019); but the argument's shape is Aaronson's.
Going further
Texts and papers. Aaronson & Arkhipov, "The Computational Complexity of Linear Optics" (2011) · Aaronson & Chen, "Complexity-Theoretic Foundations of Quantum Supremacy Experiments" (2017) · Boixo et al., "Characterizing quantum supremacy in near-term devices," Nature Physics (2018) · Bouland, Fefferman, Nirkhe & Vazirani, "On the complexity and verification of quantum random circuit sampling," Nature Physics (2019) · Arute et al. (Google), "Quantum supremacy using a programmable superconducting processor," Nature 574 (2019) · Aharonov, Gao, Landau, Liu & Vazirani, "A polynomial-time classical algorithm for noisy random circuit sampling" (2022) · Preskill, "Quantum computing and the entanglement frontier" (2012); standard complexity background in Nielsen & Chuang, Watrous, Kitaev–Shen–Vyalyi, and Arora–Barak.
Provenance. The exact-sampling collapse (Stockmeyer + Toda + worst-case -hardness) follows Aaronson–Arkhipov (2011) and Aaronson–Chen (2017). The Porter–Thomas law, the collision probability from the -design fourth moment , the anticoncentration constant , and follow Boixo et al. (2018). The ideal HOG value is recomputed here from the median (the migrated source's "" is wrong on both value and number). Average-case refinements follow Bouland–Fefferman–Nirkhe–Vazirani (2019); Sycamore figures from Arute et al. (2019).
Prerequisites. The Complexity Class BQP · BQP is Contained in PP and PSPACE · BQP versus P, NP, and PSPACE. Leads to. The Polynomial Method for Quantum Lower Bounds · Quantum Query Complexity.
Ask the tutor: Ask me to walk through why a fast classical sampler would collapse the polynomial hierarchy, or to compute the Porter–Thomas median, anticoncentration fraction, and XEB fidelity for any qubit count and error budget you choose.
What is the difference between computing an output probability and sampling from the distribution?
Computing means naming the exact probability of one bitstring; sampling means producing bitstrings in the right proportions without ever quoting a number — a very different difficulty. Computing a single amplitude is -hard because you can encode a matrix permanent into it, whereas sampling only needs the relative frequencies right. This gap is why the hardness results differ: exact sampling is unconditionally hard (it would collapse the polynomial hierarchy), but that proof routes through the -hardness of the probabilities, and approximate sampling — what a noisy device does — needs the extra average-case conjecture to connect back to that counting hardness.
Did the 2019 Sycamore result prove quantum computers beat classical ones for good?
No, and its authors were careful not to claim that. The demonstration was a finite-size runtime comparison: for one circuit family at one size and fidelity, sampling took the device minutes while the best-known classical method of the day was estimated to take millennia. That estimate was not a theorem, and within two years improved tensor-network algorithms and better use of classical storage shrank the claimed gap by many orders of magnitude. What it did establish is that a programmable superconducting device could run a deep random circuit at a measurable, XEB-certified fidelity — while the asymptotic separation still rests on unproven complexity conjectures.
Can the cross-entropy benchmark be fooled?
Yes. XEB estimates fidelity assuming the device either samples the ideal distribution or emits uniform noise. An adversary who neither fully simulates the circuit nor gives up can sometimes match a low XEB score by other means — notably algorithms that exploit the device's own noise. A 2022 result gives a polynomial-time classical algorithm that spoofs the XEB of any noisy random circuit at constant error rate. So passing XEB is necessary but not sufficient for supremacy: the claim also requires that no efficient classical method reach the same score, which is exactly what the spoofing arms race keeps testing.
Why does noise eventually make random circuit sampling classically easy?
Because fidelity decays multiplicatively over gates, , with circuit volume growing in width and depth. At fixed per-gate error, shrinks exponentially as you scale up, so the coherent Porter–Thomas part of the output fades and the distribution drifts toward uniform — and a near-uniform distribution is easy to imitate. Spoofing algorithms exploit exactly that the device is mostly outputting noise. Fault-tolerant error correction would break the decay by holding effectively at zero, but bare RCS on a noisy device is a race the noise eventually wins, which is why supremacy claims are pinned to particular sizes.
Is the hardness of random circuit sampling proven or conjectured?
Both, at different strengths. The hardness of exact classical sampling is essentially proven: it would collapse the polynomial hierarchy, an outcome no one believes, and that argument uses only standard results (Stockmeyer, Toda, worst-case -hardness). The hardness of approximate sampling — the physically relevant case, since real devices only approximate — is conditional. It requires anticoncentration, which is a theorem for deep enough circuits, plus average-case -hardness of random-circuit amplitudes, which remains an open conjecture with only partial support. So it is accurate to say RCS is "hardness-backed" but not "proven hard" in the regime experiments occupy.
How is random circuit sampling related to boson sampling?
Boson sampling is the conceptual ancestor and shares the exact argument shape. In boson sampling, indistinguishable photons pass through a random linear-optical network and the output probabilities are governed by permanents of submatrices; in Gaussian boson sampling they are hafnians. Aaronson and Arkhipov's 2011 hardness proof — -hard permanents, plus anticoncentration, plus an average-case conjecture, chained through Stockmeyer to a polynomial-hierarchy collapse — is precisely the template RCS reuses with random-circuit amplitudes in place of permanents. The platforms are complementary experimentally: photonic Gaussian boson sampling (Jiuzhang) and superconducting RCS (Sycamore, Zuchongzhi) stress different hardware but rest on the same complexity-theoretic scaffold.