Hardness Arguments for Sampling Problems

A sampling problem does not ask a computer to decide a yes/no question or compute a function — it asks it to draw a sample xx from a target distribution D\mathcal{D}. Quantum devices do this natively: measuring the nn-qubit state ∣ψ⟩=U∣0⟩⊗n|\psi\rangle=U|0\rangle^{\otimes n} in the computational basis returns the string xx with probability p(x)=∣⟨x∣U∣0⟩⊗n∣2p(x)=|\langle x|U|0\rangle^{\otimes n}|^2. The defining question of quantum supremacy theory is whether an efficient classical algorithm could sample from this very same distribution. Hardness arguments for sampling answer "no — not unless something believed false happens to complexity theory," and the something is the collapse of the polynomial hierarchy. The argument is a reduction with a characteristic three-legged shape. First, the individual output probabilities p(x)p(x) encode a #P-hard quantity: a sum over 2n2^n Feynman paths that, for the right circuit family, becomes an Ising partition function or the permanent of a matrix, Per(A)\mathrm{Per}(A), which Valiant proved #P-complete. Second, Stockmeyer's approximate-counting theorem says a classical sampler — merely a black box that emits xx with the right frequency — lets a machine with an NP oracle estimate any p(x)p(x) multiplicatively. Third, chaining these places a #P-hard number in FBPPNP⊆Σ3p\mathrm{FBPP}^{\mathrm{NP}}\subseteq\Sigma_3^p, the third level of the hierarchy, and Toda's theorem PH⊆P#P\mathrm{PH}\subseteq\mathrm{P}^{\#\mathrm{P}} then folds all of PH into that level. That collapse is regarded as nearly as implausible as P=NP\mathrm{P}=\mathrm{NP}. This is the backbone of the Sycamore and Jiuzhang experiments. It separates cleanly what is proven — worst-case exact-sampling hardness — from what remains conjectured — average-case approximate hardness, which additionally needs anticoncentration and an average-case #P-hardness conjecture.

Key takeaways
  • Quantum circuit families — BosonSampling, IQP, random circuit sampling — produce output distributions p(x)=∣⟨x∣U∣0⟩∣2p(x)=|\langle x|U|0\rangle|^2 that no efficient classical algorithm can sample from, even approximately, unless the polynomial hierarchy collapses.
  • The engine is a two-part reduction: the probabilities are #P-hard to compute (via a permanent or an Ising partition function), and a hypothetical classical sampler would let a BPPNP\mathrm{BPP}^{\mathrm{NP}} machine estimate those probabilities by Stockmeyer counting.
  • Stockmeyer turns sampling into approximate counting in FBPPNP⊆Σ3p\mathrm{FBPP}^{\mathrm{NP}}\subseteq\Sigma_3^p; a #P-hard number landing there forces PH into its third level through Toda's theorem PH⊆P#P\mathrm{PH}\subseteq\mathrm{P}^{\#\mathrm{P}}.
  • Anticoncentration is the indispensable extra ingredient for the realistic error model: it guarantees probabilities are typically Ω(1/N)\Omega(1/N) so that the additive slack a total-variation sampler is allowed stays a small multiplicative error, keeping Stockmeyer's estimate valid.
  • Only worst-case exact hardness is unconditional (modulo non-collapse of PH); approximate-sampling hardness rests on two open conjectures — average-case #P-hardness and anticoncentration.
  • Key idea: a classical sampler for p(x)=∣⟨x∣U∣0⟩∣2p(x)=|\langle x|U|0\rangle|^2, fed to Stockmeyer's counter inside FBPPNP\mathrm{FBPP}^{\mathrm{NP}}, would place a #P-hard probability in the third level of the polynomial hierarchy, and Toda's theorem then collapses PH — so no such sampler exists unless PH collapses. Anticoncentration upgrades this from exact to approximate sampling.
The core insight

A classical sampler for p(x)=∣⟨x∣U∣0⟩∣2p(x)=|\langle x|U|0\rangle|^2, fed to Stockmeyer's counter inside FBPPNP\mathrm{FBPP}^{\mathrm{NP}}, would place a #P-hard probability in the third level of the polynomial hierarchy; Toda's theorem then collapses PH — so no such sampler exists unless PH collapses. Anticoncentration upgrades this from exact to approximate sampling.

Where this lives today

The framework stopped being abstract in 2019, when Google's Sycamore processor sampled from a pseudo-random depth-20 circuit on 53 superconducting qubits, drawing a few million bitstrings and reporting a cross-entropy fidelity near 0.2%0.2\% — small, but statistically decisive, and claimed to require thousands of years on the best classical supercomputer of the day. Anticoncentration there is supplied by Porter–Thomas statistics, and the hardness of estimating individual probabilities is underwritten by the Bouland–Fefferman–Nirkhe–Vazirani average-case-via-polynomial-interpolation argument. The photonic route runs in parallel: the Jiuzhang experiments implement Gaussian BosonSampling — the permanent replaced by the hafnian — detecting up to 76 photons across 100 modes. Both claims live in active tension with classical algorithms: improved tensor-network contractions and noise-exploiting spoofers have repeatedly narrowed or contested specific fidelity margins, precisely because constant-rate noise erodes anticoncentration and drags the output toward uniform. That contest is the frontier: the theory pins down exactly which regime — enough depth for Porter–Thomas, few enough errors to keep fidelity above the spoofing threshold — a device must reach, and the two open conjectures (average-case #P-hardness, anticoncentration for realistic ensembles) mark exactly what still separates a demonstration from a theorem.

The physical picture

Read a single output probability p(x)p(x) as a tiny window onto a gigantic sum over 2n2^n Feynman amplitudes. Evaluating that sum exactly is not a search but a count — the #P regime, where you must tally accepting paths rather than merely find one. A classical sampler looks strictly weaker than an exact calculator: it just emits strings with the right frequencies. Stockmeyer's theorem exposes a hidden bridge between them. From nothing but oracle access to a sampler, a machine equipped with an NP oracle can estimate any individual output probability to within a multiplicative factor. Applied to a probability that is #P-hard, that estimation power is too much — it would let a low, fixed level of the complexity hierarchy compute what should demand the very top. The polynomial hierarchy PH is the tower P⊆NP⊆Σ2p⊆Σ3p⊆⋯\mathrm{P}\subseteq\mathrm{NP}\subseteq\Sigma_2^p\subseteq\Sigma_3^p\subseteq\cdots of problems defined by alternating quantifiers, and it is widely believed to be strictly infinite. A sampling-hardness proof is a proof by contradiction against that belief: assume the efficient classical sampler exists, turn the Stockmeyer crank, and out drops a #P-hard quantity sitting in Σ3p\Sigma_3^p. Toda's theorem then squeezes the entire infinite tower down into that one level. The first figure traces this collapse pipeline end to end.

Figure
The collapse pipeline. Assume a classical sampler with q(x) = p(x) and combine it with the fact that p(x) is #P-hard. Stockmeyer approximate counting places a multiplicative estimate in FBPP with an NP oracle, contained in Σ₃ᵖ. A #P-hard number in Σ₃ᵖ gives P^#P ⊆ Σ₃ᵖ, and Toda's theorem PH ⊆ P^#P then collapses the whole hierarchy to its third level — believed false.
A classical sampler would collapse PH to its third level Σ₃ᵖ Assume: classical sampler q(x) = p(x), poly time Fact: p(x) is #P-hard permanent / Ising sum Stockmeyer counting: multiplicative estimate p̂(x) p̂(x) ∈ FBPP^NP ⊆ FP^Σ₂ᵖ #P-hard value now lies in Σ₃ᵖ ⇒ P^#P ⊆ Σ₃ᵖ Toda: PH ⊆ P^#P PH collapses to Σ₃ᵖ — believed false

Anticoncentration is about the shape of the histogram of the 2n2^n probabilities, and it decides whether the pipeline survives realistic noise. If pp were a delta spike — all its mass on one lucky outcome — a classical sampler could ignore every small probability and still land within total-variation distance ϵ\epsilon, revealing nothing about them. Anticoncentration forbids that: it certifies the distribution is spread, with a constant fraction of outcomes carrying probability Ω(1/N)\Omega(1/N). Then the additive slack ∼ϵ/N\sim\epsilon/N that a total-variation sampler is permitted is small compared with the typical probability, so the sampler's implied estimate of p(x)p(x) stays multiplicatively accurate — precisely what the reduction consumes. The second figure shows where that constant fraction comes from for random circuits: the Porter–Thomas law.

Figure
Porter–Thomas statistics for a Haar-random circuit. The rescaled probability Np follows the exponential density Pr(Np = t) = e^{−t} with mean t = 1. The shaded tail t ≥ 1 has area e^{−1} = 0.368, so 36.8 percent of all outcomes exceed the mean probability 1/N — a constant fraction independent of n. The collision probability Σ p(x)² ≈ 2/N is twice the uniform value, certifying anticoncentration.
Porter–Thomas: Pr(Np = t) = e⁻ᵗ, a fraction e⁻¹ = 0.368 above the mean mean Np = 1 shaded area = e⁻¹ = 0.368 fraction of outcomes with p(x) ≥ 1/N Σₓ p(x)² ≈ 2/N (twice uniform) 1.0 0.5 0 0 1 2 3 4 5 rescaled probability t = Np density Pr(Np = t)

The whole edifice is a reduction, not a lower bound proved from first principles. We never show quantum sampling is hard in isolation; we show that if it were classically easy, the complexity universe would rearrange itself implausibly. The strength of the conclusion is exactly the strength of the belief "PH does not collapse" — decisive for exact sampling, and contingent on two further conjectures for the approximate case that real hardware actually inhabits.

The core equations

The object whose hardness is at stake is the Born-rule output distribution of a quantum circuit. Everything downstream is a statement about computing, estimating, or bounding this one function.

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

where: UU — the nn-qubit unitary the circuit implements; x∈{0,1}nx\in\{0,1\}^n — a computational-basis measurement outcome; p(x)p(x) — the probability of observing xx, the quantity whose classical hardness we study; N=2nN=2^n — Hilbert-space dimension, the number of possible outcomes. Reading it: a quantum device samples x∼px\sim p in one shot; the question is whether a classical machine can imitate that draw. Each amplitude in (1) is itself a sum over exponentially many computational paths through the circuit's gates — the discrete Feynman sum. For the right gate sets its real and imaginary parts become a counting problem.

⟨x∣U∣0⟩=∑paths γA(γ)=∑seiπf(s)(2)\langle x|U|0\rangle=\sum_{\text{paths }\gamma}A(\gamma)=\sum_{s}e^{i\pi f(s)} \qquad (2)

where: γ\gamma — a path, i.e. a choice of intermediate basis strings between the circuit's layers; A(γ)A(\gamma) — its complex amplitude, a product of gate matrix elements; f(s)f(s) — a low-degree polynomial (quadratic/cubic) over F2\mathbb{F}_2 for IQP/Ising circuits. Reading it: the real part Re∑s(−1)f(s)=#{f=0}−#{f=1}\mathrm{Re}\sum_s(-1)^{f(s)}=\#\{f=0\}-\#\{f=1\} is a gap of satisfying assignments — a GapP quantity, #P-hard to evaluate for general ff. For BosonSampling the same probability wears a different, iconic face: the permanent of a matrix, whose all-plus signs are exactly what make it hard.

Per(A)=∑σ∈Sn∏i=1nAi,σ(i),p(output)∝∣Per(A)∣2(3)\mathrm{Per}(A)=\sum_{\sigma\in S_n}\prod_{i=1}^{n}A_{i,\sigma(i)},\qquad p(\text{output})\propto|\mathrm{Per}(A)|^2 \qquad (3)

where: AA — an n×nn\times n submatrix of the interferometer's transfer unitary; SnS_n — the symmetric group; σ\sigma — a permutation. Reading it: for nn indistinguishable photons through a passive linear-optical network, boson symmetrization replaces the determinant (fermions, alternating signs, easy) with the permanent (bosons, all-plus, #P-complete by Valiant 1979). Now the reduction's hinge. A classical sampler is a randomized circuit C(r)C(r) that maps random bits rr to an output; its distribution is a count of preimages, and Stockmeyer's theorem estimates that count multiplicatively with only an NP oracle.

q(x)=∣{r:C(r)=x}∣2∣r∣,q(x)1+δ≤q^(x)≤(1+δ) q(x),q^∈FBPPNP(4)q(x)=\frac{|\{r:C(r)=x\}|}{2^{|r|}},\qquad \frac{q(x)}{1+\delta}\le\hat q(x)\le(1+\delta)\,q(x),\quad \hat q\in\mathrm{FBPP}^{\mathrm{NP}} \qquad (4)

where: q(x)q(x) — the sampler's output probability; q^(x)\hat q(x) — a multiplicative estimate; δ\delta — relative error, driven to 1/poly1/\mathrm{poly} by repetition; FBPPNP⊆FPΣ2p\mathrm{FBPP}^{\mathrm{NP}}\subseteq\mathrm{FP}^{\Sigma_2^p} sits at the second-to-third level. Reading it: sampling access alone buys you approximate counting, which is the whole reason a mere sampler is as dangerous as a calculator. Counting is the ceiling of the entire quantifier hierarchy — this is Toda's theorem, the tool that converts "a hard number in a low level" into "the whole hierarchy in that level."

PH⊆P#P(5)\mathrm{PH}\subseteq\mathrm{P}^{\#\mathrm{P}} \qquad (5)

where: PH=⋃kΣkp\mathrm{PH}=\bigcup_k\Sigma_k^p — the polynomial hierarchy; P#P\mathrm{P}^{\#\mathrm{P}} — polynomial time with a #P (counting) oracle. Reading it: every language decided by any fixed number of alternating quantifiers reduces to a single #P query, so if that #P power is trapped inside Σ3p\Sigma_3^p, then PH⊆Σ3p\mathrm{PH}\subseteq\Sigma_3^p and the tower collapses. The realistic error model needs the histogram to be spread. Anticoncentration states this two equivalent ways — a tail bound and a second-moment (collision) bound.

Pr⁡x ⁣[p(x)≥cN]≥γ,∑xp(x)2≤KN(6)\Pr_x\!\left[p(x)\ge\frac{c}{N}\right]\ge\gamma,\qquad \sum_x p(x)^2\le\frac{K}{N} \qquad (6)

where: c,γ,Kc,\gamma,K — constants independent of nn; for Haar-random / Porter–Thomas statistics K=2K=2 and γ=e−c\gamma=e^{-c}. Reading it: the collision probability ∑xp(x)2\sum_x p(x)^2 equals 1/N1/N for the perfectly flat distribution; a value ≤K/N\le K/N certifies the distribution is no more than a constant factor peakier than uniform. Finally, the bridge that makes total-variation closeness usable — it converts a global ϵ\epsilon into a typical per-outcome error, which anticoncentration then renders multiplicative.

12∑x∣q(x)−p(x)∣≤ϵ  ⇒  Ex∼U ∣q(x)−p(x)∣≤2ϵN(7)\tfrac{1}{2}\sum_x|q(x)-p(x)|\le\epsilon\;\Rightarrow\;\mathbb{E}_{x\sim U}\,|q(x)-p(x)|\le\frac{2\epsilon}{N} \qquad (7)

where: qq — the classical sampler's distribution; ϵ\epsilon — the total-variation-distance budget; UU — the uniform draw over xx. Reading it: averaged over the NN outcomes, the sampler's per-outcome error is only 2ϵ/N2\epsilon/N, so on the anticoncentrated outcomes where p(x)≥c/Np(x)\ge c/N the relative error is O(ϵ/c)O(\epsilon/c) — small, and Stockmeyer's estimate survives.

Derivation AExact classical sampling collapses the polynomial hierarchy

The goal is to run the full BJS/AA reduction: starting only from the assumption that some classical polynomial-time randomized algorithm samples exactly from p(x)=∣⟨x∣U∣0⟩∣2p(x)=|\langle x|U|0\rangle|^2, derive that a #P-hard quantity would be computable inside the third level Σ3p\Sigma_3^p of the polynomial hierarchy, so that Toda's theorem forces the entire hierarchy to collapse to Σ3p\Sigma_3^p — an implication regarded as almost as implausible as P=NP\mathrm{P}=\mathrm{NP}. We assume the sampler for contradiction, expose its output as a count of preimages, apply Stockmeyer, encode a #P-hard number into pp, and chain the containments.

Step 1. Let S(r)\mathcal{S}(r) be the assumed sampler; exactness means its distribution over the random tape rr satisfies q(x)=Pr⁡r[S(r)=x]=p(x)q(x)=\Pr_r[\mathcal{S}(r)=x]=p(x) for every xx. Because S\mathcal{S} is a poly-size circuit, q(x)=∣{r:S(r)=x}∣/2∣r∣q(x)=|\{r:\mathcal{S}(r)=x\}|/2^{|r|} is literally a fraction of accepting random tapes. Why: this rewrites the physically-defined probability as a combinatorial preimage count, the exact object Stockmeyer's theorem knows how to estimate.

Step 2. Apply Stockmeyer's approximate-counting theorem to that preimage count: a machine in FBPPNP⊆FPΣ2p\mathrm{FBPP}^{\mathrm{NP}}\subseteq\mathrm{FP}^{\Sigma_2^p} outputs p^(x)\hat p(x) with p^(x)∈(1±δ) p(x)\hat p(x)\in(1\pm\delta)\,p(x) for any δ=1/poly(n)\delta=1/\mathrm{poly}(n). Why: sampling access alone, with nothing but an NP oracle, already yields a multiplicative estimate of the probability — the step that makes a mere sampler as powerful as a calculator.

Step 3. Choose UU so that p(x)p(x) encodes a #P-hard number — a normalized Ising partition function for IQP, or ∝∣Per(A)∣2\propto|\mathrm{Per}(A)|^2 for BosonSampling. Even a multiplicative approximation of such a p(x)p(x) is #P-hard, because GapP is closed under the relevant operations and the sign/magnitude carries the count. Why: this plants the hardness inside the very probability the sampler reproduces, so estimating it is estimating a #P-hard quantity.

Step 4. Combine: the estimate p^(x)\hat p(x) of a #P-hard quantity now lives in FPΣ2p⊆Σ3p\mathrm{FP}^{\Sigma_2^p}\subseteq\Sigma_3^p, hence P#P⊆Σ3p\mathrm{P}^{\#\mathrm{P}}\subseteq\Sigma_3^p. Why: a #P-hard value computable at the third level drags the whole counting oracle down to that level, since #P-hardness means everything in #P reduces to it.

Step 5. Invoke Toda: PH⊆P#P⊆Σ3p\mathrm{PH}\subseteq\mathrm{P}^{\#\mathrm{P}}\subseteq\Sigma_3^p, so the polynomial hierarchy collapses to its third level — believed false, completing the contradiction and proving no exact classical sampler exists. Why: Toda supplies the final lever, converting a single trapped #P query into the collapse of an infinite tower of quantifier alternations.

Go deeper · Derivation B · 2 minAnticoncentration lifts exact hardness to approximate hardness
Derivation BAnticoncentration lifts exact hardness to approximate hardness

The goal is to extend the collapse from an idealized exact sampler to the physically relevant device that need only reproduce pp within total-variation distance ϵ\epsilon. We show that if the probabilities anticoncentrate and estimating p(x)p(x) for a random xx is #P-hard — the average-case conjecture — then even an additive-error sampler yields, on a constant fraction of outcomes, a genuine multiplicative estimate of a #P-hard number, so the same Toda collapse follows. We push the global ϵ\epsilon down to a typical per-outcome error, bound the bad outcomes with Markov, and use anticoncentration to convert additive error into multiplicative error.

Step 1. Total-variation closeness 12∑x∣q(x)−p(x)∣≤ϵ\tfrac12\sum_x|q(x)-p(x)|\le\epsilon means the average per-outcome error over uniform xx is Ex∼U∣q(x)−p(x)∣=1N∑x∣q(x)−p(x)∣≤2ϵ/N\mathbb{E}_{x\sim U}|q(x)-p(x)|=\tfrac1N\sum_x|q(x)-p(x)|\le 2\epsilon/N. Why: a global distance budget becomes a per-outcome budget of order 1/N1/N, the scale of a typical probability itself.

Step 2. By Markov's inequality, Pr⁡x[ ∣q(x)−p(x)∣>α/N ]≤2ϵ/α\Pr_x[\,|q(x)-p(x)|>\alpha/N\,]\le 2\epsilon/\alpha, so for all but a 2ϵ/α2\epsilon/\alpha fraction of outcomes the additive error is at most α/N\alpha/N. Why: it pins the sampler's error below α/N\alpha/N on the overwhelming majority of strings, isolating a large "good" set.

Step 3. Anticoncentration supplies a large denominator: Pr⁡x[p(x)≥c/N]≥γ\Pr_x[p(x)\ge c/N]\ge\gamma, a constant fraction of outcomes with probability Ω(1/N)\Omega(1/N). On the intersection of this set with the good set, the relative error is ∣q(x)−p(x)∣p(x)≤α/Nc/N=αc≪1\frac{|q(x)-p(x)|}{p(x)}\le\frac{\alpha/N}{c/N}=\frac{\alpha}{c}\ll 1. Why: only because the typical probability is as large as the error scale does an additive error of size α/N\alpha/N become a small multiplicative error — this is the exact role anticoncentration plays.

Step 4. On that constant fraction of xx, then, q(x)q(x) multiplicatively approximates p(x)p(x); feeding qq through Stockmeyer (Step 2 of the previous derivation) produces a multiplicative estimate of p(x)p(x) in Σ3p\Sigma_3^p for those outcomes. Why: the additive-error sampler is now doing, on typical outcomes, exactly what the exact sampler did on all outcomes.

Step 5. Assume the average-case #P-hardness conjecture: estimating p(x)p(x) for a random xx is #P-hard. Then a #P-hard average-case quantity has been placed in Σ3p\Sigma_3^p, and Toda collapses PH exactly as before. Why: this is the second, unproven pillar — worst-case hardness alone is not enough, since the reduction only controls typical xx, so hardness must hold for typical instances too.

Go deeper · Derivation C · 1 minPorter–Thomas statistics and the anticoncentration constant
Derivation CPorter–Thomas statistics and the anticoncentration constant

The goal is to prove anticoncentration outright for the ensemble that matters to random circuit sampling — Haar-random unitaries — by computing the distribution of a single output probability and its first two moments, and reading off both the tail fraction γ=e−c\gamma=e^{-c} and the collision constant K=2K=2 that the previous derivation assumed. We treat a column of a Haar unitary as a uniformly random unit vector, take the large-NN limit to the exponential Porter–Thomas law, and evaluate the moments.

Step 1. For Haar-random UU the fixed-input probability p(x)=∣⟨x∣U∣0⟩∣2p(x)=|\langle x|U|0\rangle|^2 is ∣c∣2|c|^2 for a component cc of a random unit vector in CN\mathbb{C}^N; its exact law is Pr⁡(p)=(N−1)(1−p)N−2\Pr(p)=(N-1)(1-p)^{N-2}, which converges as N→∞N\to\infty to the exponential Pr⁡(Np=t)→e−t\Pr(Np=t)\to e^{-t}. Why: this is the Porter–Thomas distribution — the rescaled probability NpNp is a unit-mean exponential, the fingerprint of a fully scrambled circuit.

Step 2. The first moment is fixed by normalization: ∑xE[p(x)]=1\sum_x\mathbb{E}[p(x)]=1 over NN equivalent outcomes gives E[p]=1/N\mathbb{E}[p]=1/N, i.e. E[Np]=1\mathbb{E}[Np]=1. Why: the mean probability is pinned to the uniform value 1/N1/N no matter how spread the distribution is; the mean cannot by itself distinguish flat from peaked.

Step 3. The second moment separates the two: for the exponential law E[(Np)2]=2\mathbb{E}[(Np)^2]=2, so E[p2]=2/N2\mathbb{E}[p^2]=2/N^2 (exactly 2/[N(N+1)]2/[N(N+1)] at finite NN), and the collision probability is ∑xp(x)2≈N⋅2/N2=2/N\sum_x p(x)^2\approx N\cdot 2/N^2=2/N. Why: this is twice the uniform collision value 1/N1/N, so K=2K=2 — the distribution is spread, exactly the second-moment form of anticoncentration.

Step 4. The tail follows directly from the exponential: Pr⁡x[p(x)≥c/N]=∫c∞e−t dt=e−c\Pr_x[p(x)\ge c/N]=\int_c^\infty e^{-t}\,dt=e^{-c}, so γ=e−c\gamma=e^{-c}; taking c=1c=1 gives γ=1/e≈0.368\gamma=1/e\approx 0.368 of outcomes above the mean probability 1/N1/N — a constant independent of nn. Why: a constant fraction of outcomes sit at or above the mean, which is precisely the tail-bound form of anticoncentration the reduction needs. *The key numerical results from this derivation — moments E[Np]=1\mathbb{E}[Np]=1, E[(Np)2]=2\mathbb{E}[(Np)^2]=2, collision 2/N2/N, tail e−ce^{-c}, and the numerical value 1/e=0.36791/e=0.3679 — follow from standard Porter–Thomas / random-matrix theory.*

Limiting cases

The conclusion swings sharply with the error model and with which conjectures one accepts. The table below is the map of what is unconditional and what is not.

CaseResultMeaning
Exact samplingq(x)=p(x) ∀xq(x)=p(x)\ \forall xUnconditionally hard: no classical poly-time sampler unless PH collapses to Σ3p\Sigma_3^p. Needs only #P-hardness of p(x)p(x) plus Stockmeyer plus Toda — no anticoncentration or average-case assumption.
Multiplicative approximate∣q(x)−p(x)∣≤c p(x)\lvert q(x)-p(x)\rvert\le c\,p(x)Also unconditionally collapse-implying for small c<1c<1, since multiplicative closeness preserves the #P-hard estimate. Physically unrealistic — no device guarantees per-outcome multiplicative accuracy.
Additive / TVD approximate12∑x∣q(x)−p(x)∣≤ϵ\tfrac12\sum_x\lvert q(x)-p(x)\rvert\le\epsilonThe physically relevant model. Hardness is CONJECTURAL: requires both anticoncentration and an average-case #P-hardness conjecture (Permanent-of-Gaussians, or the random-circuit Polynomial conjecture).
Noisy / depth-limitedF→0F\to 0 as n→∞n\to\inftyWith constant per-gate noise and no error correction, fidelity decays exponentially; the output drifts to uniform, anticoncentration and hardness both wash out, and classical spoofing becomes possible at large nn.

Worked examples

1 · Porter–Thomas, collision, and cross-entropy for a Sycamore-scale circuit (fully worked)

A random circuit acts on n=53n=53 qubits, so N=253N=2^{53}. Assuming ideal Porter–Thomas statistics, find the mean output probability, the fraction of strings above it, the collision probability, and the ideal value of the linear cross-entropy benchmark FXEB=N ⟨p(xi)⟩samples−1F_{\mathrm{XEB}}=N\,\langle p(x_i)\rangle_{\text{samples}}-1. Then interpret a measured FXEB≈0.002F_{\mathrm{XEB}}\approx 0.002.

Step 1. Dimension and mean. N=253=9.007×1015N=2^{53}=\mathbf{9.007\times10^{15}} outcomes, so the mean probability is E[p]=1/N=1.11×10−16\mathbb{E}[p]=1/N=\mathbf{1.11\times10^{-16}}. Every string is astronomically unlikely individually — a device that hit any particular target string would be the suspicious one.

Step 2. Fraction above the mean. From the Porter–Thomas tail Pr⁡x[p(x)≥c/N]=e−c\Pr_x[p(x)\ge c/N]=e^{-c} with c=1c=1, a fraction e−1=0.368e^{-1}=\mathbf{0.368} of the 9×10159\times10^{15} strings carry more than the mean probability. A constant 36.8%36.8\% independent of nn — this is anticoncentration, made concrete.

Step 3. Collision probability. ∑xp(x)2≈2/N=2.22×10−16\sum_x p(x)^2\approx 2/N=\mathbf{2.22\times10^{-16}}, exactly twice the uniform value 1/N1/N. The factor 22 (Porter–Thomas K=2K=2) is what guarantees the additive error of a total-variation sampler stays multiplicatively small on typical strings.

Step 4. Ideal XEB. For samples drawn from the true distribution, ⟨p(xi)⟩=∑xp(x)⋅p(x)=∑xp(x)2≈2/N\langle p(x_i)\rangle=\sum_x p(x)\cdot p(x)=\sum_x p(x)^2\approx 2/N, so FXEB=N⋅(2/N)−1=1F_{\mathrm{XEB}}=N\cdot(2/N)-1=\mathbf{1}. For a machine outputting uniform noise, ⟨p(xi)⟩=1N∑xp(x)=1/N\langle p(x_i)\rangle=\tfrac1N\sum_x p(x)=1/N, giving FXEB=N⋅(1/N)−1=0F_{\mathrm{XEB}}=N\cdot(1/N)-1=\mathbf{0}. The benchmark reads 11 for a perfect quantum sampler and 00 for pure noise — and it works only because the distribution anticoncentrates, so that high-pp strings appear more often.

Step 5. Interpret the measurement. A measured FXEB≈0.002F_{\mathrm{XEB}}\approx 0.002 means the device sampled with roughly 0.2%\mathbf{0.2\%} fidelity — its output is 99.8%99.8\% noise, 0.2%0.2\% signal — yet that sliver is statistically decisive over a few million samples, and reproducing even it is the claimed classically hard task. The XEB is a direct dividend of anticoncentration: no spread, no benchmark.

2 · Why the BosonSampling permanent is hard: the fermion–boson contrast

Fifty photons (n=50n=50) pass through a passive interferometer with m=O(n2)≈2500m=O(n^2)\approx 2500 modes. Each output amplitude is Per(A)\mathrm{Per}(A) of a 50×5050\times 50 complex submatrix. Compare the classical cost of the permanent (bosons) with the determinant (fermions) of the same-size matrix.

Step 1. Naive permanent. Summing over all permutations costs n!=50!=3.04×1064n!=50!=\mathbf{3.04\times10^{64}} terms — utterly infeasible; more than the number of atoms in the observable universe.

Step 2. Best known permanent algorithm. Ryser's formula evaluates Per(A)\mathrm{Per}(A) in O(n 2n)O(n\,2^n) operations: 50⋅250=5.63×101650\cdot 2^{50}=\mathbf{5.63\times10^{16}} operations. A huge improvement over 50!50!, but still exponential — and no polynomial algorithm is known, consistent with #P-completeness.

Step 3. The fermion contrast. Swap bosons for fermions and the amplitude becomes det⁡(A)\det(A), computable by Gaussian elimination in O(n3)=503=1.25×105O(n^3)=50^3=\mathbf{1.25\times10^{5}} operations — trivially polynomial. The only formal difference between det⁡\det and Per\mathrm{Per} is the alternating sign sgn(σ)\mathrm{sgn}(\sigma): the determinant's cancellations enable elimination, the permanent's all-plus signs forbid it.

Step 4. The lesson. Fermion sampling (all det⁡\det) is classically easy; boson sampling (all Per\mathrm{Per}) is classically hard, and the divide is a single sign. The hardness of BosonSampling is the #P-completeness of the permanent, 5.6×1016≫1.25×1055.6\times10^{16}\gg 1.25\times10^{5} operations for the same 50×5050\times 50 matrix — a gap that grows exponentially with photon number.

Physics of the portrait

Sampling hardness is not one person's theorem but a chain forged across four decades — Valiant's permanent, Stockmeyer's counter, Toda's collapse, and the quantum syntheses of Bremner–Jozsa–Shepherd and Aaronson–Arkhipov. The portrait is the argument itself.

Origins · 1 minsampling hardness and how this was discovered
SH
sampling hardness
the collapse argument that easy classical sampling forces PH ⊆ Σ₃ᵖ · quantum computational complexity

The sampling-hardness argument is a rare object in physics: a claim about laboratory hardware whose entire force is borrowed from pure complexity theory, assembled from parts that were built for unrelated reasons. Leslie Valiant supplied the foundation stone in 1979, proving that computing the permanent of a 0/1 matrix is #P-complete — the counting analogue of NP-completeness — even though the superficially identical determinant is easy. Larry Stockmeyer added the second piece in 1983, showing that approximate counting, and hence estimating the acceptance probability of any circuit, sits in the polynomial hierarchy at the level of an NP oracle over BPP. Seinosuke Toda proved in 1991 the astonishing containment PH⊆P#P\mathrm{PH}\subseteq\mathrm{P}^{\#\mathrm{P}}: a single counting query is at least as powerful as the entire tower of alternating quantifiers. For two decades these lived as landmarks of classical complexity with no quantum tenant. Then in 2004–2011 Michael Bremner, Richard Jozsa, and Dan Shepherd showed that even the humble commuting circuits of IQP produce distributions whose classical simulation would collapse PH, and in 2011–2013 Scott Aaronson and Alex Arkhipov built the same conclusion for linear-optical BosonSampling, wrapping Valiant's permanent in a photonic experiment and adding the anticoncentration and average-case machinery that the noisy, approximate world demands. The modern picture — worst-case exact hardness proven, average-case approximate hardness conjectured — completes what Valiant began: a tabulated impossibility turned into the theoretical backbone of every quantum-advantage experiment.

History
1979
— Valiant proves the permanent is #P-complete
1983
— Stockmeyer places approximate counting in the polynomial hierarchy
1991
— Toda proves PH ⊆ P^#P, counting dominates the hierarchy
2004
— Terhal and DiVincenzo link constant-depth circuit simulation to complexity collapse
2011
— Bremner, Jozsa and Shepherd show classical simulation of IQP collapses PH
2013
— Aaronson and Arkhipov prove the BosonSampling hardness program

Going further

References. Aaronson & Arkhipov, "The Computational Complexity of Linear Optics," Theory of Computing 9 (2013) 143 · Bremner, Jozsa & Shepherd, "Classical simulation of commuting quantum computations implies collapse of the polynomial hierarchy," Proc. R. Soc. A 467 (2011) 459 · Bremner, Montanaro & Shepherd, "Average-case complexity versus approximate simulation of commuting quantum computations," PRL 117 (2016) 080501 · Stockmeyer, "The complexity of approximate counting," STOC 1983 · Toda, "PP is as hard as the polynomial-time hierarchy," SIAM J. Comput. 20 (1991) 865 · Valiant, "The complexity of computing the permanent," Theoret. Comput. Sci. 8 (1979) 189 · Bouland, Fefferman, Nirkhe & Vazirani, "On the complexity and verification of quantum random circuit sampling," Nature Physics 15 (2019) 159 · Arute et al., "Quantum supremacy using a programmable superconducting processor," Nature 574 (2019) 505 · Nielsen & Chuang, Quantum Computation and Quantum Information, §3.2 · Kitaev, Shen & Vyalyi, Classical and Quantum Computation, counting-classes chapter. The key relations used throughout this article are: p(x)=∣⟨x∣U∣0⟩∣2p(x)=|\langle x|U|0\rangle|^2 with its Feynman path-sum expansion; the BosonSampling amplitude ∝Per(A)\propto\mathrm{Per}(A), with the permanent #P-complete by Valiant; Stockmeyer's approximate counting in FBPPNP⊆FPΣ2p\mathrm{FBPP}^{\mathrm{NP}}\subseteq\mathrm{FP}^{\Sigma_2^p}; Toda's PH⊆P#P\mathrm{PH}\subseteq\mathrm{P}^{\#\mathrm{P}} and the resulting Σ3p\Sigma_3^p collapse. The Porter–Thomas moments are E[Np]=1\mathbb{E}[Np]=1, E[(Np)2]=2\mathbb{E}[(Np)^2]=2, collision ∑xp2≈2/N\sum_x p^2\approx 2/N, and tail e−ce^{-c}. The two conjectures — average-case #P-hardness and anticoncentration for realistic ensembles — remain open. Numerical anchors: 253=9.007×10152^{53}=9.007\times10^{15}, 1/e=0.3681/e=0.368, 50⋅250=5.63×101650\cdot 2^{50}=5.63\times10^{16}, 503=1.25×10550^3=1.25\times10^5.

Prerequisites. The Complexity Class BQP · BQP is Contained in PP and PSPACE · BQP versus P, NP, and PSPACE. Leads to. MIP* = RE · The Local Hamiltonian Problem.

Ask the tutor: Ask me to walk the sampler-to-Stockmeyer-to-Toda chain line by line, or to show exactly how anticoncentration turns a total-variation-distance sampler into a multiplicative estimate of a #P-hard probability.

Why is a mere classical sampler as dangerous as a machine that computes p(x) exactly?

Because sampling access secretly grants estimation power. A classical sampler is a circuit C(r)C(r) that maps random bits to outputs, so its probability q(x)q(x) is literally the fraction of random tapes that produce xx — a preimage count. Stockmeyer's theorem says that counting the accepting inputs of a circuit, approximately, can be done in the polynomial hierarchy with an NP oracle. So from the sampler alone, a FBPPNP\mathrm{FBPP}^{\mathrm{NP}} machine can estimate q(x)=p(x)q(x)=p(x) multiplicatively — you never needed the exact calculator. That is exactly why "just sampling" is not a weaker task in the sense that matters: it still exposes the #P-hard number hiding inside p(x)p(x).

What does "the polynomial hierarchy collapses" actually mean, and why is it a disaster?

PH is the infinite tower P⊆NP⊆Σ2p⊆Σ3p⊆⋯\mathrm{P}\subseteq\mathrm{NP}\subseteq\Sigma_2^p\subseteq\Sigma_3^p\subseteq\cdots, where each level adds one more alternating "there exists / for all" quantifier. The universal belief is that the tower is strictly increasing — each quantifier genuinely buys new power. A "collapse to the third level" means every one of those infinitely many levels equals Σ3p\Sigma_3^p: all the higher quantifier alternations were secretly free. That would be a structural earthquake in complexity theory, on par with P=NP\mathrm{P}=\mathrm{NP} in how strongly it is disbelieved. So proving "easy classical sampling ⇒\Rightarrow PH collapses" is a very strong form of evidence that easy classical sampling is impossible.

Why does exact-sampling hardness not need anticoncentration, while approximate hardness does?

An exact sampler reproduces p(x)p(x) perfectly for every xx, so Stockmeyer estimates each p(x)p(x) multiplicatively regardless of how small it is — no assumption about the shape of the distribution is required. A total-variation (additive) sampler is only globally close: it can be wildly wrong on individual small-probability strings as long as the errors sum to at most ϵ\epsilon. On a string with tiny p(x)p(x) the additive error can swamp the value, destroying the multiplicative estimate. Anticoncentration rescues the argument by guaranteeing a constant fraction of strings have p(x)=Ω(1/N)p(x)=\Omega(1/N), where the bounded additive error ∼ϵ/N\sim\epsilon/N is only a small multiplicative error — so the estimate survives on typical strings.

What is anticoncentration in one clean statement, and how is it measured?

Anticoncentration says the output distribution is spread out rather than concentrated on a few strings: a constant fraction of outcomes carry probability Ω(1/N)\Omega(1/N), equivalently the collision probability ∑xp(x)2\sum_x p(x)^2 is only a constant factor KK above the perfectly-flat value 1/N1/N. For Haar-random circuits, Porter–Thomas statistics give K=2K=2 and a fraction e−ce^{-c} of outcomes above c/Nc/N. Operationally it is what makes the linear cross-entropy benchmark work: high-probability strings must appear noticeably more often than low-probability ones, which only happens if the distribution is spread but not uniform. Without anticoncentration a sampler could ignore all small probabilities and still look close in total-variation distance.

Are the Sycamore and Jiuzhang experiments proven to be classically hard?

No — and this is the crucial nuance. What is proven is that exact classical sampling from these distributions would collapse PH. What the experiments actually do is approximate, noisy sampling, whose hardness additionally requires two open conjectures: average-case #P-hardness of the output probability, and anticoncentration for the specific ensemble. Both are supported by strong evidence (polynomial-interpolation arguments for average-case hardness, Porter–Thomas for anticoncentration) but neither is a theorem. On top of that, constant-rate noise without error correction erodes anticoncentration and lets classical spoofing algorithms close in — which is why specific fidelity claims have been actively contested rather than settled.

Where exactly does the permanent enter, and why not the determinant?

For nn indistinguishable photons through a passive linear-optical network with transfer unitary UU, the transition amplitude to a given output configuration is the permanent of the corresponding n×nn\times n submatrix AA, and the measured probability is ∝∣Per(A)∣2\propto|\mathrm{Per}(A)|^2. The permanent, ∑σ∏iAi,σ(i)\sum_\sigma\prod_i A_{i,\sigma(i)}, differs from the determinant only by dropping the sign sgn(σ)\mathrm{sgn}(\sigma). That single change is decisive: the determinant's alternating signs allow Gaussian elimination in O(n3)O(n^3) time, while the permanent's all-plus signs make it #P-complete (Valiant 1979), with the best known algorithm (Ryser) still exponential at O(n 2n)O(n\,2^n). Bosons pick out the permanent because their wavefunction is symmetric under exchange; fermions pick the determinant and are classically easy.

Before this

Where this leads