- Open Access
Low-Overhead Magic State Distillation with Color Codes
PRX Quantum 6, 030317 – Published 30 July, 2025
DOI: https://doi.org/10.1103/ch5r-cnfq
Abstract
Fault-tolerant implementation of non-Clifford gates is a major challenge for achieving universal fault-tolerant quantum computing with quantum error-correcting codes. Magic state distillation is the most well-studied method for this but requires significant resources. Hence, it is crucial to tailor and optimize magic state distillation for specific codes from both logical- and physical-level perspectives. In this work, we perform such optimization for two-dimensional color codes, which are promising due to their higher encoding rates compared to surface codes, transversal implementation of Clifford gates, and efficient lattice surgery. We propose two carefully designed distillation schemes based on the 15-to-1 distillation circuit and lattice surgery, differing in their methods for handling faulty rotations. Our first scheme employs faulty measurement, achieving infidelities of for physical noise strength . To achieve lower infidelities, our second scheme integrates distillation with “cultivation” (a distillation-free approach to fault tolerantly prepare magic states through transversal Clifford measurements). Our second scheme achieves significantly lower infidelities (e.g., approximately at ), surpassing the capabilities of both cultivation and single-level distillation. Notably, to reach a given target infidelity, our schemes require approximately 2 orders of magnitude fewer resources than the previous best magic-state-distillation schemes for color codes.
Physics Subject Headings (PhySH)
Popular Summary
Quantum computers promise to solve certain problems exponentially faster than classical computers, but they face a major challenge: quantum information is extremely fragile and prone to errors. To protect against these errors, we use quantum error-correcting codes, which encode logical quantum bits into many physical ones. However, implementing certain crucial operations (called non-Clifford gates) while maintaining error protection has been notoriously resource intensive. Our work presents new methods that dramatically reduce these resource requirements for a promising type of error correction called color codes, making fault-tolerant quantum computing significantly more practical.
We developed two schemes for preparing “magic states” (special quantum states that enable these non-Clifford gates) through distillation. Think of magic states as prepackaged quantum resources that can be consumed to perform complex gates reliably. Our first scheme uses a technique called faulty T measurement, which is simple but has limitations on how pure the magic states can be. Our second scheme combines this with “cultivation” (a method for creating high-quality magic states, which is highly resource efficient but not scalable) achieving extremely low error rates. Remarkably, both schemes require about 100 times fewer resources than previous approaches for color codes.
While our schemes make color codes more competitive, they still require more resources than surface codes, the current leading approach. A key challenge lies in the decoding complexity of color codes arising from their complicated structure, which needs further investigation in future work.
Article Text
References (71)
- M. A. Nielsen and I. L. Chuang, Quantum Computation and Quantum Information (Cambridge University Press, Cambridge, New York, 2010), 10th ed.
- H. Bombin and M. A. Martin-Delgado, Topological quantum distillation, Phys. Rev. Lett. 97, 180501 (2006).
- H. Bombín, in Quantum Error Correction, edited by D. A. Lidar and T. A. Brun (Cambridge University Press, Cambridge, 2013), Chap. 19, p. 455.
- S. B. Bravyi and A. Y. Kitaev, Quantum codes on a lattice with boundary, ArXiv:quant-ph/9811052.
- E. Dennis, A. Kitaev, A. Landahl, and J. Preskill, Topological quantum memory, J. Math. Phys. 43, 4452 (2002).
- A. J. Landahl, J. T. Anderson, and P. R. Rice, Fault-tolerant quantum computing with color codes, ArXiv:1108.5738.
- M. S. Kesselring, J. C. Magdalena de la Fuente, F. Thomsen, J. Eisert, S. D. Bartlett, and B. J. Brown, Anyon condensation and the color code, PRX Quantum 5, 010342 (2024).
- F. Thomsen, M. S. Kesselring, S. D. Bartlett, and B. J. Brown, Low-overhead quantum computing with the color code, Phys. Rev. Res. 6, 043125 (2024).
- L. Postler, S. Heußen, I. Pogorelov, M. Rispler, T. Feldker, M. Meth, C. D. Marciniak, R. Stricker, M. Ringbauer, R. Blatt, P. Schindler, M. Müller, and T. Monz, Demonstration of fault-tolerant universal quantum gate operations, Nature 605, 675 (2022).
- C. Ryan-Anderson, et al., Implementing fault-tolerant entangling gates on the five-qubit code and the color code, ArXiv:2208.01863.
- D. Bluvstein, et al., Logical quantum processor based on reconfigurable atom arrays, Nature 626, 58 (2024).
- L. Postler, F. Butt, I. Pogorelov, C. D. Marciniak, S. Heußen, R. Blatt, P. Schindler, M. Rispler, M. Müller, and T. Monz, Demonstration of fault-tolerant Steane quantum error correction, PRX Quantum 5, 030326 (2024).
- N. Lacroix, et al., Scaling and logic in the color code on a superconducting quantum processor, ArXiv:2412.14256.
- A. Kubica and M. E. Beverland, Universal transversal gates with color codes: A simplified approach, Phys. Rev. A 91, 032330 (2015).
- A. J. Landahl and C. Ryan-Anderson, Quantum computing by color-code lattice surgery, ArXiv:1407.5103.
- S. Bravyi and A. Kitaev, Universal quantum computation with ideal Clifford gates and noisy ancillas, Phys. Rev. A 71, 022316 (2005).
- B. W. Reichardt, Quantum universality from magic states distillation applied to CSS codes, Quantum Inf. Process. 4, 251 (2005).
- A. M. Meier, B. Eastin, and E. Knill, Magic-state distillation with the four-qubit code, ArXiv:1204.4221.
- A. G. Fowler, M. Mariantoni, J. M. Martinis, and A. N. Cleland, Surface codes: Towards practical large-scale quantum computation, Phys. Rev. A 86, 032324 (2012).
- S. Bravyi and J. Haah, Magic-state distillation with low overhead, Phys. Rev. A 86, 052329 (2012).
- J. O’Gorman and E. T. Campbell, Quantum computation with realistic magic-state factories, Phys. Rev. A 95, 032338 (2017).
- M. E. Beverland, A. Kubica, and K. M. Svore, Cost of universality: A comparative study of the overhead of state distillation and code switching with color codes, PRX Quantum 2, 020341 (2021).
- D. Litinski, Magic state distillation: Not as costly as you think, Quantum 3, 205 (2019).
- C. Chamberland and K. Noh, Very low overhead fault-tolerant magic state preparation using redundant ancilla encoding and flag qubits, npj Quantum Inf. 6, 91 (2020).
- T. Itogawa, Y. Takada, Y. Hirano, and K. Fujii, Efficient magic state distillation by zero-level distillation, PRX Quantum 6, 020356 (2025).
- C. Gidney, N. Shutty, and C. Jones, Magic state cultivation: Growing T states as cheap as CNOT gates, ArXiv:2409.17595.
- S.-H. Lee, A. Li, and S. D. Bartlett, Color code decoder with improved scaling for correcting circuit-level noise, Quantum 9, 1609 (2025).
- A. G. Fowler, Two-dimensional color-code quantum computation, Phys. Rev. A 83, 042310 (2011).
- B. J. Brown, K. Laubscher, M. S. Kesselring, and J. R. Wootton, Poking holes and cutting corners to achieve Clifford gates with the surface code, Phys. Rev. X 7, 021029 (2017).
- M. S. Kesselring, F. Pastawski, J. Eisert, and B. J. Brown, The boundaries and twist defects of the color code and their applications to topological quantum computation, Quantum 2, 101 (2018).
- N. Fazio, R. Harper, and S. Bartlett, Logical noise bias in magic state injection, ArXiv:2401.10982.
- D. Litinski, A game of surface codes: Large-scale quantum computing with lattice surgery, Quantum 3, 128 (2019).
- E. Knill, Quantum computing with realistically noisy devices, Nature 434, 39 (2005).
- H. Goto, Minimizing resource overheads for fault-tolerant preparation of encoded states of the Steane code, Sci. Rep. 6, 19578 (2016).
- C. Chamberland and A. W. Cross, Fault-tolerant magic state preparation with flag qubits, Quantum 3, 143 (2019).
- A. Kitaev and L. Kong, Models for gapped boundaries and domain walls, Commun. Math. Phys. 313, 351 (2012).
- C. Gidney and C. Jones, New circuits and an open source decoder for the color code, ArXiv:2312.08813.
- C. Gidney, M. Newman, P. Brooks, and C. Jones, Yoked surface codes, Nat. Commun. 16, 4498 (2025).
- H. Bombín, M. Pant, S. Roberts, and K. I. Seetharam, Fault-tolerant postselection for low-overhead magic state preparation, PRX Quantum 5, 010302 (2024).
- S. C. Smith, B. J. Brown, and S. D. Bartlett, Mitigating errors in logical qubits, Commun. Phys. 7, 386 (2024).
- K. Sahay and B. J. Brown, Decoder for the triangular color code by matching on a Möbius strip, PRX Quantum 3, 010310 (2022).
- S.-H. Lee, msd-magic-state-prep-cycle-simulation, 2025, https://github.com/seokhyung-lee/msd-magic-state-prep-cycle-simulation.
- P. Sarvepalli and R. Raussendorf, Efficient decoding of topological color codes, Phys. Rev. A 85, 022317 (2012).
- N. Delfosse, Decoding color codes by projection onto surface codes, Phys. Rev. A 89, 012317 (2014).
- N. Maskara, A. Kubica, and T. Jochym-O’Connor, Advantages of versatile neural-network decoding for topological codes, Phys. Rev. A 99, 052351 (2019).
- C. Chamberland, A. Kubica, T. J. Yoder, and G. Zhu, Triangular color codes on trivalent graphs with flag qubits, New J. Phys. 22, 023019 (2020).
- N. Delfosse and N. H. Nickerson, Almost-linear time decoding algorithm for topological codes, Quantum 5, 595 (2021).
- E. Sabo, A. B. Aloshious, and K. R. Brown, Trellis decoding for qudit stabilizer codes and its application to qubit topological codes, ArXiv:2106.08251.
- A. Kubica and N. Delfosse, Efficient color code decoders in dimensions from toric code decoders, Quantum 7, 929 (2023).
- J. Zhang, Y.-C. Wu, and G.-P. Guo, Facilitating practical fault-tolerant quantum computing based on color codes, Phys. Rev. Res. 6, 033086 (2024).
- Y. Takada, Y. Takeuchi, and K. Fujii, Ising model formulation for highly accurate topological color codes decoding, Phys. Rev. Res. 6, 013092 (2024).
- L. Berent, L. Burgholzer, P.-J. H. S. Derks, J. Eisert, and R. Wille, Decoding quantum color codes with MaxSAT, Quantum 8, 1506 (2024).
- C. Gidney, Stability experiments: The overlooked dual of memory experiments, Quantum 6, 786 (2022).
- J. Ramette, J. Sinclair, N. P. Breuckmann, and V. Vuletić, Fault-tolerant connection of error-corrected qubits with noisy links, npj Quantum Inf. 10, 58 (2024).
- D. Litinski and F. v. Oppen, Lattice surgery with a twist: Simplifying Clifford gates of surface codes, Quantum 2, 62 (2018).
- A. G. Fowler, A. M. Stephens, and P. Groszkowski, High-threshold universal quantum computation on the surface code, Phys. Rev. A 80, 052312 (2009).
- A. M. Stephens, Fault-tolerant thresholds for quantum error correction with the surface code, Phys. Rev. A 89, 022321 (2014).
- B. Heim, K. M. Svore, and M. B. Hastings, Optimal circuit-level decoding for surface codes, ArXiv:1609.06373.
- O. Higgott, T. C. Bohdanowicz, A. Kubica, S. T. Flammia, and E. T. Campbell, Improved decoding of circuit noise and fragile boundaries of tailored surface codes, Phys. Rev. X 13, 031007 (2023).
- Note that these thresholds are scaling thresholds, not crossing thresholds. That is, they correspond to the parameter in the subthreshold ansatz given by Eq. (11), rather than the intersection points of curves for different code distances. These two thresholds generally differ, as the ansatz breaks down near threshold. Although the crossing threshold is commonly used as a standard definition in the literature, the scaling threshold is more relevant in the low-error regime as we consider in our analysis.
- J. Zhang, Y.-C. Wu, and G.-P. Guo, Facilitating practical fault-tolerant quantum computing based on color codes, Phys. Rev. Res. 6, 033086 (2024).
- H. Zhou, C. Zhao, M. Cain, D. Bluvstein, C. Duckering, H.-Y. Hu, S.-T. Wang, A. Kubica, and M. D. Lukin, Algorithmic fault tolerance for fast quantum computing, ArXiv:2406.17653.
- N. Fazio, M. Webster, and Z. Cai, Low-overhead magic state circuits with transversal CNOTs, ArXiv:2501.10291.
- S.-H. Lee, Color-code-msd-data, 2025, https://github.com/seokhyung-lee/color-code-msd-data.
- S.-H. Lee, Color-code-stim, 2024, https://github.com/seokhyung-lee/color-code-stim.
- Assuming , there exist shortest paths for diagonal error strings, where and . For vertical error strings (causing or errors), there are approximately shortest paths. Comparing these two values, for or , and for or . In general, we obtain from the inequality . Hence, although diagonal and vertical error strings have the same minimum weight, they differ significantly in their frequency of occurrence, assuming that circuit-level noise acts at similar levels in both directions.
- C. Gidney, Stim: A fast stabilizer circuit simulator, Quantum 5, 497 (2021).
- O. Higgott, PyMatching: A python package for decoding quantum codes with minimum-weight perfect matching, ACM Trans. Quantum Comput. 3, 16 (2022).
- A. G. Fowler and C. Gidney, Low overhead quantum computation using lattice surgery, ArXiv:1808.06709.
- B. Efron and G. Gong, A leisurely look at the bootstrap, the jackknife, and cross-validation, Am. Stat. 37, 36 (1983).
- P. Virtanen, et al., SciPy 1.0 Contributors, SciPy 1.0: Fundamental Algorithms for Scientific Computing in Python, Nat. Methods 17, 261 (2020).
