Magic Boundaries of 3D Color Codes
1Department of Physics and Astronomy, University of California, Davis, California 95616, USA
2IBM Quantum, T.J. Watson Research Center, Yorktown Heights, NY 10598 USA
| Published: | 2025-08-27, volume 9, page 1831 |
| Editor: | Alioscia Hamma |
| Eprint: | arXiv:2404.05033v4 |
| Doi: | https://doi.org/10.22331/q-2025-08-27-1831 |
| Citation: | Quantum 9, 1831 (2025). |
Find this paper interesting or want to discuss? Scite or leave a comment on SciRate.
Abstract
We investigate boundaries of 3D color codes and provide a systematic classification into 101 distinct boundary types, including two novel classes. The first class consists of 1 boundary and is generated by sweeping the codimension-1 (2D) $T$-domain wall across the system and attaching it to the $X$-boundary that condenses only magnetic fluxes. Since the $T$-domain wall cannot condense on the $X$-boundary, a new $\textit{magic boundary}$ is produced, where the boundary stabilizers contain $XS$-stabilizers going beyond the conventional Pauli stabilizer formalism, and hence contains 'magic'. Neither electric nor magnetic excitations can condense on such a magic boundary, and only the composite of the magnetic flux and codimension-2 (1D) $S$-domain wall can condense on it, which makes the magic boundary going beyond the classification of the Lagrangian subgroup. The second class consists of 70 boundaries and is generated by sweeping the $S$-domain wall across a codimension-1 submanifold and attaching it to the boundary. This generates a codimension-2 (1D) $\textit{nested boundary}$ at the intersection. We also connect these novel boundaries to their previously discovered counterpart in the $\mathbb{Z}_2^3$ gauge theory, equivalent to three copies of 3D toric codes, where the $S$ and $T$ domain walls correspond to gauged symmetry-protected topological (SPT) defects. New boundaries are produced whenever the corresponding symmetry of the SPT defect remains unbroken on the boundary. Applications of the magic boundaries include implementing fault-tolerant non-Clifford logical gates, e.g., in the context of fractal topological codes.

Featured image: The magnetic loop accompanied by the codimension-1 $S$-domain wall can condense on the magic boundary, whereas the magnetic loop by itself cannot.
Popular summary
► BibTeX data
► References
[1] Eric Dennis, Alexei Kitaev, Andrew Landahl, and John Preskill. Topological quantum memory. Journal of Mathematical Physics, 43(9):4452–4505, 2002. URL: doi:https://doi.org/10.1063/1.1499754.
https://doi.org/10.1063/1.1499754
[2] A Yu Kitaev. Fault-tolerant quantum computation by anyons. Annals of physics, 303(1):2–30, 2003. doi:https://doi.org/10.1016/S0003-4916(02)00018-0.
https://doi.org/10.1016/S0003-4916(02)00018-0
[3] Sergey B Bravyi and A Yu Kitaev. Quantum codes on a lattice with boundary. arXiv preprint quant-ph/9811052, 1998. doi:https://doi.org/10.48550/arXiv.quant-ph/9811052.
https://doi.org/10.48550/arXiv.quant-ph/9811052
arXiv:quant-ph/9811052
[4] Hector Bombin and Miguel Angel Martin-Delgado. Topological quantum distillation. Physical review letters, 97(18):180501, 2006. doi:https://doi.org/10.1103/PhysRevLett.97.180501.
https://doi.org/10.1103/PhysRevLett.97.180501
[5] Bryan Eastin and Emanuel Knill. Restrictions on transversal encoded quantum gate sets. Physical review letters, 102(11):110502, 2009. URL: doi:https://doi.org/10.1103/PhysRevLett.102.110502.
https://doi.org/10.1103/PhysRevLett.102.110502
[6] Austin G Fowler, Ashley M Stephens, and Peter Groszkowski. High-threshold universal quantum computation on the surface code. Physical Review A, 80(5):052312, 2009. URL: doi:https://doi.org/10.1103/PhysRevA.80.052312.
https://doi.org/10.1103/PhysRevA.80.052312
[7] Héctor Bombín. Topological order with a twist: Ising anyons from an abelian model. Physical review letters, 105(3):030403, 2010. doi:https://doi.org/10.1103/PhysRevLett.105.030403.
https://doi.org/10.1103/PhysRevLett.105.030403
[8] Hector Bombin and Miguel-Angel Martin-Delgado. Topological computation without braiding. Physical review letters, 98(16):160502, 2007. doi:https://doi.org/10.1103/PhysRevLett.98.160502.
https://doi.org/10.1103/PhysRevLett.98.160502
[9] Héctor Bombín and Miguel Angel Martin-Delgado. Quantum measurements and gates by code deformation. Journal of Physics A: Mathematical and Theoretical, 42(9):095302, 2009. doi:https://doi.org/10.1088/1751-8113/42/9/095302.
https://doi.org/10.1088/1751-8113/42/9/095302
[10] Daniel Gottesman. The heisenberg representation of quantum computers. arXiv preprint quant-ph/9807006, 1998. doi:https://doi.org/10.48550/arXiv.quant-ph/9807006.
https://doi.org/10.48550/arXiv.quant-ph/9807006
arXiv:quant-ph/9807006
[11] Aleksander Kubica, Beni Yoshida, and Fernando Pastawski. Unfolding the color code. New Journal of Physics, 17(8):083026, 2015. doi:https://doi.org/10.1088/1367-2630/17/8/083026.
https://doi.org/10.1088/1367-2630/17/8/083026
[12] Michael Levin. Protected edge modes without symmetry. Physical Review X, 3(2):021009, 2013. doi:https://doi.org/10.1103/PhysRevX.3.021009.
https://doi.org/10.1103/PhysRevX.3.021009
[13] Guanyu Zhu, Tomas Jochym-O’Connor, and Arpit Dua. Topological order, quantum codes, and quantum computation on fractal geometries. PRX Quantum, 3(3):030338, 2022. doi:https://doi.org/10.1103/PRXQuantum.3.030338.
https://doi.org/10.1103/PRXQuantum.3.030338
[14] Beni Yoshida. Topological color code and symmetry-protected topological phases. Physical Review B, 91(24):245131, 2015. doi:https://doi.org/10.1103/PhysRevB.91.245131.
https://doi.org/10.1103/PhysRevB.91.245131
[15] Beni Yoshida. Topological phases with generalized global symmetries. Physical Review B, 93(15):155131, 2016. doi:https://doi.org/10.1103/PhysRevB.93.155131.
https://doi.org/10.1103/PhysRevB.93.155131
[16] Beni Yoshida. Gapped boundaries, group cohomology and fault-tolerant logical gates. Annals of Physics, 377:387–413, 2017. doi:https://doi.org/10.1016/j.aop.2016.12.014.
https://doi.org/10.1016/j.aop.2016.12.014
[17] Maissam Barkeshli, Yu-An Chen, Sheng-Jie Huang, Ryohei Kobayashi, Nathanan Tantivasadakarn, and Guanyu Zhu. Codimension-2 defects and higher symmetries in (3+1)D topological phases. SciPost Phys., 14:065, 2023. doi:10.21468/SciPostPhys.14.4.065.
https://doi.org/10.21468/SciPostPhys.14.4.065
[18] Maissam Barkeshli, Yu-An Chen, Po-Shen Hsin, and Ryohei Kobayashi. Higher-group symmetry in finite gauge theory and stabilizer codes. SciPost Phys., 16:089, 2024. doi:https://doi.org/10.21468/SciPostPhys.16.4.089.
https://doi.org/10.21468/SciPostPhys.16.4.089
[19] Guanyu Zhu, Shehryar Sikander, Elia Portnoy, Andrew W Cross, and Benjamin J Brown. Non-clifford and parallelizable fault-tolerant logical gates on constant and almost-constant rate homological quantum ldpc codes via higher symmetries. arXiv preprint arXiv:2310.16982, 2023. doi:https://doi.org/10.48550/arXiv.2310.16982.
https://doi.org/10.48550/arXiv.2310.16982
arXiv:2310.16982
[20] Mark de Wild Propitius. Topological interactions in broken gauge theories. arXiv preprint hep-th/9511195, 1995. doi:https://arxiv.org/abs/hep-th/9511195.
arXiv:hep-th/9511195
[21] Xie Chen, Zheng-Cheng Gu, Zheng-Xin Liu, and Xiao-Gang Wen. Symmetry protected topological orders and the group cohomology of their symmetry group. Physical Review B, 87(15):155114, 2013. doi:https://doi.org/10.1103/PhysRevB.87.155114.
https://doi.org/10.1103/PhysRevB.87.155114
[22] Anton Kapustin and Natalia Saulina. Topological boundary conditions in abelian chern–simons theory. Nuclear Physics B, 845(3):393–435, 2011. doi:https://doi.org/10.1016/j.nuclphysb.2010.12.017.
https://doi.org/10.1016/j.nuclphysb.2010.12.017
[23] Daniel Gottesman and Isaac L Chuang. Quantum teleportation is a universal computational primitive. arXiv preprint quant-ph/9908010, 1999. doi:https://doi.org/10.1038/46503.
https://doi.org/10.1038/46503
arXiv:quant-ph/9908010
[24] Jeongwan Haah and John Preskill. Logical-operator tradeoff for local quantum codes. Physical Review A, 86(3):032308, 2012. doi:https://doi.org/10.1103/PhysRevA.86.032308.
https://doi.org/10.1103/PhysRevA.86.032308
[25] Sergey Bravyi and Robert König. Classification of topologically protected gates for local stabilizer codes. Physical review letters, 110(17):170503, 2013. doi:https://doi.org/10.1103/PhysRevLett.110.170503.
https://doi.org/10.1103/PhysRevLett.110.170503
[26] Héctor Bombín. Gauge color codes: optimal transversal gates and gauge fixing in topological stabilizer codes. New Journal of Physics, 17(8):083002, 2015. doi:https://doi.org/10.1088/1367-2630/17/8/083002.
https://doi.org/10.1088/1367-2630/17/8/083002
[27] Michael Vasmer and Dan E Browne. Three-dimensional surface codes: Transversal gates and fault-tolerant architectures. Physical Review A, 100(1):012312, 2019. doi:https://doi.org/10.1103/PhysRevA.100.012312.
https://doi.org/10.1103/PhysRevA.100.012312
[28] Paul Webster and Stephen D Bartlett. Locality-preserving logical operators in topological stabilizer codes. Physical Review A, 97(1):012330, 2018. doi:https://doi.org/10.1103/PhysRevA.97.012330.
https://doi.org/10.1103/PhysRevA.97.012330
[29] Guanyu Zhu, Mohammad Hafezi, and Maissam Barkeshli. Quantum origami: Transversal gates for quantum computation and measurement of topological order. Physical Review Research, 2(1):013285, 2020. URL: doi:https://doi.org/10.1103/PhysRevResearch.2.013285.
https://doi.org/10.1103/PhysRevResearch.2.013285
[30] Aleksander Kubica and Beni Yoshida. Ungauging quantum error-correcting codes. arXiv preprint arXiv:1805.01836, 2018. doi:https://doi.org/10.48550/arXiv.1805.01836.
https://doi.org/10.48550/arXiv.1805.01836
arXiv:1805.01836
[31] Nathanan Tantivasadakarn, Ryan Thorngren, Ashvin Vishwanath, and Ruben Verresen. Long-range entanglement from measuring symmetry-protected topological phases. Physical Review X, 14(2):021040, 2024. doi:https://doi.org/10.1103/PhysRevX.14.021040.
https://doi.org/10.1103/PhysRevX.14.021040
[32] Xiaotong Ni, Oliver Buerschaper, and Maarten Van den Nest. A non-commuting stabilizer formalism. Journal of Mathematical Physics, 56(5), 2015. URL: doi:https://doi.org/10.1063/1.4920923.
https://doi.org/10.1063/1.4920923
[33] Mark A Webster, Benjamin J Brown, and Stephen D Bartlett. The xp stabiliser formalism: a generalisation of the pauli stabiliser formalism with arbitrary phases. Quantum, 6:815, 2022. doi:https://doi.org/10.22331/q-2022-09-22-815.
https://doi.org/10.22331/q-2022-09-22-815
[34] Junjie Chen, Yuxuan Yan, and You Zhou. Magic of quantum hypergraph states. Quantum, 8:1351, 2024. doi:https://doi.org/10.22331/q-2024-05-21-1351.
https://doi.org/10.22331/q-2024-05-21-1351
[35] Arpit Dua, Tomas Jochym-O'Connor, and Guanyu Zhu. Quantum error correction with fractal topological codes. Quantum, 7:1122, September 2023. doi:https://doi.org/10.22331/q-2023-09-26-1122.
https://doi.org/10.22331/q-2023-09-26-1122
[36] Michael A Levin and Xiao-Gang Wen. String-net condensation: A physical mechanism for topological phases. Physical Review B, 71(4):045110, 2005. doi:https://doi.org/10.1103/PhysRevB.71.045110.
https://doi.org/10.1103/PhysRevB.71.045110
[37] Yuting Hu, Yidun Wan, and Yong-Shi Wu. Twisted quantum double model of topological phases in two dimensions. Physical Review B, 87(12):125114, 2013. doi:https://doi.org/10.1103/PhysRevB.87.125114.
https://doi.org/10.1103/PhysRevB.87.125114
[38] Alexis Schotte, Guanyu Zhu, Lander Burgelman, and Frank Verstraete. Quantum error correction thresholds for the universal fibonacci turaev-viro code. Physical Review X, 12(2):021012, 2022. doi:https://doi.org/10.1103/PhysRevX.12.021012.
https://doi.org/10.1103/PhysRevX.12.021012
[39] Chien-Hung Lin, Michael Levin, and Fiona J Burnell. Generalized string-net models: A thorough exposition. Physical Review B, 103(19):195155, 2021. doi:https://doi.org/10.1103/PhysRevB.103.195155.
https://doi.org/10.1103/PhysRevB.103.195155
[40] Jiaheng Zhao, Jia-Qi Lou, Zhi-Hao Zhang, Ling-Yan Hung, Liang Kong, and Yin Tian. String condensations in 3+ 1d and lagrangian algebras. arXiv preprint arXiv:2208.07865, 2022. doi:https://doi.org/10.4310/ATMP.2023.v27.n2.a5.
https://doi.org/10.4310/ATMP.2023.v27.n2.a5
arXiv:2208.07865
[41] Wenjie Ji, Nathanan Tantivasadakarn, and Cenke Xu. Boundary states of three dimensional topological order and the deconfined quantum critical point. SciPost Physics, 15(6):231, 2023. doi:https://scipost.org/10.21468/SciPostPhys.15.6.231.
https://doi.org/10.21468/SciPostPhys.15.6.231
[42] Zhu-Xi Luo. Gapped boundaries of (3+ 1)-dimensional topological order. Physical Review B, 107(12):125425, 2023. doi:https://doi.org/10.1103/PhysRevB.107.125425.
https://doi.org/10.1103/PhysRevB.107.125425
[43] Justin Kaidi, Zohar Komargodski, Kantaro Ohmori, Sahand Seifnashri, and Shu-Heng Shao. Higher central charges and topological boundaries in 2+1-dimensional TQFTs. SciPost Phys., 13:067, 2022. doi:10.21468/SciPostPhys.13.3.067.
https://doi.org/10.21468/SciPostPhys.13.3.067
[44] Liang Kong. Anyon condensation and tensor categories. Nuclear Physics B, 886:436–482, 2014. doi:https://doi.org/10.1016/j.nuclphysb.2014.07.003.
https://doi.org/10.1016/j.nuclphysb.2014.07.003
[45] Iris Cong, Meng Cheng, and Zhenghan Wang. Hamiltonian and algebraic theories of gapped boundaries in topological phases of matter. Communications in Mathematical Physics, 355:645–689, 2017. doi:https://doi.org/10.1007/s00220-017-2960-4.
https://doi.org/10.1007/s00220-017-2960-4
[46] Carolyn Zhang and Clay Córdova. Anomalies of $(1+1)$-dimensional categorical symmetries. Phys. Rev. B, 110:035155, Jul 2024. doi:https://doi.org/10.1103/PhysRevB.110.035155.
https://doi.org/10.1103/PhysRevB.110.035155
[47] Liang Kong, Zhi-Hao Zhang, Jiaheng Zhao, and Hao Zheng. Higher condensation theory. arXiv preprint arXiv:2403.07813, 2024. doi:https://doi.org/10.48550/arXiv.2403.07813.
https://doi.org/10.48550/arXiv.2403.07813
arXiv:2403.07813
[48] Yabo Li, Zijian Song, Aleksander Kubica, and Isaac H Kim. Domain walls from spt-sewing. arXiv preprint arXiv:2411.11967, 2024. doi:https://doi.org/10.48550/arXiv.2411.11967.
https://doi.org/10.48550/arXiv.2411.11967
arXiv:2411.11967
[49] Dominic J Williamson. Fractal symmetries: Ungauging the cubic code. Physical Review B, 94(15):155128, 2016. doi:https://doi.org/10.1103/PhysRevB.94.155128.
https://doi.org/10.1103/PhysRevB.94.155128
[50] Zijian Song, Arpit Dua, Wilbur Shirley, and Dominic J Williamson. Topological defect network representations of fracton stabilizer codes. PRX Quantum, 4(1):010304, 2023. doi:https://doi.org/10.1103/PRXQuantum.4.010304.
https://doi.org/10.1103/PRXQuantum.4.010304
Cited by
[1] Nikolas P. Breuckmann, Margarita Davydova, Jens N. Eberhardt, and Nathanan Tantivasadakarn, "Cups and Gates I: Cohomology Invariants and Logical Quantum Operations", Communications in Mathematical Physics 407 5, 86 (2026).
[2] Gabrielle Tournaire, Marvin Schwiering, Robert Raussendorf, and Sven Bachmann, "A 3D lattice defect and efficient computations in topological MBQC", Quantum 10, 1997 (2026).
[3] Andreas Bauer and Julio C. Magdalena de la Fuente, "Planar Fault-Tolerant Circuits for Non-Clifford Gates on the 2D Color Code", PRX Quantum 7 2, 020367 (2026).
[4] Rui Wen, "String condensation and topological holography for 2+1D gapless SPT", arXiv:2408.05801, (2024).
[5] Po-Shen Hsin, Ryohei Kobayashi, and Guanyu Zhu, "Classifying Logical Gates in Quantum Codes via Cohomology Operations and Symmetry", arXiv:2411.15848, (2024).
[6] Victor V. Albert and Philippe Faist, "Handbook of Error-Correcting Codes", arXiv:2606.11484, (2026).
The above citations are from Crossref's cited-by service (last updated successfully 2026-08-08 03:53:44) and SAO/NASA ADS (last updated successfully 2026-08-08 03:53:53). The list may be incomplete as not all publishers provide suitable and complete citation data.
This Paper is published in Quantum under the Creative Commons Attribution 4.0 International (CC BY 4.0) license. Copyright remains with the original copyright holders such as the authors or their institutions.