From Magic State Distillation to Dynamical Systems

Yunzhe Zheng1,2 and Dong E. Liu1,3

1Department of Physics, Tsinghua University, Beijing, 100084, China
2Department of Applied Physics, Yale University, New Haven, Connecticut, 06511, USA
3Frontier Science Center for Quantum Information, Beijing 100084, China

Find this paper interesting or want to discuss? Scite or leave a comment on SciRate.

Abstract

Magic State Distillation (MSD) has been a research focus for fault-tolerant quantum computing due to the need for non-Clifford resource in gaining quantum advantage. Although many of the MSD protocols so far are based on stabilizer codes with transversal $T$ gates, there exists quite several protocols that don't fall into this class. Here we propose a method to map MSD protocols to iterative dynamical systems under the framework of stabilizer reduction. With the proposed mapping, we are able to analyze the performance of MSD protocols using techniques from dynamical systems theory, easily simulate the distillation process of input states under arbitrary noise and visualize it using flow diagram. We apply our mapping to common MSD protocols for $|T\rangle$ state and find some interesting properties: The $[[15, 1, 3]]$ code may distill states corresponding to $\sqrt{T}$ gate and the $[[5, 1, 3]]$ code can distill the magic state corresponding to the $T$ gate. Besides, we examine the exotic MSD protocols that may distill into other magic states proposed in [Eur. Phys. J. D 70, 55 (2016)] and identify the condition for distillable magic states. We also study new MSD protocols generated by concatenating different codes and numerically demonstrate that concatenation can generate MSD protocols with various magic states. By concatenating efficient codes with exotic codes, we can reduce the overhead of the exotic MSD protocols. We believe our proposed method will be a useful tool for simulating and visualization MSD protocols for canonical MSD protocols on $|T\rangle$ as well as other unexplored MSD protocols for other states.

Magic state distillation is a critical routine for fault-tolerant quantum computing that distill high-quality "magic" resource states at cost of many lower-quality states. Even though various magic state distillation protocols have been analyzed individually so far, there still doesn't exist a unified method for analyzing any generic protcols.

In this work, we propose a new method to connect distillation protocols with iterative dynamical systems. Our method is totally generic for any distillation protocols and allows to analyze biased noise presented in the input states. Plotting the dynamical systems using flow diagram also provides intuitive visualization of distillation behavior of various protocols. We demonstrate our method using canonical well-known protocols as well as small protocols that distill exotic "magic" states. Furthermore, we showcase the potential for distilling more general magic states.

As magic state distillation becomes one of the central topics for fault-tolerant quantum computing, our method would provide a convenient framework that assists to find and analyze new distillation protocols.

► BibTeX data

► References

[1] Google Quantum AI. ``Quantum error correction below the surface code threshold'' (2024).
https:/​/​doi.org/​10.1038/​s41586-024-08449-y

[2] Hengyun Zhou, Chen Zhao, Madelyn Cain, Dolev Bluvstein, Casey Duckering, Hong-Ye Hu, Sheng-Tao Wang, Aleksander Kubica, and Mikhail D. Lukin. ``Algorithmic Fault Tolerance for Fast Quantum Computing'' (2024). arXiv:2406.17653.
arXiv:2406.17653

[3] Riddhi S. Gupta, Neereja Sundaresan, Thomas Alexander, Christopher J. Wood, Seth T. Merkel, Michael B. Healy, Marius Hillenbrand, Tomas Jochym-O'Connor, James R. Wootton, Theodore J. Yoder, Andrew W. Cross, Maika Takita, and Benjamin J. Brown. ``Encoding a magic state with beyond break-even fidelity''. Nature 625, 259–263 (2024).
https:/​/​doi.org/​10.1038/​s41586-023-06846-3

[4] Bryan Eastin and Emanuel Knill. ``Restrictions on Transversal Encoded Quantum Gate Sets''. Physical Review Letters 102, 110502 (2009).
https:/​/​doi.org/​10.1103/​PhysRevLett.102.110502

[5] Bei Zeng, Andrew Cross, and Isaac L. Chuang. ``Transversality versus Universality for Additive Quantum Codes'' (2007). arXiv:0706.1382.
arXiv:0706.1382

[6] Andrew Steane. ``Multiple Particle Interference and Quantum Error Correction''. Proceedings of the Royal Society of London. Series A: Mathematical, Physical and Engineering Sciences 452, 2551–2577 (1996). arXiv:quant-ph/​9601029.
https:/​/​doi.org/​10.1098/​rspa.1996.0136
arXiv:quant-ph/9601029

[7] Austin G. Fowler. ``Two-dimensional color-code quantum computation''. Physical Review A 83, 042310 (2011).
https:/​/​doi.org/​10.1103/​PhysRevA.83.042310

[8] Austin G. Fowler, Matteo Mariantoni, John M. Martinis, and Andrew N. Cleland. ``Surface codes: Towards practical large-scale quantum computation''. Physical Review A 86, 032324 (2012).
https:/​/​doi.org/​10.1103/​PhysRevA.86.032324

[9] Sergey Bravyi and Alexei Kitaev. ``Universal quantum computation with ideal Clifford gates and noisy ancillas''. Physical Review A 71, 022316 (2005).
https:/​/​doi.org/​10.1103/​PhysRevA.71.022316

[10] Mark Howard and Hillary Dawkins. ``Small codes for magic state distillation''. The European Physical Journal D 70, 55 (2016).
https:/​/​doi.org/​10.1140/​epjd/​e2016-60682-y

[11] Guillaume Duclos-Cianci and Krysta M. Svore. ``Distillation of nonstabilizer states for universal quantum computation''. Phys. Rev. A 88, 042325 (2013).
https:/​/​doi.org/​10.1103/​PhysRevA.88.042325

[12] Sergey Bravyi and Jeongwan Haah. ``Magic-state distillation with low overhead''. Physical Review A 86, 052329 (2012).
https:/​/​doi.org/​10.1103/​PhysRevA.86.052329

[13] Matthew B. Hastings and Jeongwan Haah. ``Distillation with Sublogarithmic Overhead''. Physical Review Letters 120, 050504 (2018).
https:/​/​doi.org/​10.1103/​PhysRevLett.120.050504

[14] Anirudh Krishna and Jean-Pierre Tillich. ``Towards Low Overhead Magic State Distillation''. Physical Review Letters 123, 070507 (2019).
https:/​/​doi.org/​10.1103/​PhysRevLett.123.070507

[15] Adam Wills, Min-Hsiu Hsieh, and Hayata Yamasaki. ``Constant-Overhead Magic State Distillation'' (2024). arXiv:2408.07764.
arXiv:2408.07764

[16] Quynh T. Nguyen. ``Good binary quantum codes with transversal CCZ gate'' (2024). arXiv:2408.10140.
arXiv:2408.10140

[17] Louis Golowich and Venkatesan Guruswami. ``Asymptotically Good Quantum Codes with Transversal Non-Clifford Gates'' (2024). arXiv:2408.09254.
arXiv:2408.09254

[18] Seok-Hyung Lee, Felix Thomsen, Nicholas Fazio, Benjamin J. Brown, and Stephen D. Bartlett. ``Low-overhead magic state distillation with color codes'' (2024). arXiv:2409.07707.
arXiv:2409.07707

[19] Lucas Daguerre and Isaac H. Kim. ``Code switching revisited: Low-overhead magic state preparation using color codes'' (2024). arXiv:2410.07327.
https:/​/​doi.org/​10.1103/​PhysRevResearch.7.023080
arXiv:2410.07327

[20] Tomohiro Itogawa, Yugo Takada, Yutaka Hirano, and Keisuke Fujii. ``Even more efficient magic state distillation by zero-level distillation'' (2024). arXiv:2403.03991.
https:/​/​doi.org/​10.1103/​thxx-njr6
arXiv:2403.03991

[21] Christopher Chamberland and Andrew W. Cross. ``Fault-tolerant magic state preparation with flag qubits''. Quantum 3, 143 (2019).
https:/​/​doi.org/​10.22331/​q-2019-05-20-143

[22] Craig Gidney, Noah Shutty, and Cody Jones. ``Magic state cultivation: growing t states as cheap as cnot gates'' (2024). arXiv:2409.17595.
arXiv:2409.17595

[23] Hayato Goto. ``Minimizing resource overheads for fault-tolerant preparation of encoded states of the steane code''. Scientific reports 6, 19578 (2016).
https:/​/​doi.org/​10.1038/​srep19578

[24] Ben W. Reichardt. ``Quantum Universality from Magic States Distillation Applied to CSS Codes''. Quantum Information Processing 4, 251–264 (2005).
https:/​/​doi.org/​10.1007/​s11128-005-7654-8

[25] Ben W. Reichardt. ``Quantum universality by state distillation'' (2009). arXiv:quant-ph/​0608085.
arXiv:quant-ph/0608085

[26] Tomas Jochym-O'connor, Yafei Yu, Bassam Helou, and Raymond Laflamme. ``The robustness of magic state distillation against errors in clifford gates''. Quantum Information & Computation 13, 361–378 (2013). arXiv:1205.6715.
arXiv:1205.6715

[27] Earl T Campbell, Hussain Anwar, and Dan E Browne. ``Magic-state distillation in all prime dimensions using quantum reed-muller codes''. Physical Review X 2, 041021 (2012).
https:/​/​doi.org/​10.1103/​PhysRevX.2.041021

[28] Patrick Rall. ``Signed quantum weight enumerators characterize qubit magic state distillation'' (2017). arXiv:1702.06990.
arXiv:1702.06990

[29] Earl T. Campbell and Dan E. Browne. ``On the Structure of Protocols for Magic State Distillation'' (2009). arXiv:0908.0838.
arXiv:0908.0838

[30] Oscar Higgott, Matthew Wilson, James Hefford, James Dborin, Farhan Hanif, Simon Burton, and Dan E. Browne. ``Optimal local unitary encoding circuits for the surface code''. Quantum 5, 517 (2021).
https:/​/​doi.org/​10.22331/​q-2021-08-05-517

[31] Ying Li. ``A magic state’s fidelity can be superior to the operations that created it''. New Journal of Physics 17, 023037 (2015).
https:/​/​doi.org/​10.1088/​1367-2630/​17/​2/​023037

[32] Daniel Gottesman. ``Stabilizer Codes and Quantum Error Correction'' (1997). arXiv:quant-ph/​9705052.
arXiv:quant-ph/9705052

[33] Michael E Beverland, Aleksander Kubica, and Krysta 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).
https:/​/​doi.org/​10.1103/​PRXQuantum.2.020341

[34] Cody Jones. ``Multilevel distillation of magic states for quantum computing''. Physical Review A 87, 042305 (2013).
https:/​/​doi.org/​10.1103/​PhysRevA.87.042305

[35] Adam M. Meier, Bryan Eastin, and Emanuel Knill. ``Magic-state distillation with the four-qubit code'' (2012). arXiv:1204.4221.
arXiv:1204.4221

[36] Jeongwan Haah. ``Towers of generalized divisible quantum codes''. Physical Review A 97, 042327 (2018).
https:/​/​doi.org/​10.1103/​PhysRevA.97.042327

[37] Stefanie J. Beale, Joel J. Wallman, Mauricio Gutiérrez, Kenneth R. Brown, and Raymond Laflamme. ``Quantum error correction decoheres noise''. Phys. Rev. Lett. 121, 190501 (2018).
https:/​/​doi.org/​10.1103/​PhysRevLett.121.190501

[38] Peter Shor and Raymond Laflamme. ``Quantum Analog of the MacWilliams Identities for Classical Coding Theory''. Physical Review Letters 78, 1600–1602 (1997).
https:/​/​doi.org/​10.1103/​PhysRevLett.78.1600

[39] Eric M Rains. ``Quantum weight enumerators''. IEEE Transactions on Information Theory 44, 1388–1394 (2002). arXiv:quant-ph/​9612015.
arXiv:quant-ph/9612015

[40] Patrick Rall. ``Fractal Properties of Magic State Distillation'' (2017). arXiv:1708.09256.
arXiv:1708.09256

[41] Vadym Kliuchnikov, Dmitri Maslov, and Michele Mosca. ``Practical approximation of single-qubit unitaries by single-qubit quantum clifford and t circuits''. IEEE Transactions on Computers 65, 161–172 (2016).
https:/​/​doi.org/​10.1109/​TC.2015.2409842

[42] Yunzhe Zheng, Yuanchen Zhao, and Dong E Liu. ``Magic state distillation under imperfect measurements'' (2025). arXiv:2503.01165.
arXiv:2503.01165

[43] ``Wikipedia for box counting''. url: https:/​/​en.wikipedia.org/​wiki/​Box_counting.
https:/​/​en.wikipedia.org/​wiki/​Box_counting

Cited by

[1] Cai-Hong Wang, Jiang-Tao Yuan, Zhi-Hao Ma, Shao-Ming Fei, and Shang-Quan Bu, "Generalized symplectic representation of local Clifford operators", Physical Review A 113 2, 022454 (2026).

[2] Samyak Surti, Lucas Daguerre, and Isaac H. Kim, "Efficient Simulation of Logical Magic State Preparation Protocols", PRX Quantum 7 2, 020329 (2026).

[3] Yunzhe Zheng, Yuanchen Zhao, and Dong E. Liu, "Fragility of Magic State Distillation under Imperfect Measurements", arXiv:2503.01165, (2025).

[4] Simon Burton and Hussain Anwar, "Meromorphic Quantum Computing", arXiv:2605.06251, (2026).

[5] Yunzhe Zheng, Allen Zang, and Aleksander Kubica, "Magic Gate Teleportation: Structure, Useful Resource States, and Simpler Feedforward", arXiv:2607.08508, (2026).

The above citations are from Crossref's cited-by service (last updated successfully 2026-08-09 01:20:51) and SAO/NASA ADS (last updated successfully 2026-08-09 01:20:53). The list may be incomplete as not all publishers provide suitable and complete citation data.