- Open Access
Snakes and Ladders: Adapting the Surface Code to Defects
PRX Quantum 6, 040302 – Published 2 October, 2025
DOI: https://doi.org/10.1103/815q-xjrb
Abstract
One of the critical challenges solid-state quantum processors face is the presence of fabrication imperfections and two-level systems, which render certain qubits and gates either inoperable or much noisier than tolerable by quantum error-correction protocols. To address this challenge, we develop a suite of novel and highly performant methods for adapting surface code patches in the presence of defective qubits and gates, which we call Snakes and Ladders. We explain how our algorithm generates and compares several strategies in order to find the optimal one for any given configuration of defective components, as well as introduce heuristics to improve runtime and minimize computing resources required by our algorithm. In addition to memory storage we also show how to apply our methods to lattice surgery protocols. Compared to prior works, our methods significantly improve the code distance of the adapted surface code patches for realistic defect rates, resulting in a logical performance similar to that of the defect-free patches.
Physics Subject Headings (PhySH)
Popular Summary
The advantage of quantum computing relies on quantum state superposition and entanglement, which are both fragile to decoherence. Quantum error correction aims at encoding the information redundantly so that errors resulting from either decoherence or controls can be corrected and is therefore essential to build a reliable quantum computer. A promising error-correcting code is the surface code, which uses a two-dimensional array of qubits, the basic unit of quantum information, interacting together via gates. The ability of the surface code to correct errors grows with the size of the surface code patch. A critical challenge for realizing the surface code is the unavoidable presence of nonoperational qubits and gates, which results in holes in the patch that can significantly lower its ability to correct errors.
The ability of the surface code to correct errors relies on measuring multiqubit correlations in groups of two or four via ancillary qubits. In the presence of holes, these correlations grow in size around the holes, making it harder to resolve errors. Larger holes therefore result in lower performance. In this work, we introduce strategies that significantly reduce the size of the holes around nonoperational components, improving the performance of the quantum error-correcting code. Our strategies rely on repurposing ancillary qubits that participate in two correlators instead of a single one. We numerically show that our strategies result in codes that preserve the information with higher fidelity and make the realization of logical operations needed for quantum computing more accessible on near-term devices.
Article Text
References (31)
- A. Kitaev, Fault-tolerant quantum computation by anyons, Ann. Phys. (N. Y.) 303, 2 (2003).
- 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. 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).
- M. Kjaergaard, M. E. Schwartz, J. Braumüller, P. Krantz, J. I.-J. Wang, S. Gustavsson, and W. D. Oliver, Superconducting qubits: Current state of play, Annu. Rev. Condens. Matter Phys. 11, 369 (2020).
- A. Bilmes, A. Megrant, P. Klimov, G. Weiss, J. M. Martinis, A. V. Ustinov, and J. Lisenfeld, Resolving the positions of defects in superconducting quantum bits, Sci. Rep. 10, 3090 (2020).
- P. V. Klimov, et al., Fluctuations of energy-relaxation times in superconducting qubits, Phys. Rev. Lett. 121, 090502 (2018).
- J. Burnett, L. Faoro, I. Wisby, V. L. Gurtovoi, A. V. Chernykh, G. M. Mikhailov, V. A. Tulin, R. Shaikhaidarov, V. Antonov, P. J. Meeson, A. Y. Tzalenchuk, and T. Lindström, Evidence for interacting two-level systems from the 1/f noise of a superconducting resonator, Nat. Commun. 5, 4119 (2014).
- C. Müller, J. H. Cole, and J. Lisenfeld, Towards understanding two-level-systems in amorphous solids: Insights from quantum circuits, Rep. Progr. Phys. 82, 124501 (2019).
- J. M. Auger, H. Anwar, M. Gimeno-Segovia, T. M. Stace, and D. E. Browne, Fault-tolerance thresholds for the surface code with fabrication errors, Phys. Rev. A 96, 042316 (2017).
- A. Strikis, S. C. Benjamin, and B. J. Brown, Quantum computing is scalable on a planar array of qubits with fabrication defects, Phys. Rev. Appl. 19, 064081 (2023).
- A. Siegel, A. Strikis, T. Flatters, and S. Benjamin, Adaptive surface code for quantum error correction in the presence of temporary or permanent defects, Quantum 7, 1065 (2023).
- S. F. Lin, J. Viszlai, K. N. Smith, G. S. Ravi, C. Yuan, F. T. Chong, and B. J. Brown, in Proceedings of the 29th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 2, ASPLOS ’24 (Association for Computing Machinery, New York, NY, USA, 2024), p. 216.
- K. Yin, X. Fang, Y. Shi, T. Humble, A. Li, and Y. Ding, Surf-deformer: Mitigating dynamic defects on surface code via adaptive deformation, ArXiv:2405.06941.
- Z. Wei, T. He, Y. Ye, D. Wu, Y. Zhang, Y. Zhao, W. Lin, H.-L. Huang, X. Zhu, and J.-W. Pan, Low-overhead defect-adaptive surface code with bandage-like super-stabilizers, ArXiv:2404.18644.
- D. Horsman, A. G. Fowler, S. Devitt, and R. V. Meter, Surface code quantum computing by lattice surgery, New J. Phys. 14, 123011 (2012).
- D. Litinski and F. V. Oppen, Lattice surgery with a twist: Simplifying Clifford gates of surface codes, Quantum 2, 62 (2018).
- https://en.wikipedia.org/wiki/Snakes_and_ladders.
- C. Leroux, S. F. Lin, P. Bienias, K. R. Sankar, A. Benhemou, A. Kubica, and J. K. Iverson, Snl: Adapting the surface code to defects, 2024, https://github.com/amazon-science/snakes_and_ladders_adapting_the_surface_code_to_defects.
- C. Gidney, Stim: A fast stabilizer circuit simulator, Quantum 5, 497 (2021).
- O. Higgott and C. Gidney, Sparse blossom: Correcting a million errors per core second with minimum-weight matching, Quantum 9, 1600 (2025).
- C. Gidney, M. Newman, A. Fowler, and M. Broughton, A fault-tolerant honeycomb memory, Quantum 5, 605 (2021).
- Our numerical simulations for small codes do not establish a threshold theorem. We may require “shells” [11] for a guaranteed threshold.
- With two-qubit depolarizing noise on two-qubit gates, one-qubit depolarizing noise on one-qubit gates, and noise on reset and measurement, all with the same error rate .
- We exclude defect configurations where our software fails to produce adapted patches for DQD. These excluded cases constitute of the sampled cases for and are very rare for higher ; they also arise in prior works.
- O. Higgott and N. P. Breuckmann, Subsystem codes with high thresholds by gauge fixing and reduced qubit overhead, Phys. Rev. X 11, 031039 (2021).
- C. Gidney and D. Bacon, Less bacon more threshold, ArXiv:2305.12046.
- J. P. Bonilla Ataides, D. K. Tuckett, S. D. Bartlett, S. T. Flammia, and B. J. Brown, The XZZX surface code, Nat. Commun. 12, 2172 (2021).
- Q. Xu, N. Mannucci, A. Seif, A. Kubica, S. T. Flammia, and L. Jiang, Tailored XZZX codes for biased noise, Phys. Rev. Res. 5, 013035 (2023).
- A. Dua, A. Kubica, L. Jiang, S. T. Flammia, and M. J. Gullans, Clifford-deformed surface codes, PRX Quantum 5, 010347 (2024).
- D. M. Debroy, M. McEwen, C. Gidney, N. Shutty, and A. Zalcman, Luci in the surface code with dropouts, ArXiv:2410.14891.
