Skip to main content
KetQat

Appearance

Problem · research

Optimal overhead of magic state distillation

Asymptotically, magic states for qubits can be distilled with constant overhead (exponent zero), shown in 2024. Open are the optimal constants and the minimum cost of protocols small enough to run, where lower bounds exist only for restricted protocol classes.

Open problemMachine-checkedUpdated 2026-12-01 · last verified 2026-12-01

AI-assisted text, machine-checked, not yet reviewed by a person. Citations resolve and an automated pass compared the statements with the cited sources. That is not peer review; check the sources for anything you depend on.

Problem Statement

How few noisy magic states, and how little Clifford work, are needed to produce one magic state of error at most ε\varepsilon? Asymptotically the question is settled: for qubits the overhead can be made constant, independent of ε\varepsilon (Wills, Hsieh and Yamasaki). What remains open is (a) the optimal value of that constant and of related rates, and (b) the true minimum cost of protocols at the sizes and error targets that real fault-tolerant computers use. How much of (a) is settled depends on how cost is counted. Fang and Liu note that the 2024 constructions left the optimal constant open, and then prove that with a catalyst a single noisy input per output suffices in each run, at the price of a constant success probability below one (Corollary 8 of arXiv v3). That fixes the constant at 1 when overhead means inputs consumed per run of a catalytic one-shot protocol, with the catalyst itself not counted. It does not lower the expected number of inputs consumed per successful output, the measure used below, so for that measure, and for protocols without a catalyst, the optimal constant is still open. Gaggioli and Mareček (preprint) state that the minimum number of noisy inputs is known only for restricted protocols.

Mathematical Formulation

Fix an input error rate pp below threshold. Let C(ε)C(\varepsilon) be the expected number of noisy input states consumed per output state of error at most ε\varepsilon. Iterated code-based protocols satisfy C(ε)=O(log⁡γ(1/ε))C(\varepsilon) = O(\log^{\gamma}(1/\varepsilon)):

EquationMagic state distillation overhead exponentEstablished result
C(ε)  =  O ⁣(log⁡γ(1/ε)),γ  =  log⁡(n/k)log⁡dC(\varepsilon) \;=\; O\!\big( \log^{\gamma}(1/\varepsilon) \big), \qquad \gamma \;=\; \frac{\log (n/k)}{\log d}

C(ε)C(\varepsilon) is the number of noisy input magic states consumed per output state of error rate at most ε\varepsilon, for a fixed input error rate below threshold. The parametrisation by γ\gamma is due to Bravyi and Haah.

Derivation. After rr rounds the error obeys pr≤c pr−1 dp_{r} \le c\, p_{r-1}^{\,d}. With c′=c1/(d−1)c' = c^{1/(d-1)} this reads c′pr≤(c′pr−1)dc' p_r \le (c' p_{r-1})^{d}, so c′pr≤(c′p)drc' p_r \le (c' p)^{d^{r}}. Each round consumes n/kn/k inputs per output, so rr rounds consume (n/k)r(n/k)^{r}. The target pr≤εp_r \le \varepsilon is met once dr≥ln⁡(1/c′ε)/ln⁡(1/c′p)d^{r} \ge \ln(1/c'\varepsilon) / \ln(1/c'p), and since (n/k)r=(dr)log⁡d(n/k)(n/k)^{r} = (d^{r})^{\log_d (n/k)}, the smallest such rr gives

C(ε)  ≤  (d⋅ln⁡(1/c′ε)ln⁡(1/c′p))γ,γ=log⁡dnk.C(\varepsilon) \;\le\; \left( d \cdot \frac{\ln (1/c'\varepsilon)}{\ln (1/c'p)} \right)^{\gamma} , \qquad \gamma = \log_d \frac{n}{k} .

Values.

Protocol Code parameters γ\gamma
15-to-1 (Bravyi and Kitaev) [[15,1,3]][[15,1,3]] log⁡315≈2.46\log_3 15 \approx 2.46
10-to-2 (Meier, Eastin and Knill) 10 inputs, 2 outputs, d=2d = 2 log⁡25≈2.32\log_2 5 \approx 2.32
Triorthogonal family (Bravyi and Haah) [[3k+8,k,2]][[3k+8, k, 2]] →log⁡23≈1.58\to \log_2 3 \approx 1.58
Multilevel (Jones) concatenated, 2r+12^{r}+1 inputs for error O(p2r)O(p^{2^{r}}) →1\to 1
Punctured Reed–Muller (Hastings and Haah) block length about 2582^{58} for γ<1\gamma < 1 <0.678< 0.678
Qudit codes (Krishna and Tillich) qudits of growing dimension →0\to 0
Algebraic-geometry codes (Wills, Hsieh and Yamasaki) qubits, via 2102^{10}-dimensional qudits 00

A value γ=0\gamma = 0 means a constant number of inputs per output, independent of ε\varepsilon. The exponent describes asymptotic input counts only; it says nothing about the size of the blocks needed or the cost of the Clifford operations.

Holds when
  • Noiseless stabilizer operations and independent inputs of error rate pp.
  • One round maps nn inputs of error pp to kk outputs of error at most c pdc\,p^{d}, and the input error is below the protocol's threshold, c1/(d−1)p<1c^{1/(d-1)} p < 1.
  • Outputs of one round are fed to the next in such a way that the inputs of each block remain independent; rejection probabilities are neglected, which is valid at leading order.

The sub-questions:

  1. Constant. For protocols with γ=0\gamma = 0, what is inf⁡protocolslim sup⁡ε→0C(ε)\inf_{\text{protocols}} \limsup_{\varepsilon \to 0} C(\varepsilon) for TT or CCZCCZ states on qubits, and how does it depend on pp? Here CC counts expected inputs per successful output, without a catalyst, and Clifford work is free. If instead a catalyst is allowed, its size is not charged, and the cost is the number of inputs consumed in one run of a one-shot protocol whose success probability may be below one, the answer is 1: Fang and Liu prove this (Theorem 7 and Corollary 8 of arXiv v3) by converting the deterministic constant-overhead protocol of Wills, Hsieh and Yamasaki. Their conversion does not reduce the expected input count, so the question as posed here remains open.
  2. Finite size. For fixed target order dd (output error O(pd)O(p^{d})), what is the smallest number nn of inputs per output over all stabilizer protocols?
  3. Space-time cost. Including the Clifford circuits, what is the minimum logical (or physical) space-time volume per output at, say, ε=10−12\varepsilon = 10^{-12} and physical error 10−310^{-3}?

Background

Magic states supply the non-Clifford gates that stabilizer codes cannot implement transversally. Bravyi and Kitaev introduced distillation with the 15-to-1 protocol:

Algorithm15-to-1 magic state distillationEstablished result

The code. Let MM be the 4×154 \times 15 binary matrix whose columns are the 15 non-zero vectors of F24\F_2^{4}. The [[15,1,3]][[15,1,3]] punctured Reed–Muller code has XX-type stabilizers X(h)=∏jXjhjX(h) = \prod_j X_j^{h_j} for hh in the row space of MM (four generators of weight 8), ZZ-type stabilizers Z(g)Z(g) for every even-weight gg with Mg=0M g = 0 (ten generators), and logical operators Xˉ=X⊗15\bar{X} = X^{\otimes 15}, Zˉ=Z⊗15\bar{Z} = Z^{\otimes 15}. Every basis string in ∣0L⟩\ket{0_L} has weight 0 or 8 and every basis string in ∣1L⟩\ket{1_L} has weight 7 or 15, so T⊗15T^{\otimes 15} acts as the logical T†T\dagg.

Input. Fifteen noisy T states of error rate pp.

Procedure.

  1. Prepare the encoded state ∣+L⟩\ket{+_L} with stabilizer operations.
  2. Apply TT to each of the 15 qubits by state injection, consuming one input state per qubit. With ideal inputs the block is now in TL†∣+L⟩T_L\dagg \ket{+_L}; an input with a ZZ error leaves a ZZ error on its qubit.
  3. Measure the four XX-type stabilizer generators. If any outcome is −1-1, discard the block and start again.
  4. Decode the block onto a single qubit with a Clifford circuit and apply SS, which maps T†∣+⟩T\dagg\ket{+} to ∣T⟩\ket{T}.

Output. One T state with error rate pout=35p3+O(p4)p_{\mathrm{out}} = 35 p^{3} + O(p^{4}), produced with probability 1−15p+O(p2)1 - 15 p + O(p^{2}); see the output-error record for the exact expressions and their derivation.

Why it works. Only ZZ errors occur. A pattern of ZZ errors passes the checks exactly when it is a codeword of the [15,11,3][15,11,3] Hamming code, and it harms the output exactly when that codeword has odd weight. The lightest such patterns have weight 3, and there are 35 of them.

Equivalent form. Bravyi and Kitaev describe the protocol as measuring the stabilizers of the code directly on the fifteen input states and decoding. The encode-then-inject form above is the one used by Bravyi and Haah for general codes with a transversal TT and gives the same output error.

Cost. Fifteen inputs per attempt and, for small pp, close to fifteen per output. Repeating the protocol on its own outputs for rr rounds cubes the error each time and uses 15r15^{r} inputs per output; the resulting scaling is the distillation overhead exponent with γ=log⁡315≈2.46\gamma = \log_3 15 \approx 2.46.

Holds when
  • Stabilizer operations (Clifford gates, Pauli preparations and measurements) are noiseless.
  • The fifteen input states are independent, each a T state with a ZZ error of probability pp (the twirled form).

Bravyi and Haah introduced triorthogonal codes and the exponent γ\gamma, reached γ→log⁡23\gamma \to \log_2 3, and conjectured that no protocol has γ<1\gamma < 1. That conjecture was refuted by Hastings and Haah.

Significance

Resource estimates for useful algorithms are often dominated by the cost of non-Clifford gates. The exponent controls asymptotic scaling, but practical factories run at small sizes where constants and Clifford costs decide everything (Litinski).

Why It Remains Difficult

  • Asymptotic constructions are huge. The smallest Hastings–Haah code with γ<1\gamma < 1 has about 2582^{58} qubits (Hastings and Haah); the constant-overhead protocol of Wills, Hsieh and Yamasaki uses algebraic-geometry codes over 2102^{10}-dimensional qudits, each realised with 10 qubits.
  • Lower bounds need a protocol model. General no-go theorems bound purification error (Fang and Liu), but tight lower bounds on input counts were known only for restricted classes until recently, and the 2026 results are preprints.
  • Several figures of merit. Overhead exponent, asymptotic rate, input count at fixed order, and space-time volume are related but not equivalent: Ehara and Takagi (preprint) give protocols with exponent larger than one whose asymptotic rate is nevertheless arbitrarily close to linear.
  • Batch size. Code-based low-overhead protocols need very large batches; catalysts can reduce this (Fang and Liu).

Assumptions

Most asymptotic results assume perfect Clifford operations. Practical results assume a specific code (usually the surface code), a circuit noise model, and lattice-surgery costs.

Known Results

History of the exponent (qubit TT or CCZCCZ states unless stated).

Year Result Source
2005 15-to-1, γ=log⁡315≈2.46\gamma = \log_3 15 \approx 2.46 Bravyi and Kitaev
2012 Triorthogonal codes, γ→log⁡23≈1.58\gamma \to \log_2 3 \approx 1.58; conjecture γ≥1\gamma \ge 1 Bravyi and Haah
2013 Multilevel distillation, γ→1\gamma \to 1; 10-to-2 protocol Jones; Meier, Eastin and Knill
2018 Punctured Reed–Muller codes, γ<0.678\gamma < 0.678, refuting the γ≥1\gamma \ge 1 conjecture Hastings and Haah
2019 γ\gamma arbitrarily close to 0 for qudits of growing dimension Krishna and Tillich
2024 (arXiv), 2025 (journal) γ=0\gamma = 0 (constant overhead) for qubits Wills, Hsieh and Yamasaki
2024 (arXiv), 2025 (STOC) Asymptotically good qubit codes with transversal CCZCCZ, giving γ→0\gamma \to 0 and constant space overhead Golowich and Guruswami; Nguyen

The three 2024 qubit results were posted within a week of each other in August 2024. Haah et al. earlier gave protocols with low space overhead and an asymptotic input count that they conjecture to be optimal, in a different sense.

Smaller alphabets and finite sizes (preprints). Cervia et al. construct good triorthogonal codes allowing constant space overhead with qudit dimension 64 and identify a [[42,14,6]]64[[42,14,6]]_{64} code. Gong et al. build compact protocols over binary extension fields, for example distilling one CSCS state from four at distance 2 using four logical qubits, and report better space-time performance than prior protocols in most cases they study.

Lower bounds. Gaggioli and Mareček (preprint) show that, for tolerating input faults, any stabilizer protocol is no better than projecting onto a single stabilizer code; by exhaustive search they find that quadratic error suppression for one TT state needs exactly nine inputs, that the eight-input CCZCCZ factory is optimal, and that suppression to order dd needs at least 2d2d inputs per TT state.

Catalytic one-shot distillation. Fang and Liu call a protocol one-shot catalytic if it maps nn noisy inputs and a catalyst state to one output of error at most ε\varepsilon, returning the catalyst exactly on its own subsystem; its overhead is the least such nn, and the catalyst is not counted. They prove (Theorem 3 of arXiv v3) that any protocol turning nn inputs into mm outputs, each of error at most ε\varepsilon, with success probability pp, yields a one-shot catalytic protocol with overhead at most ⌈n/m⌉\lceil n/m \rceil and the same ε\varepsilon and pp. Applied to the deterministic constant-overhead protocol of Wills, Hsieh and Yamasaki, this gives one-shot catalytic magic state distillation with constant overhead and success probability 1 for every target error (Corollary 6), so the batch size no longer has to grow as ε→0\varepsilon \to 0; the Ω(log⁡(1/ε))\Omega(\log(1/\varepsilon)) lower bound on one-shot overhead applies to protocols without a catalyst. Their Theorem 7 trades success probability for overhead: for 1≤k≤n/m1 \le k \le n/m there is a catalytic protocol using kk inputs per run with success probability pm/⌈n/k⌉pm/\lceil n/k \rceil, and for k=1k = 1 one input per output suffices with success probability pm/npm/n, a constant (m/nm/n) for the deterministic protocol of Wills, Hsieh and Yamasaki (Corollary 8). Counted as expected inputs per successful output, the k=1k = 1 protocol costs n/(pm)n/(pm), which is no less than the n/mn/m of the protocol it is built from; Corollary 8 therefore settles the per-run catalytic constant but not the expected-consumption constant of sub-question 1. The authors also note that their catalysts are typically about as large as the underlying multi-copy protocol, and leave smaller catalysts and bounds on catalyst size open.

Practical factories and alternatives. Low-distance encoding inside factories (Litinski), catalysed CCZCCZ-to-TT conversion (Gidney and Fowler) and magic state cultivation inside a surface-code patch, which its authors suggest may make further distillation unnecessary in practice (Gidney, Shutty and Jones, preprint).

Existing Approaches

Codes with transversal non-Clifford gates (triorthogonal, punctured Reed–Muller, algebraic-geometry, multiplication-friendly constructions); concatenation and multilevel schemes; catalysis; cultivation and other code-growing schemes; numerical searches over small codes.

Failed Approaches

The conjecture of Bravyi and Haah that γ≥1\gamma \ge 1 is necessary was false (Hastings and Haah), so lower-bound arguments based on it do not apply.

Current Limitations

Asymptotically optimal protocols are far too large for near-term use, and practical protocol design relies on resource-estimation pipelines that differ between groups. The 2026 lower bounds apply to stabilizer protocols and fixed small orders.

Possible Research Directions

  • Lower bounds on the constant in constant-overhead distillation, measured as expected inputs per successful output, or with the catalyst's size charged.
  • Extend the exhaustive optimality results of Gaggioli and Mareček to higher orders and to multi-output protocols.
  • Small good codes over small extension fields that beat 15-to-1 and 8-to-CCZ factories in space-time volume at realistic noise.
  • Joint optimisation of cultivation and distillation.

Required Knowledge

Magic state distillation, logical gates including the Clifford hierarchy and transversal gates, fault-tolerant quantum computing, resource theories, and algebraic coding theory.

Required Computational Resources

Input-output error polynomials for codes up to about 50 qubits: a laptop. Exhaustive searches over small codes and circuit-level simulations of factories: a workstation or small cluster.

Suggested Experiments

  1. Compute the output error polynomial of the 15-to-1 and a triorthogonal [[3k+8,k,2]][[3k+8, k, 2]] protocol and verify their exponents numerically.
  2. Reproduce the nine-input bound for quadratic suppression by enumerating small stabilizer codes with transversal TT.
  3. Compare a 15-to-1 factory and a cultivation estimate in logical space-time volume at p=10−3p = 10^{-3}, using published cost models.

Baseline Methods

15-to-1 factories, 8-to-CCZ factories, Litinski's compact factories, Gidney–Fowler catalysed factories, magic state cultivation.

Evaluation Metrics

Inputs per output at fixed ε\varepsilon and pp; overhead exponent; asymptotic rate; logical space-time volume per output; threshold input error rate.

Success Criteria

Full solution: matching upper and lower bounds on the minimum cost of producing qubit magic states, both asymptotically (the optimal constant) and for finite target errors under stated noise models. Recognised partial progress: tighter lower bounds for general stabilizer protocols, and constant-overhead protocols of practical size.

Mentions

Open in the knowledge graph

Contributions about this problem

Nobody has published a contribution about it yet.

Publish work on this problemPropose a correction to this page

References

  1. Sergei Bravyi, Alexei Kitaev (2005). Universal quantum computation with ideal Clifford gates and noisy ancillas. Physical Review A 71, 022316. doi:10.1103/PhysRevA.71.022316arXiv:quant-ph/0403025
  2. Sergey Bravyi, Jeongwan Haah (2012). Magic-state distillation with low overhead. Physical Review A 86, 052329. doi:10.1103/PhysRevA.86.052329arXiv:1209.2426
  3. Adam M. Meier, Bryan Eastin, Emanuel Knill (2013). Magic-state distillation with the four-qubit code. Quantum Information and Computation 13(3-4), 195-209. doi:10.26421/QIC13.3-4-2arXiv:1204.4221
  4. Cody Jones (2013). Multilevel distillation of magic states for quantum computing. Physical Review A 87, 042305. doi:10.1103/PhysRevA.87.042305arXiv:1210.3388
  5. Jeongwan Haah, Matthew B. Hastings, D. Poulin, D. Wecker (2017). Magic state distillation with low space overhead and optimal asymptotic input count. Quantum 1, 31. doi:10.22331/q-2017-10-03-31arXiv:1703.07847
  6. Matthew B. Hastings, Jeongwan Haah (2018). Distillation with Sublogarithmic Overhead. Physical Review Letters 120, 050504. doi:10.1103/PhysRevLett.120.050504arXiv:1709.03543
  7. Anirudh Krishna, Jean-Pierre Tillich (2019). Towards Low Overhead Magic State Distillation. Physical Review Letters 123, 070507. doi:10.1103/PhysRevLett.123.070507arXiv:1811.08461
  8. Adam Wills, Min-Hsiu Hsieh, Hayata Yamasaki (2025). Constant-overhead magic state distillation. Nature Physics 21, 1842-1846. doi:10.1038/s41567-025-03026-0arXiv:2408.07764
  9. Louis Golowich, Venkatesan Guruswami (2025). Asymptotically Good Quantum Codes with Transversal Non-Clifford Gates. Proceedings of the 57th Annual ACM Symposium on Theory of Computing (STOC 2025), 707-717. doi:10.1145/3717823.3718234arXiv:2408.09254
  10. Quynh T. Nguyen (2025). Good binary quantum codes with transversal CCZ gate. Proceedings of the 57th Annual ACM Symposium on Theory of Computing (STOC 2025), 697-706. doi:10.1145/3717823.3718186arXiv:2408.10140
  11. Michael J. Cervia, Henry Lamm, Diyi Liu, … Shuchen Zhu (2025). Magic state distillation using asymptotically good codes on qudits. arXiv:2512.21874
  12. Kun Fang, Zi-Wen Liu (2020). No-go theorems for quantum resource purification. Physical Review Letters 125, 060405. doi:10.1103/PhysRevLett.125.060405arXiv:1909.02540
  13. Kun Fang, Zi-Wen Liu (2026). One-shot distillation with constant overhead using catalysts. Nature Communications 17, 6010. doi:10.1038/s41467-026-72686-0arXiv:2410.14547
  14. Koki Ehara, Ryuji Takagi (2026). Asymptotic magic state distillation with almost linear rate. arXiv:2605.30108
  15. Llorenç Balada Gaggioli, Jakub Mareček (2026). The limits of magic-state distillation. arXiv:2610.31115
  16. Anqi Gong, Christopher A. Pattison, Patrick Rall, Adam Wills (2026). Magic state distillation via codes over binary extension fields. arXiv:2608.09727
  17. Daniel Litinski (2019). Magic State Distillation: Not as Costly as You Think. Quantum 3, 205. doi:10.22331/q-2019-12-02-205arXiv:1905.06903
  18. Craig Gidney, Austin G. Fowler (2019). Efficient magic state factories with a catalyzed |CCZ> to 2|T> transformation. Quantum 3, 135. doi:10.22331/q-2019-04-30-135arXiv:1812.01238
  19. Craig Gidney, Noah Shutty, Cody Jones (2024). Magic state cultivation: growing T states as cheap as CNOT gates. arXiv:2409.17595

Contributors

  • KetQat maintainers · @ketqatConceptualization; Supervision (CRediT roles)
  • Claude (AI drafting assistant)Writing, original draft (CRediT roles)

Review history

  1. Automated source check · Pass with notes · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)

    Whole record checked; the embedded equation and algorithm records carry their own states. Catalysis text (Problem Statement, sub-question 1, 'Catalytic one-shot distillation', research direction) compared with the full text of Fang-Liu arXiv:2410.14547v3: Definitions 1-2 (catalyst returned exactly as a marginal, not counted), Omega(log(1/eps)) one-shot limit of Ref. [11], Theorem 3, Corollary 6, Theorem 7 (success probability pm/ceil(n/k)), Corollary 8, the remark that the 2024 works left the optimal constant open, and the Discussion on catalyst size; expected-cost comparison n/(pm) re-derived. Exponents log_3 15 = 2.46 and log_2 3 = 1.58 recomputed; other statements compared with the arXiv abstracts of Bravyi-Kitaev quant-ph/0403025, Bravyi-Haah 1209.2426, Jones 1210.3388 (2^r + 1 inputs for order 2^r, gamma -> 1), Meier-Eastin-Knill 1204.4221 (10-to-2), Haah et al. 1703.07847, Hastings-Haah 1709.03543 (gamma < 0.678, about 2^58 qubits), Krishna-Tillich 1811.08461, Wills-Hsieh-Yamasaki 2408.07764 (2^10-dimensional qudits as 10 qubits), Golowich-Guruswami 2408.09254, Nguyen 2408.10140 (posted 14-19 Aug 2024), Cervia et al. 2512.21874, Fang-Liu 1909.02540, Ehara-Takagi 2605.30108, Gaggioli-Marecek 2610.31115, Gong et al. 2608.09727, Litinski 1905.06903, Gidney-Fowler 1812.01238, Gidney-Shutty-Jones 2409.17595; Bravyi-Haah as source of the gamma >= 1 conjecture confirmed via Fang-Liu ref. [7]. Crossref checked for Fang-Liu (Nat. Commun. 17, 6010), Wills-Hsieh-Yamasaki (Nat. Phys. 21, 1842-1846) and the two STOC 2025 papers. Open status: arXiv API search (magic state distillation with overhead/optimal/lower bound, 40 newest, to Nov 2026) found no claimed determination of the optimal constant or of general lower bounds.

    Three corrections. (1) Theorem 7 at k = 1 gives success probability pm/n, not m/n; m/n holds for the deterministic protocol behind Corollary 8, now stated so. (2) Golowich-Guruswami and Nguyen were labelled 2024 preprints; both appeared in STOC 2025 (DOIs 10.1145/3717823.3718234 and 10.1145/3717823.3718186): table row relabelled and the two reference entries updated with venue, DOI and peer-reviewed status. (3) Haah et al. was said to have an optimal asymptotic input count; their abstract says it is conjectured optimal, now stated so.

Revision history

  1. 2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e
  2. 2026-11-30KetQat Commons: free learning paths, knowledge records, research problems, literature intake (#14)571c9b10

Current revision 31747181e601ddba. Source file knowledge/records/problem/optimal-magic-state-distillation-overhead.md in the content repository (readable there once it is public).