The Cost of Magic and Magic Resource Theory

Universal quantum computation splits cleanly into two layers, and only one of them is expensive. The Clifford layer — generated by the Hadamard HH, the phase gate SS, and CNOT, together with Pauli measurements and stabilizer-state preparation — is, by the Gottesman–Knill theorem, classically simulable in polynomial time. On its own it computes nothing a laptop cannot. Universality demands one ingredient from outside: a single non-Clifford gate, canonically T=diag(1,eiπ/4)T=\mathrm{diag}(1,e^{i\pi/4}) or the Toffoli. The resource theory of magic is the systematic accounting of that missing ingredient. It fixes the Clifford operations and stabilizer states as free — costless, unlimited — and asks how to quantify the magic (non-stabilizerness) that only a non-Clifford resource can supply. The construction runs exactly parallel to entanglement theory. Fix a convex set of free states (the stabilizer polytope, whose vertices are the pure stabilizer states) and a set of free operations (Clifford unitaries, Pauli measurements, partial trace, adjoining stabilizer ancillas). A magic monotone is then any function that is zero on free states and cannot increase under any free operation. Several inequivalent but operationally meaningful monotones coexist — the robustness of magic R\mathcal{R}, the stabilizer extent ξ\xi, the stabilizer fidelity FSF_S, the stabilizer rank χ\chi, and, in the phase-space picture, the mana M\mathcal{M} built on discrete-Wigner negativity and the stabilizer Rényi entropies MαM_\alpha. What makes magic the central quantity of fault tolerance is that the same number reads from both ends. Upward, magic is the fuel of computation: every TT gate is enacted by injecting and consuming a distilled magic state, so the total magic a circuit needs — measured by its TT-count — sets the dominant cost of running it. Downward, that identical magic content lower-bounds the classical simulation cost: stabilizer-rank and quasiprobability simulators run in time controlled by χ\chi or R2\mathcal{R}^2, so a circuit with little magic is classically easy and a magic-rich one is the regime of genuine quantum advantage. Magic resource theory draws the precise, quantitative line between the classically tractable and the truly quantum.

Key takeaways
  • Clifford gates, stabilizer inputs, and Pauli measurements are classically simulable (Gottesman–Knill), so the power of quantum computation must come from a non-Clifford resource — magic, or non-stabilizerness.
  • Magic resource theory designates stabilizer states and Clifford operations as free and measures non-stabilizerness by monotones that cannot increase under any free operation.
  • Standard monotones include the robustness of magic R\mathcal{R}, the stabilizer extent ξ\xi and fidelity FSF_S, the stabilizer rank χ\chi, the mana M\mathcal{M} (Wigner negativity), and the stabilizer Rényi entropies MαM_\alpha.
  • The single-qubit unit of magic is ∣A⟩=T∣+⟩|A\rangle=T|+\rangle: R(∣A⟩)=2\mathcal{R}(|A\rangle)=\sqrt2, extent ξ(∣A⟩)=4−22≈1.172\xi(|A\rangle)=4-2\sqrt2\approx1.172, fidelity FS=(2+2)/4≈0.854F_S=(2+\sqrt2)/4\approx0.854, and M2=log⁡243≈0.415M_2=\log_2\tfrac43\approx0.415.
  • The identical magic content bounds two costs at once: it upper-bounds the fault-tolerant cost to prepare a state (distillation yield) and lower-bounds the classical cost to simulate computing with it (χ\chi, R2\mathcal{R}^2).
  • Because χ(∣A⟩⊗6)≤7<26\chi(|A\rangle^{\otimes6})\le7<2^6, stabilizer-rank simulators run in sub-2t2^t time (∼20.47 t\sim2^{0.47\,t}), pushing the classical-simulability frontier out to roughly 50 TT-gates.
  • Key idea: Designate stabilizer states and Clifford operations as free; then any function monotone non-increasing under free operations quantifies an irreproducible resource — magic — whose total amount in a state both upper-bounds the fault-tolerant cost to prepare it and lower-bounds the classical cost to simulate computing with it.
The core insight

Designate stabilizer states and Clifford operations as free; then any function that is monotone non-increasing under free operations quantifies an irreproducible resource — magic — whose total amount in a state both upper-bounds the fault-tolerant resource cost to prepare it and lower-bounds the classical cost to simulate computing with it.

Where this lives today

Magic resource theory stopped being abstract the moment people used it to draw the line quantum advantage must cross. Stabilizer-rank simulators (Bravyi–Gosset) and quasiprobability Monte-Carlo simulators (Pashayan and collaborators) run in time set by χ\chi or R2\mathcal{R}^2, and they now simulate near-Clifford circuits with roughly 50 non-Clifford gates — precisely locating where classical methods must give out, and providing the honest baseline that any claim of quantum advantage has to beat. On the compilation side, because each TT consumes a distilled magic state, and magic-state factories dominate the space-time volume of surface-code algorithms, quantifying a target unitary's intrinsic magic yields lower bounds on achievable TT-count that certify a compilation is optimal. In topological hardware the theory makes a sharp physical prediction: Ising-anyon and Majorana platforms braid to the full Clifford group but produce zero magic, so they need injected magic to become universal, while Fibonacci anyons braid to dense, magical gates and are natively universal — the cost of universality is exactly the cost of supplying the magic braiding cannot make. Most recently, the stabilizer Rényi entropy has crossed into many-body physics and experiment: randomized-measurement protocols on trapped-ion and Rydberg arrays now estimate the magic of prepared states directly, turning non-stabilizerness into a measurable probe of quantum complexity that distinguishes classically spoofable outputs from authentically quantum ones.

The physical picture

Picture the set of all nn-qubit density matrices as a convex body. Inside it sits the stabilizer polytope STABn\mathrm{STAB}_n, the convex hull of the finitely many pure stabilizer states. Free operations — Cliffords, Pauli measurements, stabilizer ancillas — map this polytope into itself and can never carry a point out of it. Magic is simply how far outside the polytope a state lies, or, for a mixed state, how deep it must be buried before the polytope can contain it. A state grazing a facet is barely magical; a state that forces you to inflate the polytope by a large factor before it fits (large robustness) is highly magical. Every magic monotone is one honest way of turning "distance from the free set" into a number, and different monotones answer different operational questions about that distance.

Figure
Magic is distance from the stabilizer polytope. The free set STAB (blue) sits inside the full state space; free operations (green arrows) never leave it. The magic state A = T+ pokes out through a facet, and its robustness R = √2 ≈ 1.414 is the ℓ1 weight of the signed stabilizer mixture that reaches it — a coefficient must go negative to push past the boundary
Magic = how far a state lies outside the free stabilizer polytope all states (density matrices) STAB (free) stabilizer vertex free operations stay inside A = T+ outside the polytope R(A) = √2 ≈ 1.414 ℓ1 weight of the signed mixture stabilizer state: R = 1 magic state: R greater than 1 a coefficient turns negative to reach past the boundary

There is a second picture that makes magic literally a negativity. In odd prime dimension, the discrete Wigner function assigns a quasiprobability Wρ(u)W_\rho(u) to each phase-space point, and the discrete Hudson theorem says a pure state has an everywhere-nonnegative Wigner function if and only if it is a stabilizer state. Magic then is the negativity: a state can fuel non-classical computation only if its Wigner function dips below zero somewhere, and the total negativity (the mana) measures the failure of a positive-quasiprobability classical simulation. The two pictures — geometric distance from the polytope, and negativity of a quasiprobability — are two faces of the one resource. The reason all of this is not bookkeeping for its own sake is that the same magic gauge reads the cost of computation from both directions at once. The second figure is the picture a fault-tolerance architect actually reasons about: a magic-poor circuit is one a classical computer can fake quickly, while a magic-rich circuit is where classical simulation blows up — and the crossover is set by a magic monotone, the stabilizer rank.

Figure
The magic gauge reads both ways. Classical cost of simulating t T-gates: the naive exponent 2^t (red) versus the stabilizer-rank exponent 2^0.47t (blue) that follows from χ(A⊗6) ≤ 7. The gentler magic-controlled exponent pushes the classical-simulability frontier from about 40 out to roughly 50 to 60 T-gates
The punchline: magic sets the classical-simulation exponent 2⁰ 2¹⁵ 2³⁰ 2⁴⁵ 0 20 40 60 T-count t classical cost feasibility ceiling ≈ 2²⁰ naive 2ᵗ stabilizer rank 2⁰·⁴⁷ᵗ χ(A⊗6) ≤ 7 naive hits ceiling near t = 40 stabilizer rank reaches t ≈ 50 to 60

The core equations

The whole framework rests on one convex set: the free states. These are the mixed stabilizer states, the convex hull of the pure ones, and everything about magic is measured relative to this polytope.

STABn=conv{ ∣ϕ⟩⟨ϕ∣:∣ϕ⟩ a pure stabilizer state }(1)\mathrm{STAB}_n = \mathrm{conv}\{\,|\phi\rangle\langle\phi| : |\phi\rangle \text{ a pure stabilizer state}\,\} \qquad (1)

where: STABn\mathrm{STAB}_n — the set of nn-qubit (mixed) stabilizer states; ∣ϕ⟩|\phi\rangle — a pure stabilizer state, the simultaneous +1+1 eigenstate of nn commuting independent Paulis; conv\mathrm{conv} — convex hull. Reading: there are 2n∏k=1n(2k+1)2^n\prod_{k=1}^{n}(2^k+1) pure stabilizer states, a finite set whose hull is a polytope; a state is free precisely when it lies inside it. The first and most operational monotone is the robustness of magic: the minimum total ℓ1\ell_1 weight of any signed mixture of stabilizer states that reproduces ρ\rho. Negative coefficients are what let the mixture reach outside the polytope, and the price is paid in ℓ1\ell_1 weight above one.

R(ρ)=min⁡{ ∑i∣xi∣  :  ρ=∑ixi σi, σi∈STABn, ∑ixi=1}(2)\mathcal{R}(\rho) = \min\Big\{\, \textstyle\sum_i |x_i| \;:\; \rho = \sum_i x_i\,\sigma_i,\ \sigma_i\in\mathrm{STAB}_n,\ \textstyle\sum_i x_i = 1 \Big\} \qquad (2)

where: R(ρ)\mathcal{R}(\rho) — robustness of magic, ≥1\ge1 with equality iff ρ∈STABn\rho\in\mathrm{STAB}_n; xix_i — real, possibly negative, coefficients of a pseudo-mixture; σi\sigma_i — pure stabilizer states. Reading: R\mathcal{R} is a norm-like distance, it is multiplicative-submultiplicative under tensor products, and R2\mathcal{R}^2 controls the sample cost of quasiprobability Monte-Carlo simulation. For pure states a second monotone, the stabilizer extent, is sharper for the fastest simulators. It relaxes the "must be a probability" constraint to a complex-amplitude decomposition and minimizes the squared ℓ1\ell_1 weight; its reciprocal is the stabilizer fidelity, the largest overlap with any stabilizer state.

ξ(∣ψ⟩)=min⁡{ (∑i∣ci∣)2:∣ψ⟩=∑ici ∣ϕi⟩},FS(∣ψ⟩)=max⁡∣ϕ⟩∈STAB∣⟨ϕ∣ψ⟩∣2(3)\xi(|\psi\rangle) = \min\Big\{\,\big(\textstyle\sum_i |c_i|\big)^2 : |\psi\rangle = \sum_i c_i\,|\phi_i\rangle\Big\},\qquad F_S(|\psi\rangle) = \max_{|\phi\rangle\in\mathrm{STAB}} |\langle\phi|\psi\rangle|^2 \qquad (3)

where: ξ(∣ψ⟩)\xi(|\psi\rangle) — stabilizer extent, ≥1\ge1, multiplicative for states of at most three qubits; cic_i — complex amplitudes over (non-orthogonal) stabilizer states; FSF_S — stabilizer fidelity. Reading: extent equals 11 on the free set and grows with magic; for a single qubit ξ=1/FS\xi=1/F_S, tying the two together. The most direct simulation-cost monotone is the stabilizer rank: the fewest stabilizer states needed to write ∣ψ⟩|\psi\rangle exactly. It is 11 exactly for stabilizer states and counts the "quantum branches" a classical simulator must track.

χ(∣ψ⟩)=min⁡{ r:∣ψ⟩=∑i=1rci ∣ϕi⟩, ∣ϕi⟩ stabilizer}(4)\chi(|\psi\rangle) = \min\Big\{\, r : |\psi\rangle = \sum_{i=1}^{r} c_i\,|\phi_i\rangle,\ |\phi_i\rangle \text{ stabilizer}\Big\} \qquad (4)

where: χ(∣ψ⟩)\chi(|\psi\rangle) — stabilizer rank, =1=1 iff stabilizer; rr — number of terms. Reading: a circuit with tt injected magic states simulates in time ∼χ(∣A⟩⊗t)⋅poly(n)\sim\chi(|A\rangle^{\otimes t})\cdot\mathrm{poly}(n), and because χ(∣A⟩⊗6)≤7\chi(|A\rangle^{\otimes6})\le7 one has χ(∣A⟩⊗t)≤2αt\chi(|A\rangle^{\otimes t})\le2^{\alpha t} with α≤log⁡276≈0.468<1\alpha\le\tfrac{\log_2 7}{6}\approx0.468<1. The phase-space route defines magic through a quasiprobability. In odd prime dimension the discrete Wigner function is the finite-field analogue of the continuous one, real and normalized but not always positive.

Wρ(u)=1d Tr ⁣[Au ρ],∑uWρ(u)=1(5)W_\rho(u) = \frac{1}{d}\,\mathrm{Tr}\!\big[A_u\,\rho\big],\qquad \sum_u W_\rho(u) = 1 \qquad (5)

where: Wρ(u)W_\rho(u) — Wigner quasiprobability at phase-space point u∈Zd×Zdu\in\mathbb{Z}_d\times\mathbb{Z}_d; AuA_u — phase-space point operator (Hermitian, Tr Au=1\mathrm{Tr}\,A_u=1); dd — qudit dimension, odd prime for the cleanest theory. Reading: WρW_\rho is a genuine probability distribution exactly when ρ\rho is a stabilizer state; any negative cell is a fingerprint of magic. The mana packages that negativity into an additive monotone — the logarithm of the total ℓ1\ell_1 mass of the Wigner function.

M(ρ)=log⁡ ⁣(∑u∣Wρ(u)∣)=log⁡(1+2 sn(ρ))(6)\mathcal{M}(\rho) = \log\!\Big(\sum_u \big|W_\rho(u)\big|\Big) = \log\big(1+2\,\mathrm{sn}(\rho)\big) \qquad (6)

where: M(ρ)\mathcal{M}(\rho) — mana, additive, ≥0\ge0, =0=0 iff Wρ≥0W_\rho\ge0; sn(ρ)=∑u: W<0∣Wρ(u)∣\mathrm{sn}(\rho)=\sum_{u:\,W<0}|W_\rho(u)| — the sum-negativity. Reading: since ∑uW=1\sum_u W=1, the total mass is ∑u∣W∣=1+2 sn\sum_u|W|=1+2\,\mathrm{sn}, so mana grows monotonically with the negative quasiprobability that any classical Monte-Carlo simulation must fight. For qubits, where the clean Wigner picture fails, a measurable substitute is the stabilizer Rényi entropy, defined from the fourth moments of the Pauli spectrum.

M2(∣ψ⟩)=−log⁡2 ⁣(1d∑P∈Pn⟨ψ∣P∣ψ⟩4),d=2n(7)M_2(|\psi\rangle) = -\log_2\!\Big( \tfrac1d\sum_{P\in\mathcal{P}_n} \langle\psi|P|\psi\rangle^{4}\Big),\quad d=2^n \qquad (7)

where: M2M_2 — the second stabilizer Rényi entropy, =0=0 iff stabilizer; Pn\mathcal{P}_n — the 4n4^n Pauli strings (phase-free); ⟨ψ∣P∣ψ⟩\langle\psi|P|\psi\rangle — Pauli expectation, the Pauli spectrum. Reading: the numbers ΞP=⟨P⟩2/d\Xi_P=\langle P\rangle^2/d form a probability distribution (∑PΞP=1\sum_P\Xi_P=1 for pure states), and M2M_2 is its collision (2-Rényi) entropy shifted so that stabilizer states — whose spectrum is flat on a subgroup — read zero; it is estimable from randomized measurements. Finally, the operational meaning of one unit of magic: gate teleportation consumes a single magic state to enact a TT using only Clifford operations, converting circuit nonlinearity into resource consumption.

∣ψ⟩⊗∣A⟩  → CNOT   → MZ   Sm T ∣ψ⟩,∣A⟩=T∣+⟩(8)|\psi\rangle\otimes|A\rangle \;\xrightarrow{\ \mathrm{CNOT}\ }\;\xrightarrow{\ M_Z\ }\; S^{m}\,T\,|\psi\rangle,\qquad |A\rangle=T|+\rangle \qquad (8)

where: ∣A⟩=T∣+⟩=(∣0⟩+eiπ/4∣1⟩)/2|A\rangle=T|+\rangle=(|0\rangle+e^{i\pi/4}|1\rangle)/\sqrt2 — the magic state consumed per TT; MZM_Z — a computational-basis measurement with outcome m∈{0,1}m\in\{0,1\}; SmS^m — a Clifford fix-up conditioned on mm. Reading: whichever outcome occurs, the net action is the non-Clifford TT up to a deterministically corrected Clifford, so the only non-Clifford ingredient in the entire machine is the offline magic state itself.

Derivation AWhy robustness is a magic monotone and a simulation cost

The goal is to show that the robustness R\mathcal{R} of equation (2) satisfies the three defining requirements of a resource measure — it equals one exactly on the free set, it never increases under any free (stabilizer) operation, and it is submultiplicative under tensor products — and then to convert that last property into the concrete statement that a quasiprobability Monte-Carlo simulation of a circuit costs a number of samples scaling as R2\mathcal{R}^2. Everything follows from the convex geometry of the stabilizer polytope, with no appeal to the particular structure of qubits.

Step 1. If ρ∈STABn\rho\in\mathrm{STAB}_n it is a genuine convex combination of stabilizer states, all xi≥0x_i\ge0 with ∑xi=1\sum x_i=1, so ∑∣xi∣=1\sum|x_i|=1 and R=1\mathcal{R}=1; conversely any decomposition forced to carry a negative coefficient has ∑∣xi∣>1\sum|x_i|>1. Why: this is faithfulness — R=1\mathcal{R}=1 marks the free set exactly, and the excess over one is a pure measure of non-stabilizerness.

Step 2. Let E\mathcal{E} be any stabilizer operation. Because E\mathcal{E} maps each σi∈STABn\sigma_i\in\mathrm{STAB}_n to another element of STABn\mathrm{STAB}_n, applying E\mathcal{E} to an optimal decomposition ρ=∑ixiσi\rho=\sum_i x_i\sigma_i yields a valid decomposition E(ρ)=∑ixi E(σi)\mathcal{E}(\rho)=\sum_i x_i\,\mathcal{E}(\sigma_i) with the same coefficients. Why: the free operations preserve the frame, so a decomposition of the input is automatically a decomposition of the output.

Step 3. Since this inherited decomposition has the same ∑∣xi∣\sum|x_i| and the minimization over all decompositions of E(ρ)\mathcal{E}(\rho) can only do better, R(E(ρ))≤R(ρ)\mathcal{R}(\mathcal{E}(\rho))\le\mathcal{R}(\rho) — the monotone axiom. Why: a resource that can be freely created would be worthless; monotonicity is precisely the guarantee that Cliffords cannot manufacture magic.

Step 4. Tensoring optimal decompositions of ρ\rho and τ\tau gives R(ρ⊗τ)≤R(ρ)R(τ)\mathcal{R}(\rho\otimes\tau)\le\mathcal{R}(\rho)\mathcal{R}(\tau); iterating, R(∣A⟩⊗t)≤R(∣A⟩)t=2t/2\mathcal{R}(|A\rangle^{\otimes t})\le\mathcal{R}(|A\rangle)^t=2^{t/2}. A quasiprobability simulator samples stabilizer states with probabilities ∣xi∣/∑j∣xj∣|x_i|/\sum_j|x_j|, and its estimator variance scales with the square of the ℓ1\ell_1 weight, so the sample count to fixed accuracy grows as R2≤2t\mathcal{R}^2\le2^{t}. Why: this is the cost of magic seen from the classical side — each magic state multiplies the simulation cost by R(∣A⟩)2=2\mathcal{R}(|A\rangle)^2=2.

Go deeper · Derivation B · 1 minThe single-qubit magic of the T state
Derivation BThe single-qubit magic of the T state

The goal is to compute, exactly and from first principles, the robustness, stabilizer extent, and stabilizer fidelity of the canonical unit of magic ∣A⟩=T∣+⟩|A\rangle=T|+\rangle, establishing the anchor numbers R(∣A⟩)=2\mathcal{R}(|A\rangle)=\sqrt2, ξ(∣A⟩)=4−22\xi(|A\rangle)=4-2\sqrt2, and FS(∣A⟩)=(2+2)/4F_S(|A\rangle)=(2+\sqrt2)/4, and to see why every single-qubit monotone reduces to plain geometry on the Bloch ball, where the six pure stabilizer states sit at the octahedron vertices ±x^,±y^,±z^\pm\hat x,\pm\hat y,\pm\hat z.

Step 1. The state ∣A⟩=T∣+⟩|A\rangle=T|+\rangle rotates ∣+⟩|+\rangle by π/4\pi/4 about z^\hat z, giving the equatorial Bloch vector r⃗A=12(x^+y^)\vec r_A=\tfrac1{\sqrt2}(\hat x+\hat y), directly above the midpoint of the octahedron edge joining x^\hat x and y^\hat y. Its ℓ1\ell_1 Bloch norm is 12+12=2>1\tfrac1{\sqrt2}+\tfrac1{\sqrt2}=\sqrt2>1, so it lies outside the free polytope. Why: the ℓ1\ell_1 norm exceeding one is the geometric certificate that ∣A⟩|A\rangle carries magic at all.

Step 2. For robustness, use the symmetric signed mixture of the two nearest stabilizer states ∣+⟩,∣+i⟩|+\rangle,|+i\rangle (Bloch x^,y^\hat x,\hat y) with weight uu each and their opposites ∣−⟩,∣−i⟩|-\rangle,|-i\rangle with weight ww each. Matching r⃗A\vec r_A needs u−w=12u-w=\tfrac1{\sqrt2}, and trace needs 2u+2w=12u+2w=1, so u=14+122u=\tfrac14+\tfrac1{2\sqrt2} and w=14−122<0w=\tfrac14-\tfrac1{2\sqrt2}<0. Why: a negative coefficient is unavoidable, and it is exactly the "pushing past the facet" that robustness charges for.

Step 3. The total weight is ∑∣xi∣=2u+2∣w∣=(12+12)+(12−12)=22=2\sum|x_i|=2u+2|w|=\big(\tfrac12+\tfrac1{\sqrt2}\big)+\big(\tfrac1{\sqrt2}-\tfrac12\big)=\tfrac2{\sqrt2}=\sqrt2, and this symmetric decomposition is optimal, so R(∣A⟩)=2\mathcal{R}(|A\rangle)=\sqrt2. More generally, for any single-qubit pure state R\mathcal{R} equals the Bloch ℓ1\ell_1 norm whenever that exceeds one. Why: this pins the robustness of one TT to 2\sqrt2, hence the per-gate Monte-Carlo factor R2=2\mathcal{R}^2=2.

Step 4. For the extent, decompose ∣A⟩=a∣+⟩+b∣+i⟩|A\rangle=a|+\rangle+b|+i\rangle; matching amplitudes gives ∣a∣=∣b∣=1−12|a|=|b|=\sqrt{1-\tfrac1{\sqrt2}}, so (∑∣ci∣)2=4(1−12)=4−22≈1.172\big(\sum|c_i|\big)^2=4\big(1-\tfrac1{\sqrt2}\big)=4-2\sqrt2\approx1.172. The nearest stabilizer state has FS=∣⟨+∣A⟩∣2=14∣1+eiπ/4∣2=2+24≈0.854F_S=|\langle+|A\rangle|^2=\tfrac14|1+e^{i\pi/4}|^2=\tfrac{2+\sqrt2}{4}\approx0.854, and indeed ξ=1/FS\xi=1/F_S. Why: the extent, not the robustness, sets the sharper stabilizer-rank simulation bound, and its value 4−224-2\sqrt2 corrects a common slip — the extent is at least one, never the 0.830.83 that a robustness-style number would give.

Go deeper · Derivation C · 1 minNegativity is magic — the discrete Hudson theorem and mana
Derivation CNegativity is magic — the discrete Hudson theorem and mana

The goal is to establish, for a single qudit of odd prime dimension dd, that non-stabilizerness and discrete-Wigner negativity are literally the same thing: a pure state has a nonnegative Wigner function if and only if it is a stabilizer state (the discrete Hudson theorem), and consequently the mana of equation (6) is a bona fide additive magic monotone that lower-bounds the cost of any positive-quasiprobability classical simulation. This is the phase-space counterpart of the polytope picture, and it is what makes "magic equals negativity" a theorem rather than a slogan.

Step 1. By the discrete Hudson theorem (Gross), for odd prime dd a pure state ∣ψ⟩|\psi\rangle has Wψ(u)≥0W_\psi(u)\ge0 for all uu if and only if ∣ψ⟩|\psi\rangle is a stabilizer state; the stabilizer states are exactly the nonnegative "delta-like" distributions on phase space. Why: this identifies the free set with the positive-Wigner states, so M=0\mathcal{M}=0 holds exactly on STAB\mathrm{STAB} and nowhere else among pure states.

Step 2. Clifford unitaries act on phase space as affine symplectic maps that merely permute the points uu; they therefore permute the values Wρ(u)W_\rho(u) and leave the ℓ1\ell_1 sum ∑u∣Wρ(u)∣\sum_u|W_\rho(u)| invariant. Why: mana cannot change under Cliffords, the first half of monotonicity — free unitaries move negativity around but never destroy or create it.

Step 3. Pauli measurements and the addition or partial trace of stabilizer ancillas act by nonnegative (stochastic) kernels on the Wigner distribution, which cannot increase total ℓ1\ell_1 mass; hence M\mathcal{M} is non-increasing under every free operation. Because WW factorizes over tensor products, M(ρ⊗τ)=M(ρ)+M(τ)\mathcal{M}(\rho\otimes\tau)=\mathcal{M}(\rho)+\mathcal{M}(\tau). Why: monotonicity plus additivity is what qualifies mana as a resource measure and lets it add up over many copies.

Step 4. A quasiprobability simulator that samples phase-space points pays a cost scaling with the total negativity, i.e. exponentially in sn(ρ)\mathrm{sn}(\rho); since M=log⁡(1+2 sn)\mathcal{M}=\log(1+2\,\mathrm{sn}), positive-Wigner (zero-mana) inputs are exactly the ones with an efficient positive simulation. Why: this closes the loop — mana simultaneously measures how non-stabilizer a state is and how hard it is to simulate classically by the phase-space method.

Limiting cases

CaseResultMeaning
Stabilizer stateR=1, ξ=1, FS=1, M=0, M2=0\mathcal{R}=1,\ \xi=1,\ F_S=1,\ \mathcal{M}=0,\ M_2=0Every monotone takes its free-state value; no magic, classically simulable — even if highly entangled.
Magic state ∣A⟩=T∣+⟩\lvert A\rangle=T\lvert+\rangleR=2, ξ=4−22≈1.172, M2=log⁡243≈0.415\mathcal{R}=\sqrt2,\ \xi=4-2\sqrt2\approx1.172,\ M_2=\log_2\tfrac43\approx0.415The canonical single-qubit unit; the TT-count of a circuit counts how many such units it burns.
Most magical single qubitr⃗=(1,1,1)/3, R=3≈1.732\vec r=(1,1,1)/\sqrt3,\ \mathcal{R}=\sqrt3\approx1.732The body-diagonal ∣T⟩\lvert T\rangle-type state maximizes single-qubit robustness; single-qubit magic is bounded, so magic must be amassed across many gates.
Tensor copieslog⁡2χ(∣ψ⟩⊗n)≤nlog⁡2χ(∣ψ⟩)\log_2\chi(\lvert\psi\rangle^{\otimes n})\le n\log_2\chi(\lvert\psi\rangle)Stabilizer rank is submultiplicative; χ(∣A⟩⊗6)≤7<26\chi(\lvert A\rangle^{\otimes6})\le7<2^6 gives the sub-exponential exponent α≈0.47\alpha\approx0.47.
Odd prime dimensionM(ρ)=0  ⟺  Wρ≥0\mathcal{M}(\rho)=0\iff W_\rho\ge0Discrete Hudson theorem: magic is exactly Wigner negativity, and positivity certifies an efficient classical simulation.
Asymptotic distillationR=lim⁡n→∞kn≤M(ρ)/M(∣A⟩)R=\lim_{n\to\infty}\tfrac{k}{n}\le M(\rho)/M(\lvert A\rangle)Any additive monotone caps the clean-per-noisy yield, a fundamental limit on distillation rate.

Worked examples

1 · A full magic audit of the T state (fully worked)

Compute the four standard magic numbers of ∣A⟩=T∣+⟩=(∣0⟩+eiπ/4∣1⟩)/2|A\rangle=T|+\rangle=(|0\rangle+e^{i\pi/4}|1\rangle)/\sqrt2: its robustness, extent, stabilizer fidelity, and second stabilizer Rényi entropy, and say what each one buys operationally.

Step 1. Bloch vector. ∣A⟩|A\rangle has ⟨X⟩=12\langle X\rangle=\tfrac1{\sqrt2}, ⟨Y⟩=12\langle Y\rangle=\tfrac1{\sqrt2}, ⟨Z⟩=0\langle Z\rangle=0, so r⃗A=12(x^+y^)\vec r_A=\tfrac1{\sqrt2}(\hat x+\hat y) with ℓ1\ell_1 norm 2\sqrt2. Robustness for a single qubit equals the Bloch ℓ1\ell_1 norm above one, so R(∣A⟩)=2≈1.414\mathcal{R}(|A\rangle)=\mathbf{\sqrt2\approx1.414}, and the Monte-Carlo cost per TT is R2=2\mathcal{R}^2=\mathbf{2}.

Step 2. Stabilizer fidelity. The nearest stabilizer state is ∣+⟩|+\rangle: FS=∣⟨+∣A⟩∣2=14∣1+eiπ/4∣2=14(2+2)=(2+2)/4≈0.854F_S=|\langle+|A\rangle|^2=\tfrac14|1+e^{i\pi/4}|^2=\tfrac14(2+\sqrt2)=\mathbf{(2+\sqrt2)/4\approx0.854}. The magic state overlaps the free set by 85%85\% — close, yet provably outside it.

Step 3. Extent. Decomposing ∣A⟩=a∣+⟩+b∣+i⟩|A\rangle=a|+\rangle+b|+i\rangle gives ∣a∣=∣b∣=1−12|a|=|b|=\sqrt{1-\tfrac1{\sqrt2}}, so ξ=(∣a∣+∣b∣)2=4(1−12)=4−22≈1.172\xi=\big(|a|+|b|\big)^2=4\big(1-\tfrac1{\sqrt2}\big)=\mathbf{4-2\sqrt2\approx1.172}, and consistently ξ=1/FS\xi=1/F_S (since 1/0.854=1.1721/0.854=1.172). The extent, not the robustness, sets the sharper stabilizer-rank simulation bound.

Step 4. Stabilizer Rényi entropy. The Pauli spectrum is ⟨I⟩=1, ⟨X⟩=⟨Y⟩=12, ⟨Z⟩=0\langle I\rangle=1,\ \langle X\rangle=\langle Y\rangle=\tfrac1{\sqrt2},\ \langle Z\rangle=0, so ∑P⟨P⟩4=1+14+14+0=32\sum_P\langle P\rangle^4=1+\tfrac14+\tfrac14+0=\tfrac32 and M2=−log⁡2 ⁣(1d∑P⟨P⟩4)=−log⁡2 ⁣(3/22)=−log⁡234=log⁡243≈0.415M_2=-\log_2\!\big(\tfrac1d\sum_P\langle P\rangle^4\big)=-\log_2\!\big(\tfrac{3/2}{2}\big)=-\log_2\tfrac34=\mathbf{\log_2\tfrac43\approx0.415} bits. All four agree that ∣A⟩|A\rangle is genuinely, and modestly, magical: R=2\mathcal{R}=\sqrt2, ξ=1.172\xi=1.172, FS=0.854F_S=0.854, M2=0.415M_2=0.415.

2 · Where the classical-simulability frontier falls

A near-Clifford circuit contains tt TT-gates. Estimate the classical simulation cost by the robustness (Monte-Carlo) route and by the stabilizer-rank route, and locate the frontier beyond which each becomes infeasible at a 2502^{50}-operation budget.

Step 1. Robustness route. The sample count scales as R(∣A⟩)2t=2t\mathcal{R}(|A\rangle)^{2t}=2^{t}. Setting 2t=2502^{t}=2^{50} gives a frontier at t≈50t\approx\mathbf{50} TT-gates for the Monte-Carlo method — and with a realistic accuracy prefactor, closer to t≈40t\approx40.

Step 2. Stabilizer-rank route. The cost scales as χ(∣A⟩⊗t)≲2αt\chi(|A\rangle^{\otimes t})\lesssim2^{\alpha t} with α≈0.47\alpha\approx0.47 from χ(∣A⟩⊗6)≤7\chi(|A\rangle^{\otimes6})\le7. Setting 20.47t=2502^{0.47 t}=2^{50} gives t≈50/0.47≈106t\approx50/0.47\approx\mathbf{106} in principle; memory for the ∼20.47t\sim2^{0.47t} stabilizer terms is the true limiter, which in practice caps demonstrations near t≈50t\approx50–6060.

Step 3. Compare at t=50t=50. Robustness needs ∼250≈1015\sim2^{50}\approx10^{15} samples — borderline infeasible; stabilizer rank needs ∼20.47×50=223.5≈1.2×107\sim2^{0.47\times50}=2^{23.5}\approx1.2\times10^{7} terms — easily feasible. The exponent 0.470.47 versus 11 is the whole difference. The magic-controlled exponent, not the raw TT-count, sets the frontier: sharper monotones (extent, low-rank decompositions) push classical simulation of near-Clifford circuits out to roughly 50 TT-gates.

Physics of the portrait

Magic resource theory is not one theorem but a convergence: a discrete phase space from quantum foundations, a no-go theorem about classical simulation, and a decade of monotones that turned "non-Cliffordness" into hard numbers.

Origins · 1 minresource theory of magic and how this was discovered
RT
resource theory of magic
framework crystallized 2012–2014 by Veitch, Mousavian, Gottesman and Emerson, on foundations by Wootters and Gross · non-stabilizerness as the fuel of quantum advantage

The pieces arrived out of order. In 1987 William Wootters built a discrete Wigner function on a finite phase space, giving quantum states over qudits a quasiprobability picture with a distinctly quantum feature — the distribution could go negative. A decade later Daniel Gottesman, sharpening an observation of Emanuel Knill, proved that Clifford circuits on stabilizer states are classically simulable, quietly establishing that the cheap half of a quantum computer is powerless by itself. The two threads met in 2006 when David Gross proved the discrete Hudson theorem: for odd prime dimension, a pure state has a nonnegative Wigner function exactly when it is a stabilizer state — so negativity and non-stabilizerness are the same property. Victor Veitch, Christopher Ferrie, David Gross and Joseph Emerson made this a resource theory (2012), and with Nima Mousavian and Gottesman (2014) named its central additive monotone, the mana. The operational monotones followed fast: Mark Howard and Earl Campbell's robustness of magic (2017) tied non-stabilizerness directly to a simulation-sample count; Sergey Bravyi, Graeme Smith and John Smolin, then Bravyi, David Gosset and collaborators, turned stabilizer rank and extent into practical simulators reaching tens of TT-gates; and Lorenzo Leone, Salvatore Oliviero and Alioscia Hamma introduced the stabilizer Rényi entropy (2022), a magic measure you can actually estimate in the lab. What began as a curiosity about which circuits a laptop can fake became the ruler that measures the cost of every quantum computation.

History
1987
— Wootters constructs a discrete Wigner function on finite phase space
2006
— Gross proves the discrete Hudson theorem: nonnegative Wigner function iff stabilizer, for odd prime d
2014
— Veitch, Mousavian, Gottesman and Emerson formalize the resource theory of stabilizer computation and the mana
2017
— Howard and Campbell introduce the robustness of magic as a classical-simulation monotone
2022
— Leone, Oliviero and Hamma define the measurable stabilizer Rényi entropy

Going further

Texts and papers. Nielsen & Chuang, Quantum Computation and Quantum Information, §10.5–10.6 (stabilizer formalism, Gottesman–Knill) · Preskill, Lecture Notes on Quantum Computation, ch. 7 · Watrous, The Theory of Quantum Information (channels and convex structure) · Gottesman & Chuang, Nature 402, 390 (1999) — gate teleportation · Bravyi & Kitaev, Phys. Rev. A 71, 022316 (2005) — magic states and distillation · Gross, J. Math. Phys. 47, 122107 (2006) — discrete Hudson theorem · Veitch, Mousavian, Gottesman & Emerson, New J. Phys. 16, 013009 (2014) — resource theory of stabilizer computation · Howard & Campbell, Phys. Rev. Lett. 118, 090501 (2017) — robustness of magic · Bravyi, Smith & Smolin, Phys. Rev. X 6, 021043 (2016); Bravyi, Browne, Calpin, Campbell, Gosset & Howard, Quantum 3, 181 (2019) — stabilizer rank and extent · Leone, Oliviero & Hamma, Phys. Rev. Lett. 128, 050402 (2022) — stabilizer Rényi entropy. The anchor numbers for ∣A⟩=T∣+⟩|A\rangle=T|+\rangle can be recovered directly: R(∣A⟩)=2\mathcal{R}(|A\rangle)=\sqrt2 follows from the symmetric {∣+⟩,∣+i⟩,∣−⟩,∣−i⟩}\{|+\rangle,|+i\rangle,|-\rangle,|-i\rangle\} pseudo-mixture together with the single-qubit identity R=∥r⃗∥1\mathcal{R}=\|\vec r\|_1; the extent ξ(∣A⟩)=4−22≈1.172\xi(|A\rangle)=4-2\sqrt2\approx1.172 and fidelity FS=(2+2)/4≈0.854F_S=(2+\sqrt2)/4\approx0.854 satisfy ξ=1/FS\xi=1/F_S (note that the occasionally cited value 2(2−1)≈0.832(\sqrt2-1)\approx0.83 cannot be the extent, since ξ≥1\xi\ge1 always); M2(∣A⟩)=log⁡243≈0.415M_2(|A\rangle)=\log_2\tfrac43\approx0.415 comes from the Pauli spectrum (1,12,12,0)(1,\tfrac1{\sqrt2},\tfrac1{\sqrt2},0); the mana identity ∑u∣W∣=1+2 sn\sum_u|W|=1+2\,\mathrm{sn} and the discrete Hudson theorem underpin the phase-space picture; χ(∣A⟩⊗6)≤7<26\chi(|A\rangle^{\otimes6})\le7<2^6 gives the exponent α=log⁡27/6≈0.468\alpha=\log_2 7/6\approx0.468; and the R2\mathcal{R}^2 Monte-Carlo scaling follows from the robustness monotone. The body-diagonal ∣T⟩|T\rangle with r⃗=(1,1,1)/3\vec r=(1,1,1)/\sqrt3 has R=3\mathcal{R}=\sqrt3, the single-qubit maximum.

Prerequisites. Stabilizer Formalism and Gottesman–Knill · Clifford Group · Magic State Distillation · Measurement-Based Quantum Computation. Leads to. Magic State Distillation · Topological Quantum Computation · Fibonacci and Ising Anyons · Classical Simulation of Quantum Circuits.

Ask the tutor: Ask me to re-derive R(∣A⟩)=2\mathcal{R}(|A\rangle)=\sqrt2 and ξ=4−22\xi=4-2\sqrt2 from the Bloch geometry, or to estimate the classical-simulation frontier for a circuit with a TT-count of your choosing.

What exactly is "magic," and why call it that?

Magic is non-stabilizerness — the property of a quantum state that cannot be created by Clifford gates, Pauli measurements, and stabilizer inputs alone. Geometrically it is the state's distance from the stabilizer polytope; in phase space it is the negativity of the discrete Wigner function. The name comes from Bravyi and Kitaev's "magic states," the resource that has to be injected because the free operations cannot produce it. It is called a resource in the technical sense of resource theory: fix what is free, and whatever is left over that cannot be freely made is the resource, quantified by monotones that free operations cannot increase.

Why are there so many different magic monotones instead of one?

Because different operational questions have different answers. The robustness R\mathcal{R} controls the sample cost of quasiprobability Monte-Carlo simulation (as R2\mathcal{R}^2); the stabilizer rank χ\chi and extent ξ\xi control exact low-rank simulation; the mana M\mathcal{M} controls the phase-space method in odd dimension; the stabilizer Rényi entropy M2M_2 is the one you can actually measure in an experiment. They all vanish on the free set and all respect monotonicity, but they are genuinely inequivalent — two states can be ranked oppositely by two of them — so "how much magic" only has a definite answer once you say for what purpose.

Is magic the same as entanglement?

No, and the cleanest proof is a counterexample in each direction. A large GHZ or cluster state is maximally entangled but is a stabilizer state, so it has exactly zero magic and is simulated efficiently by Gottesman–Knill. A single ∣A⟩=T∣+⟩|A\rangle=T|+\rangle has no entanglement at all — it is one qubit — yet it is a full unit of magic and is the resource that makes universal computation possible. Entanglement can be created freely by Cliffords (CNOTs make Bell and GHZ states), so it is not the thing that costs; non-stabilizerness is. The two are independent axes of "quantumness."

How does magic bound classical simulation cost from below?

The free operations — Cliffords, Pauli measurements, stabilizer inputs — are efficiently classically simulable by construction (that is the Gottesman–Knill theorem). So the only thing that can make a circuit classically hard is the non-Clifford resource injected into it, and a magic monotone measures exactly that resource. Concretely, a circuit with tt magic states simulates in time controlled by the magic of those states: ∼R2t\sim\mathcal{R}^{2t} for the Monte-Carlo method, ∼χ(∣A⟩⊗t)∼20.47t\sim\chi(|A\rangle^{\otimes t})\sim2^{0.47t} for the stabilizer-rank method. Zero magic means polynomial time; more magic means a provably larger simulation cost.

Why does the discrete Hudson theorem need odd dimension?

The clean statement "nonnegative Wigner function iff stabilizer state" holds for odd prime dd because the phase-space construction there is well behaved: the point operators form a nice frame and the Cliffords act as honest phase-space symplectic maps. For qubits (d=2d=2) the discrete Wigner function has known pathologies — contextuality obstructs a fully faithful nonnegative representation, and some stabilizer states can show negativity in naive constructions. That is exactly why the qubit theory leans on the polytope-based monotones (robustness, extent, stabilizer rank) and on the stabilizer Rényi entropy rather than on mana, which is at its cleanest for qudits of odd dimension.

Is the extent of the T state really about 1.17 and not 0.83?

Yes — the extent is 4−22≈1.1724-2\sqrt2\approx1.172, and any value below one would be impossible. The extent ξ(∣ψ⟩)=min⁡(∑i∣ci∣)2\xi(|\psi\rangle)=\min(\sum_i|c_i|)^2 over stabilizer decompositions equals exactly one on stabilizer states (write ∣ψ⟩=1⋅∣ψ⟩|\psi\rangle=1\cdot|\psi\rangle) and can only grow with magic, so ξ≥1\xi\ge1 always. The number 2(2−1)≈0.832(\sqrt2-1)\approx0.83 that sometimes appears is a robustness-flavoured quantity (an excess-over-one), not the extent itself. The direct two-term decomposition ∣A⟩=a∣+⟩+b∣+i⟩|A\rangle=a|+\rangle+b|+i\rangle gives (∣a∣+∣b∣)2=4−22(|a|+|b|)^2=4-2\sqrt2, and it equals 1/FS=4/(2+2)1/F_S=4/(2+\sqrt2), both comfortably above one.

Before this

Where this leads