Reuse & Permissions

It is not necessary to obtain permission to reuse this article or its components as it is available under the terms of the Creative Commons Attribution 4.0 International license. This license permits unrestricted use, distribution, and reproduction in any medium, provided attribution to the author(s) and the published article's title, journal citation, and DOI are maintained. Please note that some figures may have been included with permission from other third parties. It is your responsibility to obtain the proper permission from the rights holder directly for these figures.

Export citation

Export citation

Choose format for download:

Download Citation
  • Open Access

Low-Overhead Magic State Distillation with Color Codes

Seok-Hyung Lee1,*, Felix Thomsen1, Nicholas Fazio1, Benjamin J. Brown2,3, and Stephen D. Bartlett1,†

  • 1Centre for Engineered Quantum Systems, School of Physics, The University of Sydney, Sydney, New South Wales 2006, Australia
  • 2T. J. Watson Research Center, IBM Quantum, Yorktown Heights, New York 10598, USA
  • 3IBM Denmark, Sundkrogsgade 11, Copenhagen 2100, Denmark

  • *Contact author: seokhyung.lee@sydney.edu.au
  • †Contact author: stephen.bartlett@sydney.edu.au

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 T measurement, achieving infidelities of O(p3) for physical noise strength p. 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 2×10−16 at p=10−3), 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.

View figure in article

Physics Subject Headings (PhySH)

Popular Summary

Article Text

References (71)

  1. M. A. Nielsen and I. L. Chuang, Quantum Computation and Quantum Information (Cambridge University Press, Cambridge, New York, 2010), 10th ed.
  2. H. Bombin and M. A. Martin-Delgado, Topological quantum distillation, Phys. Rev. Lett. 97, 180501 (2006).
  3. 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.
  4. S. B. Bravyi and A. Y. Kitaev, Quantum codes on a lattice with boundary, ArXiv:quant-ph/9811052.
  5. E. Dennis, A. Kitaev, A. Landahl, and J. Preskill, Topological quantum memory, J. Math. Phys. 43, 4452 (2002).
  6. A. J. Landahl, J. T. Anderson, and P. R. Rice, Fault-tolerant quantum computing with color codes, ArXiv:1108.5738.
  7. 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).
  8. 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).
  9. 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).
  10. C. Ryan-Anderson, et al., Implementing fault-tolerant entangling gates on the five-qubit code and the color code, ArXiv:2208.01863.
  11. D. Bluvstein, et al., Logical quantum processor based on reconfigurable atom arrays, Nature 626, 58 (2024).
  12. 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).
  13. N. Lacroix, et al., Scaling and logic in the color code on a superconducting quantum processor, ArXiv:2412.14256.
  14. A. Kubica and M. E. Beverland, Universal transversal gates with color codes: A simplified approach, Phys. Rev. A 91, 032330 (2015).
  15. A. J. Landahl and C. Ryan-Anderson, Quantum computing by color-code lattice surgery, ArXiv:1407.5103.
  16. S. Bravyi and A. Kitaev, Universal quantum computation with ideal Clifford gates and noisy ancillas, Phys. Rev. A 71, 022316 (2005).
  17. B. W. Reichardt, Quantum universality from magic states distillation applied to CSS codes, Quantum Inf. Process. 4, 251 (2005).
  18. A. M. Meier, B. Eastin, and E. Knill, Magic-state distillation with the four-qubit code, ArXiv:1204.4221.
  19. 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).
  20. S. Bravyi and J. Haah, Magic-state distillation with low overhead, Phys. Rev. A 86, 052329 (2012).
  21. J. O’Gorman and E. T. Campbell, Quantum computation with realistic magic-state factories, Phys. Rev. A 95, 032338 (2017).
  22. 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).
  23. D. Litinski, Magic state distillation: Not as costly as you think, Quantum 3, 205 (2019).
  24. 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).
  25. T. Itogawa, Y. Takada, Y. Hirano, and K. Fujii, Efficient magic state distillation by zero-level distillation, PRX Quantum 6, 020356 (2025).
  26. C. Gidney, N. Shutty, and C. Jones, Magic state cultivation: Growing T states as cheap as CNOT gates, ArXiv:2409.17595.
  27. S.-H. Lee, A. Li, and S. D. Bartlett, Color code decoder with improved scaling for correcting circuit-level noise, Quantum 9, 1609 (2025).
  28. A. G. Fowler, Two-dimensional color-code quantum computation, Phys. Rev. A 83, 042310 (2011).
  29. 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).
  30. 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).
  31. N. Fazio, R. Harper, and S. Bartlett, Logical noise bias in magic state injection, ArXiv:2401.10982.
  32. D. Litinski, A game of surface codes: Large-scale quantum computing with lattice surgery, Quantum 3, 128 (2019).
  33. E. Knill, Quantum computing with realistically noisy devices, Nature 434, 39 (2005).
  34. H. Goto, Minimizing resource overheads for fault-tolerant preparation of encoded states of the Steane code, Sci. Rep. 6, 19578 (2016).
  35. C. Chamberland and A. W. Cross, Fault-tolerant magic state preparation with flag qubits, Quantum 3, 143 (2019).
  36. A. Kitaev and L. Kong, Models for gapped boundaries and domain walls, Commun. Math. Phys. 313, 351 (2012).
  37. C. Gidney and C. Jones, New circuits and an open source decoder for the color code, ArXiv:2312.08813.
  38. C. Gidney, M. Newman, P. Brooks, and C. Jones, Yoked surface codes, Nat. Commun. 16, 4498 (2025).
  39. 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).
  40. S. C. Smith, B. J. Brown, and S. D. Bartlett, Mitigating errors in logical qubits, Commun. Phys. 7, 386 (2024).
  41. K. Sahay and B. J. Brown, Decoder for the triangular color code by matching on a Möbius strip, PRX Quantum 3, 010310 (2022).
  42. S.-H. Lee, msd-magic-state-prep-cycle-simulation, 2025, https://github.com/seokhyung-lee/msd-magic-state-prep-cycle-simulation.
  43. P. Sarvepalli and R. Raussendorf, Efficient decoding of topological color codes, Phys. Rev. A 85, 022317 (2012).
  44. N. Delfosse, Decoding color codes by projection onto surface codes, Phys. Rev. A 89, 012317 (2014).
  45. N. Maskara, A. Kubica, and T. Jochym-O’Connor, Advantages of versatile neural-network decoding for topological codes, Phys. Rev. A 99, 052351 (2019).
  46. 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).
  47. N. Delfosse and N. H. Nickerson, Almost-linear time decoding algorithm for topological codes, Quantum 5, 595 (2021).
  48. 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.
  49. A. Kubica and N. Delfosse, Efficient color code decoders in d≥2 dimensions from toric code decoders, Quantum 7, 929 (2023).
  50. 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).
  51. Y. Takada, Y. Takeuchi, and K. Fujii, Ising model formulation for highly accurate topological color codes decoding, Phys. Rev. Res. 6, 013092 (2024).
  52. L. Berent, L. Burgholzer, P.-J. H. S. Derks, J. Eisert, and R. Wille, Decoding quantum color codes with MaxSAT, Quantum 8, 1506 (2024).
  53. C. Gidney, Stability experiments: The overlooked dual of memory experiments, Quantum 6, 786 (2022).
  54. 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).
  55. D. Litinski and F. v. Oppen, Lattice surgery with a twist: Simplifying Clifford gates of surface codes, Quantum 2, 62 (2018).
  56. A. G. Fowler, A. M. Stephens, and P. Groszkowski, High-threshold universal quantum computation on the surface code, Phys. Rev. A 80, 052312 (2009).
  57. A. M. Stephens, Fault-tolerant thresholds for quantum error correction with the surface code, Phys. Rev. A 89, 022321 (2014).
  58. B. Heim, K. M. Svore, and M. B. Hastings, Optimal circuit-level decoding for surface codes, ArXiv:1609.06373.
  59. 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).
  60. Note that these thresholds are scaling thresholds, not crossing thresholds. That is, they correspond to the parameter pth 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.
  61. 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).
  62. 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.
  63. N. Fazio, M. Webster, and Z. Cai, Low-overhead magic state circuits with transversal CNOTs, ArXiv:2501.10291.
  64. S.-H. Lee, Color-code-msd-data, 2025, https://github.com/seokhyung-lee/color-code-msd-data.
  65. S.-H. Lee, Color-code-stim, 2024, https://github.com/seokhyung-lee/color-code-stim.
  66. Assuming dX≥dZ, there exist Ndiag:=(lr) shortest paths for diagonal error strings, where l:=dX/2−1 and r:=(dX−dZ)/2. For vertical error strings (causing X¯1 or X¯2 errors), there are approximately Nv:=dZ⋅2dX/2−1 shortest paths. Comparing these two values, Ndiag/Nv<0.1 for dX≥8 or dZ≥6, and Ndiag/Nv<0.05 for dX≥14 or dZ≥8. In general, we obtain Ndiag/Nv<2/[dZπ(dX−2)] from the inequality (lr)≤(ll/2)<2/(πl)2l. 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.
  67. C. Gidney, Stim: A fast stabilizer circuit simulator, Quantum 5, 497 (2021).
  68. O. Higgott, PyMatching: A python package for decoding quantum codes with minimum-weight perfect matching, ACM Trans. Quantum Comput. 3, 16 (2022).
  69. A. G. Fowler and C. Gidney, Low overhead quantum computation using lattice surgery, ArXiv:1808.06709.
  70. B. Efron and G. Gong, A leisurely look at the bootstrap, the jackknife, and cross-validation, Am. Stat. 37, 36 (1983).
  71. P. Virtanen, et al., SciPy 1.0 Contributors, SciPy 1.0: Fundamental Algorithms for Scientific Computing in Python, Nat. Methods 17, 261 (2020).

Outline

Information

Sign In to Your Journals Account

Filter

Filter

Article Lookup

Enter a citation