- Open Access
Dense packing of the surface code: Code deformation procedures and hook-error-avoiding gate scheduling
Phys. Rev. A 113, 042412 – Published 3 April, 2026
DOI: https://doi.org/10.1103/7lm4-3bnh
Abstract
The surface code is one of the leading quantum error correction codes for realizing large-scale fault-tolerant quantum computing (FTQC). One major challenge in realizing surface-code-based FTQC is the extremely large number of qubits required. To mitigate this problem, fusing multiple code words of the surface code into a densely packed configuration has been proposed. It is known that by using dense packing, the number of physical qubits required per logical qubit can be reduced to approximately three-fourths compared to simply placing surface-code patches side by side. Despite its potential, concrete deformation procedures and quantitative error-rate analyses have remained largely unexplored. In this work, we present a detailed code-deformation procedure that transforms multiple standard surface-code patches into a densely packed, connected configuration, along with a conceptual microarchitecture to utilize this dense packing. We also propose a cnot gate scheduling for stabilizer measurement circuits that suppresses hook errors in the densely packed surface code. We performed circuit-level Monte Carlo noise simulation of densely packed surface codes using this gate scheduling. The numerical results demonstrate that as the code distance of the densely packed surface code increases and the physical error rate decreases, the logical error rate of the densely packed surface code becomes lower than that of the standard surface code. Furthermore, we find that only when employing hook-error-avoiding syndrome extraction can the densely packed surface code achieve a lower logical error rate than the standard surface code, while simultaneously reducing the space overhead.
Physics Subject Headings (PhySH)
Article Text
References (44)
- P. W. Shor, Polynomial-time algorithms for prime factorization and discrete logarithms on a quantum computer, SIAM J. Comput. 26, 1484 (1997).
- C. Gidney and M. Ekerå, How to factor 2048 bit RSA integers in 8 hours using 20 million noisy qubits, Quantum 5, 433 (2021).
- B. Bauer, S. Bravyi, M. Motta, and G. K.-L. Chan, Quantum algorithms for quantum chemistry and quantum materials science, Chem. Rev. 120, 12685 (2020).
- D. P. DiVincenzo, The physical implementation of quantum computation, Fortschr. Phys. 48, 771 (2000).
- P. W. Shor, Scheme for reducing decoherence in quantum computer memory, Phys. Rev. A 52, R2493 (1995).
- J. Preskill, Reliable quantum computers, Proc. R. Soc. A 454, 385 (1998).
- B. M. Terhal, Quantum error correction for quantum memories, Rev. Mod. Phys. 87, 307 (2015).
- A. Y. Kitaev, Fault-tolerant quantum computation by anyons, Ann. Phys. (NY) 303, 2 (2003).
- R. Acharya, L. Aghababaie-Beni, I. Aleiner, T. I. Andersen, M. Ansmann, F. Arute, K. Arya, A. Asfaw, N. Astrakhantsev, J. Atalaya, et al., Quantum error correction below the surface code threshold, Nature (London) 638, 920 (2025).
- X. Xue, M. Russ, N. Samkharadze, B. Undseth, A. Sammak, G. Scappucci, and L. M. Vandersypen, Quantum logic with spin qubits crossing the surface code threshold, Nature (London) 601, 343 (2022).
- S. B. Bravyi and A. Y. Kitaev, Quantum codes on a lattice with boundary, arXiv:quant-ph/9811052.
- 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).
- D. Horsman, A. G. Fowler, S. Devitt, and R. Van Meter, Surface code quantum computing by lattice surgery, New J. Phys. 14, 123011 (2012).
- A. G. Fowler and C. Gidney, Low overhead quantum computation using lattice surgery, arXiv:1808.06709.
- D. Litinski and F. von Oppen, Lattice surgery with a twist: Simplifying Clifford gates of surface codes, Quantum 2, 62 (2018).
- D. Litinski, A game of surface codes: Large-scale quantum computing with lattice surgery, Quantum 3, 128 (2019).
- H. Bombin and M. A. Martin-Delgado, Optimal resources for topological two-dimensional stabilizer codes: Comparative study, Phys. Rev. A 76, 012305 (2007).
- J. T. Anderson, Homological stabilizer codes, Ann. Phys. (NY) 330, 1 (2013).
- Y. Tomita and K. M. Svore, Low-distance surface codes under realistic quantum noise, Phys. Rev. A 90, 062320 (2014).
- A. R. O'Rourke and S. Devitt, Compare the pair: Rotated versus unrotated surface codes at equal logical error rates, Phys. Rev. Res. 7, 033074 (2025).
- M. B. Hastings and A. Geller, Reduced space-time and time costs using dislocation codes and arbitrary ancillas, Quantum Inf. Comput. 15, 962 (2015).
- S. Nagayama, T. Satoh, and R. Van Meter, State injection, lattice surgery, and dense packing of the deformation-based surface code, Phys. Rev. A 95, 012321 (2017).
- C. Gidney, M. Newman, P. Brooks, and C. Jones, Yoked surface codes, Nat. Commun. 16, 4498 (2025).
- D. Copsey, M. Oskin, F. T. Chong, I. Chuang, and K. Abdel-Gaffar, Memory hierarchies for quantum data, in 1st Workshop on Non-Silicon Computing (2002).
- M. Oskin, F. Chong, and I. Chuang, A practical architecture for reliable quantum computers, Computer 35, 79 (2002).
- D. Thaker, T. Metodi, A. Cross, I. Chuang, and F. Chong, Quantum memory hierarchies efficient designs to match available parallelism in quantum computing, in 33rd International Symposium on Computer Architecture (ISCA '06) (IEEE, New York, 2006), pp. 378–390.
- T. Kobori, Y. Suzuki, Y. Ueno, T. Tanimoto, S. Todo, and Y. Tokunaga, Lsqca: Resource-efficient load/store architecture for limited-scale fault-tolerant quantum computing, in 2025 IEEE International Symposium on High Performance Computer Architecture (HPCA) (, New York, 2025), pp. 304–320.
- D. Gottesman, Stabilizer codes and quantum error correction, arXiv:quant-ph/9705052.
- D. Wang, A. Fowler, A. Stephens, and L. Hollenberg, Threshold error rates for the toric and planar codes, Quantum Inf. Comput. 10, 456 (2010).
- I. Byun, J. Kim, D. Min, I. Nagaoka, K. Fukumitsu, I. Ishikawa, T. Tanimoto, M. Tanaka, K. Inoue, and J. Kim, Xqsim: Modeling cross-technology control processors for 10+k qubit quantum computers, in Proceedings of the 49th Annual International Symposium on Computer Architecture (ISCA '22) (ACM, New York, 2022), pp. 366–382.
- C. Duckering, J. M. Baker, D. I. Schuster, and F. T. Chong, Virtualized logical qubits: A 2.5d architecture for error-corrected quantum computing, in 2020 53rd Annual IEEE/ACM International Symposium on Microarchitecture (MICRO) (IEEE, New York, 2020), pp. 173–185.
- Y. Ueno, M. Kondo, M. Tanaka, Y. Suzuki, and Y. Tabuchi, Qulatis: A quantum error correction methodology toward lattice surgery, in 2022 IEEE International Symposium on High-Performance Computer Architecture (HPCA) (IEEE, New York, 2022), pp. 274–287.
- C. Chamberland and E. T. Campbell, Circuit-level protocol and analysis for twist-based lattice surgery, Phys. Rev. Res. 4, 023090 (2022).
- C. Gidney, Cleaner magic states with hook injection, arXiv:2302.12292.
- H. Bombin and M. A. Martin-Delgado, Quantum measurements and gates by code deformation, J. Phys. A 42, 095302 (2009).
- M. Beverland, V. Kliuchnikov, and E. Schoute, Surface code compilation via edge-disjoint paths, PRX Quantum 3, 020342 (2022).
- C. Chamberland and E. T. Campbell, Universal quantum computing with twist-free and temporally encoded lattice surgery, PRX Quantum 3, 010331 (2022).
- M. E. Beverland, P. Murali, M. Troyer, K. M. Svore, T. Hoefler, V. Kliuchnikov, G. H. Low, M. Soeken, A. Sundaram, and A. Vaschillo, Assessing requirements to scale to practical quantum advantage, arXiv:2211.07629.
- J. Lee, D. W. Berry, C. Gidney, W. J. Huggins, J. R. McClean, N. Wiebe, and R. Babbush, Even more efficient quantum computations of chemistry through tensor hypercontraction, PRX Quantum 2, 030305 (2021).
- Y. Ueno, T. Saito, T. Tanimoto, Y. Suzuki, Y. Tabuchi, S. Tamate, and H. Nakamura, High-performance and scalable fault-tolerant quantum computation with lattice surgery on a 2.5D architecture, arXiv:2411.17519.
- 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).
- K. Fujiu, Code for: Dense packing of the surface code, https://github.com/kohei-fujiu/Dense_Pakcing.
- Y. Hirano and K. Fujii, Locality-aware Pauli-based computation for local magic state preparation, in 2025 IEEE International Conference on Quantum Computing and Engineering (QCE) (IEEE, New York, 2025), Vol. 1, pp. 670–680.