Error-corrected Hadamard gate simulated at the circuit level
1Riverlane, Cambridge, CB2 3BZ, UK
2DAMTP, University of Cambridge, Wilberforce Road, Cambridge, CB3 0WA, UK
3Department of Physics and Astronomy, University of Sheffield, Sheffield S3 7RH, UK
| Published: | 2024-07-02, volume 8, page 1394 |
| Eprint: | arXiv:2312.11605v2 |
| Doi: | https://doi.org/10.22331/q-2024-07-02-1394 |
| Citation: | Quantum 8, 1394 (2024). |
Find this paper interesting or want to discuss? Scite or leave a comment on SciRate.
Abstract
We simulate the logical Hadamard gate in the surface code under a circuit-level noise model, compiling it to a physical circuit on square-grid connectivity hardware. Our paper is the first to do this for a logical unitary gate on a quantum error-correction code. We consider two proposals, both via patch-deformation: one that applies a transversal Hadamard gate (i.e. a domain wall through time) to interchange the logical $X$ and $Z$ strings, and another that applies a domain wall through space to achieve this interchange. We explain in detail why they perform the logical Hadamard gate by tracking how the stabilisers and the logical operators are transformed in each quantum error-correction round. We optimise the physical circuits and evaluate their logical failure probabilities, which we find to be comparable to those of a quantum memory experiment for the same number of quantum error-correction rounds. We present syndrome-extraction circuits that maintain the same effective distance under circuit-level noise as under phenomenological noise. We also explain how a $SWAP$-quantum error-correction round (required to return the patch to its initial position) can be compiled to only four two-qubit gate layers. This can be applied to more general scenarios and, as a byproduct, explains from first principles how the "stepping" circuits of the recent Google paper [1] can be constructed.

Featured image: 3D schematic diagrams of decoding graphs for logical Hadamard gate on rotated surface code.
Popular summary
► BibTeX data
► References
[1] Matt McEwen, Dave Bacon, and Craig Gidney. ``Relaxing hardware requirements for surface code circuits using time-dynamics''. Quantum 7, 1172 (2023).
https://doi.org/10.22331/q-2023-11-07-1172
[2] Daniel Gottesman. ``Stabilizer codes and quantum error correction'' (1997) arXiv:quant-ph/9705052.
arXiv:quant-ph/9705052
[3] Barbara M. Terhal. ``Quantum error correction for quantum memories''. Reviews of Modern Physics 87, 307 (2015).
https://doi.org/10.1103/RevModPhys.87.307
[4] Earl T. Campbell, Barbara M. Terhal, and Christophe Vuillot. ``Roads towards fault-tolerant universal quantum computation''. Nature 549, 172–179 (2017).
https://doi.org/10.1038/nature23460
[5] Joschka Roffe. ``Quantum error correction: an introductory guide''. Contemporary Physics 60, 226–245 (2019).
https://doi.org/10.1080/00107514.2019.1667078
[6] Craig Gidney. ``Stim: a fast stabilizer circuit simulator''. Quantum 5, 497 (2021).
https://doi.org/10.22331/q-2021-07-06-497
[7] R. Raussendorf, J. Harrington, and K. Goyal. ``Topological fault-tolerance in cluster state quantum computation''. New Journal of Physics 9, 199 (2007).
https://doi.org/10.1088/1367-2630/9/6/199
[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] Yu Tomita and Krysta M. Svore. ``Low-distance surface codes under realistic quantum noise''. Physical Review A 90, 062320 (2014).
https://doi.org/10.1103/physreva.90.062320
[10] Christopher Chamberland, Guanyu Zhu, Theodore J. Yoder, Jared B. Hertzberg, and Andrew W. Cross. ``Topological and subsystem codes on low-degree graphs with flag qubits''. Physical Review X 10, 011022 (2020).
https://doi.org/10.1103/PhysRevX.10.011022
[11] Oscar Higgott, Thomas C. Bohdanowicz, Aleksander Kubica, Steven T. Flammia, and Earl T. Campbell. ``Improved decoding of circuit noise and fragile boundaries of tailored surface codes''. Physical Review X 13, 031007 (2023).
https://doi.org/10.1103/PhysRevX.13.031007
[12] Christopher Chamberland and Earl T. Campbell. ``Circuit-level protocol and analysis for twist-based lattice surgery''. Physical Review Research 4, 023090 (2022).
https://doi.org/10.1103/PhysRevResearch.4.023090
[13] Christopher Chamberland and Earl T. Campbell. ``Universal quantum computing with twist-free and temporally encoded lattice surgery''. PRX Quantum 3, 010331 (2022).
https://doi.org/10.1103/PRXQuantum.3.010331
[14] Dominic Horsman, Austin G. Fowler, Simon Devitt, and Rodney Van Meter. ``Surface code quantum computing by lattice surgery''. New Journal of Physics 14, 123011 (2012).
https://doi.org/10.1088/1367-2630/14/12/123011
[15] György P. Gehér, Ophelia Crawford, and Earl T. Campbell. ``Tangling schedules eases hardware connectivity requirements for quantum error correction''. PRX Quantum 5, 010348 (2024).
https://doi.org/10.1103/prxquantum.5.010348
[16] Sergey Bravyi, Graeme Smith, and John A. Smolin. ``Trading classical and quantum computational resources''. Physical Review X 6, 021043 (2016).
https://doi.org/10.1103/PhysRevX.6.021043
[17] Nick S. Blunt, György P. Gehér, and Alexandra E. Moylett. ``Compilation of a simple chemistry application to quantum error correction primitives''. Phys. Rev. Res. 6, 013325 (2024).
https://doi.org/10.1103/PhysRevResearch.6.013325
[18] Craig Gidney and Martin Ekerå. ``How to factor 2048 bit RSA integers in 8 hours using 20 million noisy qubits''. Quantum 5, 433 (2021).
https://doi.org/10.22331/q-2021-04-15-433
[19] Daniel Litinski and Naomi Nickerson. ``Active volume: An architecture for efficient fault-tolerant quantum computers with limited non-local connections'' (2022). arXiv:2211.15465.
arXiv:2211.15465
[20] Hector Bombin, Chris Dawson, Ryan V. Mishmash, Naomi Nickerson, Fernando Pastawski, and Sam Roberts. ``Logical blocks for fault-tolerant topological quantum computation''. PRX Quantum 4, 020303 (2023).
https://doi.org/10.1103/PRXQuantum.4.020303
[21] Daniel Litinski. ``A game of surface codes: Large-scale quantum computing with lattice surgery''. Quantum 3, 128 (2019).
https://doi.org/10.22331/q-2019-03-05-128
[22] Daniel Litinski and Felix von Oppen. ``Lattice surgery with a twist: simplifying Clifford gates of surface codes''. Quantum 2, 62 (2018).
https://doi.org/10.22331/q-2018-05-04-62
[23] Eric Dennis, Alexei Kitaev, Andrew Landahl, and John Preskill. ``Topological quantum memory''. Journal of Mathematical Physics 43, 4452–4505 (2002).
https://doi.org/10.1063/1.1499754
[24] Felix Thomsen, Markus S. Kesselring, Stephen D. Bartlett, and Benjamin J. Brown. ``Low-overhead quantum computing with the color code'' (2022). arXiv:2201.07806.
arXiv:2201.07806
[25] Oscar Higgott and Craig Gidney. ``Sparse blossom: correcting a million errors per core second with minimum-weight matching''. arXiv:2303.15933 (2023).
https://doi.org/10.48550/arXiv.2303.15933
arXiv:2303.15933
[26] György P. Gehér, Campbell McLauchlan, Earl T. Campbell, Alexandra E. Moylett, and Ophelia Crawford. ``Stim circuits and collected data for `Error-corrected Hadamard gate simulated at the circuit level' manuscript''. https://doi.org/10.5281/zenodo.10391116 (2023).
https://doi.org/10.5281/zenodo.10391116
[27] Craig Gidney, Michael Newman, and Matt McEwen. ``Benchmarking the Planar Honeycomb Code''. Quantum 6, 813 (2022).
https://doi.org/10.22331/q-2022-09-21-813
[28] Alexandru Paler and Austin G. Fowler. ``Pipelined correlated minimum weight perfect matching of the surface code''. arXiv:2205.09828 (2022).
https://doi.org/10.48550/arXiv.2205.09828
arXiv:2205.09828
[29] Ben Barber, Kenton M. Barnes, Tomasz Bialas, Okan Buğdaycı, Earl T. Campbell, Neil I. Gillespie, Kauser Johar, Ram Rajan, Adam W. Richardson, Luka Skoric, Canberk Topal, Mark L. Turner, and Abbas B. Ziad. ``A real-time, scalable, fast and highly resource efficient decoder for a quantum computer'' (2023). arXiv:2309.05558.
arXiv:2309.05558
[30] Craig Gidney. ``Inplace access to the surface code Y basis''. Quantum 8, 1310 (2024).
https://doi.org/10.22331/q-2024-04-08-1310
[31] Daniel Litinski. ``Magic state distillation: Not as costly as you think''. Quantum 3, 205 (2019).
https://doi.org/10.22331/q-2019-12-02-205
[32] Craig Gidney, Michael Newman, Peter Brooks, and Cody Jones. ``Yoked surface codes'' (2023). arXiv:2312.04522.
arXiv:2312.04522
[33] Benjamin J. Brown, Katharina Laubscher, Markus S. Kesselring, and James R. Wootton. ``Poking holes and cutting corners to achieve clifford gates with the surface code''. Physical Review X 7, 021029 (2017).
https://doi.org/10.1103/physrevx.7.021029
[34] Hector Bombin. ``Topological order with a twist: Ising anyons from an abelian model''. Physical Review Letters 105, 030403 (2010).
https://doi.org/10.1103/physrevlett.105.030403
[35] Andrew J. Landahl and Benjamin C. A. Morrison. ``Logical fermions for fault-tolerant quantum simulation'' (2023). arXiv:2110.10280.
arXiv:2110.10280
[36] Markus S. Kesselring, Fernando Pastawski, Jens Eisert, and Benjamin J. Brown. ``The boundaries and twist defects of the color code and their applications to topological quantum computation''. Quantum 2, 101 (2018).
https://doi.org/10.22331/q-2018-10-19-101
Cited by
[1] Bálint Domokos, Áron Márton, and János K. Asbóth, "Characterization of errors in a CNOT between surface code patches", Quantum 8, 1577 (2024).
[2] György P. Gehér, Marcin Jastrzebski, Earl T. Campbell, and Ophelia Crawford, "To reset, or not to reset—that is the question", npj Quantum Information 11 1, 39 (2025).
[3] Spiro Gicev, Lloyd C L Hollenberg, and Muhammad Usman, "Fully convolutional 3D neural network decoders for surface codes with syndrome circuit noise", Quantum Science and Technology 11 2, 025048 (2026).
[4] Adam Siegel, Zhenyu Cai, Hamza Jnane, Balint Koczor, Shaun Pexton, Armands Strikis, and Simon Benjamin, "Quantum Snakes on a Plane: Mobile, Low-Dimensional Logical Qubits on a 2D Surface", PRX Quantum 7 1, 010339 (2026).
[5] Hugo Jacinto, Élie Gouzien, and Nicolas Sangouard, "Network requirements for distributed quantum computation", Physical Review Research 8 1, 013205 (2026).
[6] Laura Caune, Luka Skoric, Nick S. Blunt, Archibald Ruban, Jimmy McDaniel, Joseph A. Valery, Andrew D. Patterson, Alexander V. Gramolin, Joonas Majaniemi, Kenton M. Barnes, Tomasz Bialas, Okan Buğdaycı, Ophelia Crawford, György P. Gehér, Hari Krovi, Elisha Matekole, Canberk Topal, Stefano Poletto, Michael Bryant, Kalan Snyder, Neil I. Gillespie, Glenn Jones, Kauser Johar, Earl T. Campbell, and Alexander D. Hill, "Demonstrating real-time and low-latency quantum error correction with superconducting qubits", Nature Communications 17 1, 7383 (2026).
[7] Zi-Han Chen, Ming-Cheng Chen, Chao-Yang Lu, and Jian-Wei Pan, "Efficient Magic State Cultivation on RP2", PRX Quantum 7 1, 010315 (2026).
[8] Abbas B. Ziad, Ankit Zalawadiya, Canberk Topal, Joan Camps, György P. Gehér, Matthew P. Stafford, and Mark L. Turner, "Local clustering decoder as a fast and adaptive hardware decoder for the surface code", Nature Communications 16 1, 11048 (2025).
[9] Siddharth Dangwal, Suhas Vittal, Lennart Maximilian Seifert, Frederic T. Chong, and Gokul Subramanian Ravi, Proceedings of the 52nd Annual International Symposium on Computer Architecture 1417 (2025) ISBN:9798400712616.
[10] Ioana Moflic and Alexandru Paler, "On the constant depth implementation of Pauli exponentials", npj Quantum Information 12 1, 82 (2026).
[11] Tyler LeBlond and Ryan S. Bennink, "Quantum Resource Comparison for Two Leading Surface Code Lattice Surgery Approaches", Quantum 10, 2187 (2026).
[12] Yuanfeng Xie, Hanqing Luo, and Aoxue Ding, "Design of a high-stability QPUF and QRNG circuit based on CCNOT gate", Computers & Security 159, 104694 (2025).
[13] Abu Kaisar Mohammad Masum, Mehran Shoushtari Moghadam, Lida Kouhalvandi, M. Hassan Najafi, Arman Roohi, and Sercan Aygun, 2025 IEEE International Conference on Quantum Computing and Engineering (QCE) 468 (2025) ISBN:979-8-3315-5736-2.
[14] Mark L. Turner, Earl T. Campbell, Ophelia Crawford, Neil I. Gillespie, and Joan Camps, "Scalable Decoding Protocols for Fast Transversal Logic in the Surface Code", PRX Quantum 7 1, 010320 (2026).
[15] Jia‐Ning Li, Tian‐Hao Wei, Zi‐Hao Mei, Qi Zhou, Wei‐Cheng Kong, Jiaxuan Zhang, Yu‐Chun Wu, and Guo‐Ping Guo, "Real‐Time Decoding For Surface Code", Advanced Quantum Technologies 9 5, e00806 (2026).
[16] Yujin Kang, Youshin Chung, Huidan Zheng, Sungyeon Kook, and Jun Heo, 2024 IEEE International Conference on Quantum Computing and Engineering (QCE) 416 (2024) ISBN:979-8-3315-4137-8.
[17] Kishan Bhushan Sahay and Mukhtiar Singh, "Quantum-Inspired Deep Learning Model for Short-Term Load Forecasting in Smart Grid Energy Management", IEEE Access 14, 32702 (2026).
[18] Áron Márton, Luis Colmenarez, Lukas Bödeker, and Markus Müller, "Lattice surgery-based logical state teleportation via noisy links", Physical Review Research 7 3, 033238 (2025).
[19] Surabhi Luthra, Alexandra E Moylett, Dan E Browne, and Earl T Campbell, "Unlocking early fault-tolerant quantum computing with mitigated magic dilution", Quantum Science and Technology 10 4, 045066 (2025).
[20] Younghun Kim, Martin Sevior, and Muhammad Usman, "Transversal cnot gate with multicycle error correction", Physical Review Applied 23 2, 024074 (2025).
[21] Joan Camps, Ophelia Crawford, György P Gehér, Alexander V Gramolin, Matthew P Stafford, and Mark L Turner, "Leakage mobility in superconducting qubits as a leakage reduction unit", Physica Scripta 101 11, 115107 (2026).
[22] Stergios Koutsioumpas, Tamas Noszko, Hasan Sayginel, Mark Webster, and Joschka Roffe, "Colour Codes Reach Surface Code Performance using Vibe Decoding", arXiv:2508.15743, (2025).
[23] Younghun Kim, Spiro Gicev, Martin Sevior, and Muhammad Usman, "Time-Dynamic Circuits for Fault-Tolerant Shift Automorphisms in Quantum LDPC Codes", arXiv:2601.09911, (2026).
[24] Ryan V. Mishmash, Vadym Kliuchnikov, Juan Bello-Rivas, Adam Paetznick, David Aasen, Christina Knapp, Yue Wu, Bela Bauer, Marcus P. da Silva, and Parsa Bonderson, "Excising dead components in the surface code using minimally invasive alterations: A performance study", arXiv:2508.04786, (2025).
[25] Michael E. Beverland, Shilin Huang, and Vadym Kliuchnikov, "Fault tolerance of stabilizer channels", arXiv:2401.12017, (2024).
[26] Mark Walters and Mark L. Turner, "Minimum Weight Decoding in the Colour Code is NP-hard", arXiv:2603.04234, (2026).
The above citations are from Crossref's cited-by service (last updated successfully 2026-08-12 00:48:38) and SAO/NASA ADS (last updated successfully 2026-08-12 00:48:40). 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.