QUITS: A modular Qldpc code circUIT Simulator
1Duke Quantum Center, Duke University, Durham, NC 27701, USA
2Department of Physics, Duke University, Durham, NC 27708, USA
3Department of Electrical and Computer Engineering, Duke University, Durham, NC 27708, USA
4Department of Chemistry, Duke University, Durham, NC 27708, USA
| Published: | 2025-12-05, volume 9, page 1931 |
| Editor: | Philipp Schindler |
| Eprint: | arXiv:2504.02673v2 |
| Doi: | https://doi.org/10.22331/q-2025-12-05-1931 |
| Citation: | Quantum 9, 1931 (2025). |
Find this paper interesting or want to discuss? Scite or leave a comment on SciRate.
Abstract
To achieve quantum fault tolerance with lower overhead, quantum low-density parity-check (QLDPC) codes have emerged as a promising alternative to topological codes such as the surface code, offering higher code rates. To support their study, an end-to-end framework for simulating QLDPC codes at the circuit level is needed. In this work, we present QUITS, a modular and flexible circuit-level simulator for QLDPC codes. Its design allows users to freely combine LDPC code constructions, syndrome extraction circuits, decoding algorithms, and noise models, enabling comprehensive and customizable studies of the performance of QLDPC codes under circuit-level noise. QUITS supports several leading QLDPC families, including hypergraph product codes, lifted product codes, and balanced product codes. As part of the framework, we introduce a syndrome extraction circuit improved from Tremblay, Delfosse, and Beverland [Phys. Rev. Lett. 129, 050504 (2022)] that applies to all three code families. In particular, for a small hypergraph product code, our circuit achieves lower depth than the conventional method, resulting in improved logical performance. Using QUITS, we evaluate the performance of state-of-the-art QLDPC codes and decoders under various settings, revealing trade-offs between the decoding runtime and the logical failure rate. The source code of QUITS is available online.

Featured image: QUITS: A modular Qldpc code circUIT Simulator
Popular summary
Open-source repo: https://github.com/mkangquantum/quits
► BibTeX data
► References
[1] Dorit Aharonov and Michael Ben-Or. Fault-tolerant quantum computation with constant error. In Proceedings of the twenty-ninth annual ACM symposium on Theory of computing, pages 176–188, 1997. 10.1145/258533.258579.
https://doi.org/10.1145/258533.258579
[2] Lucas Berent, Timo Hillmann, Jens Eisert, Robert Wille, and Joschka Roffe. Analog information decoding of bosonic quantum low-density parity-check codes. PRX Quantum, 5 (2): 020349, 2024. 10.1103/PRXQuantum.5.020349.
https://doi.org/10.1103/PRXQuantum.5.020349
[3] 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 (2): 020341, 2021. 10.1103/PRXQuantum.2.020341.
https://doi.org/10.1103/PRXQuantum.2.020341
[4] Dolev Bluvstein, Simon J Evered, Alexandra A Geim, Sophie H Li, Hengyun Zhou, Tom Manovitz, Sepehr Ebadi, Madelyn Cain, Marcin Kalinowski, Dominik Hangleiter, et al. Logical quantum processor based on reconfigurable atom arrays. Nature, 626 (7997): 58–65, 2024. 10.1038/s41586-023-06927-3.
https://doi.org/10.1038/s41586-023-06927-3
[5] Sergey Bravyi, David Poulin, and Barbara Terhal. Tradeoffs for reliable quantum information storage in 2d systems. Physical Review Letters, 104 (5): 050503, 2010. 10.1103/PhysRevLett.104.050503.
https://doi.org/10.1103/PhysRevLett.104.050503
[6] Sergey Bravyi, Andrew W Cross, Jay M Gambetta, Dmitri Maslov, Patrick Rall, and Theodore J Yoder. High-threshold and low-overhead fault-tolerant quantum memory. Nature, 627 (8005): 778–782, 2024. 10.1038/s41586-024-07107-7.
https://doi.org/10.1038/s41586-024-07107-7
[7] Nikolas P Breuckmann and Jens N Eberhardt. Balanced product quantum codes. IEEE Transactions on Information Theory, 67 (10): 6653–6674, 2021a. 10.1109/TIT.2021.3097347.
https://doi.org/10.1109/TIT.2021.3097347
[8] Nikolas P Breuckmann and Jens Niklas Eberhardt. Quantum low-density parity-check codes. PRX Quantum, 2 (4): 040101, 2021b. 10.1103/PRXQuantum.2.040101.
https://doi.org/10.1103/PRXQuantum.2.040101
[9] Madelyn Cain, Chen Zhao, Hengyun Zhou, Nadine Meister, J Pablo Bonilla Ataides, Arthur Jaffe, Dolev Bluvstein, and Mikhail D Lukin. Correlated decoding of logical algorithms with transversal gates. Physical Review Letters, 133 (24): 240602, 2024. 10.1103/PhysRevLett.133.240602.
https://doi.org/10.1103/PhysRevLett.133.240602
[10] A. R. Calderbank and Peter W. Shor. Good quantum error-correcting codes exist. Phys. Rev. A, 54: 1098–1105, Aug 1996. 10.1103/PhysRevA.54.1098.
https://doi.org/10.1103/PhysRevA.54.1098
[11] Earl T Campbell. A theory of single-shot error correction for adversarial noise. Quantum Science and Technology, 4 (2): 025006, 2019. 10.1088/2058-9565/aafc8f.
https://doi.org/10.1088/2058-9565/aafc8f
[12] Andrew Cross, Zhiyang He, Patrick Rall, and Theodore Yoder. Improved qldpc surgery: Logical measurements and bridging codes. arXiv preprint arXiv:2407.18393, 2024. 10.48550/arXiv.2407.18393.
https://doi.org/10.48550/arXiv.2407.18393
arXiv:2407.18393
[13] Eric Dennis, Alexei Kitaev, Andrew Landahl, and John Preskill. Topological quantum memory. Journal of Mathematical Physics, 43 (9): 4452–4505, 2002. 10.1063/1.1499754.
https://doi.org/10.1063/1.1499754
[14] Omar Fawzi, Antoine Grospellier, and Anthony Leverrier. Constant overhead quantum fault tolerance with quantum expander codes. Communications of the ACM, 64 (1): 106–114, 2020. 10.1145/3434163.
https://doi.org/10.1145/3434163
[15] 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. 10.1103/PhysRevA.80.052312.
https://doi.org/10.1103/PhysRevA.80.052312
[16] Austin G Fowler, Matteo Mariantoni, John M Martinis, and Andrew N Cleland. Surface codes: Towards practical large-scale quantum computation. Physical Review A, 86 (3): 032324, 2012. 10.1103/PhysRevA.86.032324.
https://doi.org/10.1103/PhysRevA.86.032324
[17] Craig Gidney. Stim: a fast stabilizer circuit simulator. Quantum, 5: 497, 2021. 10.22331/q-2021-07-06-497.
https://doi.org/10.22331/q-2021-07-06-497
[18] Anqi Gong, Sebastian Cammerer, and Joseph M Renes. Toward low-latency iterative decoding of QLDPC codes under circuit-level noise. arXiv preprint arXiv:2403.18901, 2024. 10.48550/arXiv.2403.18901.
https://doi.org/10.48550/arXiv.2403.18901
arXiv:2403.18901
[19] Google Quantum AI and Collaborators. Quantum error correction below the surface code threshold. Nature, 638 (8052): 920–926, 2025. 10.1038/s41586-024-08449-y.
https://doi.org/10.1038/s41586-024-08449-y
[20] Daniel Gottesman. Theory of fault-tolerant quantum computation. Physical Review A, 57 (1): 127, 1998. 10.1103/PhysRevA.57.127.
https://doi.org/10.1103/PhysRevA.57.127
[21] Antoine Grospellier. Constant time decoding of quantum expander codes and application to fault-tolerant quantum computation. PhD thesis, Sorbonne Université, 2019.
[22] Antoine Grospellier, Lucien Grouès, Anirudh Krishna, and Anthony Leverrier. Combining hard and soft decoders for hypergraph product codes. Quantum, 5: 432, 2021. 10.22331/q-2021-04-15-432.
https://doi.org/10.22331/q-2021-04-15-432
[23] Oscar Higgott. Pymatching: A python package for decoding quantum codes with minimum-weight perfect matching. ACM Transactions on Quantum Computing, 3 (3): 1–16, 2022. 10.1145/3505637.
https://doi.org/10.1145/3505637
[24] Oscar Higgott and Craig Gidney. Sparse blossom: correcting a million errors per core second with minimum-weight matching. Quantum, 9: 1600, 2025. 10.22331/q-2025-01-20-1600.
https://doi.org/10.22331/q-2025-01-20-1600
[25] 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 (3): 031007, 2023. 10.1103/PhysRevX.13.031007.
https://doi.org/10.1103/PhysRevX.13.031007
[26] Timo Hillmann, Lucas Berent, Armanda O Quintavalle, Jens Eisert, Robert Wille, and Joschka Roffe. Localized statistics decoding for quantum low-density parity-check codes. Nature Communications, 16 (1): 8214, 2025. 10.1038/s41467-025-63214-7.
https://doi.org/10.1038/s41467-025-63214-7
[27] Shilin Huang and Shruti Puri. Increasing memory lifetime of quantum low-density parity check codes with sliding-window noisy syndrome decoding. Physical Review A, 110 (1): 012453, 2024. 10.1103/PhysRevA.110.012453.
https://doi.org/10.1103/PhysRevA.110.012453
[28] Kenta Kasai. Efficient mitigation of error floors in quantum error correction using non-binary low-density parity-check codes. arXiv preprint arXiv:2501.13923, 2025. 10.48550/arXiv.2501.13923.
https://doi.org/10.48550/arXiv.2501.13923
arXiv:2501.13923
[29] Anthony Leverrier and Gilles Zémor. Quantum Tanner codes. In 2022 IEEE 63rd Annual Symposium on Foundations of Computer Science (FOCS), pages 872–883. IEEE, 2022. 10.1109/FOCS54457.2022.00117.
https://doi.org/10.1109/FOCS54457.2022.00117
[30] Hsiang-Ku Lin, Xingrui Liu, Pak Kau Lim, and Leonid P Pryadko. Single-shot and two-shot decoding with generalized bicycle codes. arXiv preprint arXiv:2502.19406, 2025. 10.48550/arXiv.2502.19406.
https://doi.org/10.48550/arXiv.2502.19406
arXiv:2502.19406
[31] Argyris Giannisis Manes and Jahan Claes. Distance-preserving stabilizer measurements in hypergraph product codes. Quantum, 9: 1618, 2025. 10.22331/q-2025-01-30-1618.
https://doi.org/10.22331/q-2025-01-30-1618
[32] A Paetznick, MP da Silva, C Ryan-Anderson, JM Bello-Rivas, JP Campora III, A Chernoguzov, JM Dreiling, C Foltz, F Frachon, JP Gaebler, et al. Demonstration of logical qubits and repeated error correction with better-than-physical error rates. arXiv preprint arXiv:2404.02280, 2024. 10.48550/arXiv.2404.02280.
https://doi.org/10.48550/arXiv.2404.02280
arXiv:2404.02280
[33] Pavel Panteleev and Gleb Kalachev. Degenerate quantum LDPC codes with good finite length performance. Quantum, 5: 585, 2021a. 10.22331/q-2021-11-22-585.
https://doi.org/10.22331/q-2021-11-22-585
[34] Pavel Panteleev and Gleb Kalachev. Quantum LDPC codes with almost linear minimum distance. IEEE Transactions on Information Theory, 68 (1): 213–229, 2021b. 10.1109/TIT.2021.3119384.
https://doi.org/10.1109/TIT.2021.3119384
[35] Balint Pato, Theerapat Tansuwannont, and Kenneth R Brown. Concatenated steane code with single-flag syndrome checks. Physical Review A, 110 (3): 032411, 2024. 10.1103/PhysRevA.110.032411.
https://doi.org/10.1103/PhysRevA.110.032411
[36] Armanda O Quintavalle and Earl T Campbell. Reshape: A decoder for hypergraph product codes. IEEE Transactions on Information Theory, 68 (10): 6569–6584, 2022. 10.1109/TIT.2022.3184108.
https://doi.org/10.1109/TIT.2022.3184108
[37] Robert Raussendorf and Jim Harrington. Fault-tolerant quantum computation with high threshold in two dimensions. Physical Review Letters, 98 (19): 190504, 2007. 10.1103/PhysRevLett.98.190504.
https://doi.org/10.1103/PhysRevLett.98.190504
[38] Nithin Raveendran, Narayanan Rengaswamy, Filip Rozpędek, Ankur Raina, Liang Jiang, and Bane Vasić. Finite rate QLDPC-GKP coding scheme that surpasses the css hamming bound. Quantum, 6: 767, 2022. 10.22331/q-2022-07-20-767.
https://doi.org/10.22331/q-2022-07-20-767
[39] Ben W Reichardt, David Aasen, Rui Chao, Alex Chernoguzov, Wim van Dam, John P Gaebler, Dan Gresh, Dominic Lucchetti, Michael Mills, Steven A Moses, et al. Demonstration of quantum computation and error correction with a tesseract code. arXiv preprint arXiv:2409.04628, 2024. 10.48550/arXiv.2409.04628.
https://doi.org/10.48550/arXiv.2409.04628
arXiv:2409.04628
[40] Tom Richardson. Error floors of ldpc codes. In Proceedings of the annual Allerton conference on communication control and computing, volume 41, pages 1426–1435, 2003.
[41] Joschka Roffe. LDPC: Python tools for low density parity check codes, 2022. URL https://pypi.org/project/ldpc/.
https://pypi.org/project/ldpc/
[42] Joschka Roffe, David R White, Simon Burton, and Earl Campbell. Decoding across the quantum low-density parity-check code landscape. Physical Review Research, 2 (4): 043423, 2020. 10.1103/PhysRevResearch.2.043423.
https://doi.org/10.1103/PhysRevResearch.2.043423
[43] Kaavya Sahay, Yingjia Lin, Shilin Huang, Kenneth R Brown, and Shruti Puri. Error correction of transversal cnot gates for scalable surface-code computation. PRX quantum, 6 (2): 020326, 2025. 10.1103/PRXQuantum.6.020326.
https://doi.org/10.1103/PRXQuantum.6.020326
[44] Thomas R Scruby, Timo Hillmann, and Joschka Roffe. High-threshold, low-overhead and single-shot decodable fault-tolerant quantum memory. arXiv preprint arXiv:2406.14445, 2024. 10.48550/arXiv.2406.14445.
https://doi.org/10.48550/arXiv.2406.14445
arXiv:2406.14445
[45] Luka Skoric, Dan E Browne, Kenton M Barnes, Neil I Gillespie, and Earl T Campbell. Parallel window decoding enables scalable fault tolerant quantum computation. Nature Communications, 14 (1): 7040, 2023. https://doi.org/10.1038/s41467-023-42482-1.
https://doi.org/10.1038/s41467-023-42482-1
[46] Andrew Steane. Multiple-particle interference and quantum error correction. Proc. R. Soc. Lond. A., 452 (1954): 2551–2577, 1996. 10.1098/rspa.1996.0136.
https://doi.org/10.1098/rspa.1996.0136
[47] Ryan Tiew and Nikolas P Breuckmann. Low-overhead entangling gates from generalised dehn twists. IEEE Transactions on Information Theory, 71 (7): 5452–5468, 2025. 10.1109/TIT.2025.3571197.
https://doi.org/10.1109/TIT.2025.3571197
[48] Jean-Pierre Tillich and Gilles Zémor. Quantum LDPC codes with positive rate and minimum distance proportional to the square root of the blocklength. IEEE Transactions on Information Theory, 60 (2): 1193–1202, 2013. 10.1109/TIT.2013.2292061.
https://doi.org/10.1109/TIT.2013.2292061
[49] Yu Tomita and Krysta M Svore. Low-distance surface codes under realistic quantum noise. Physical Review A, 90 (6): 062320, 2014. 10.1103/PhysRevA.90.062320.
https://doi.org/10.1103/PhysRevA.90.062320
[50] Maxime A Tremblay, Nicolas Delfosse, and Michael E Beverland. Constant-overhead quantum error correction with thin planar connectivity. Physical Review Letters, 129 (5): 050504, 2022. 10.1103/PhysRevLett.129.050504.
https://doi.org/10.1103/PhysRevLett.129.050504
[51] Yue Wu and Lin Zhong. Fusion Blossom: Fast MWPM decoders for QEC. In 2023 IEEE International Conference on Quantum Computing and Engineering (QCE), volume 1, pages 928–938. IEEE, 2023. 10.1109/QCE57702.2023.00107.
https://doi.org/10.1109/QCE57702.2023.00107
[52] Qian Xu, J Pablo Bonilla Ataides, Christopher A Pattison, Nithin Raveendran, Dolev Bluvstein, Jonathan Wurtz, Bane Vasić, Mikhail D Lukin, Liang Jiang, and Hengyun Zhou. Constant-overhead fault-tolerant quantum computation with reconfigurable atom arrays. Nature Physics, 20 (7): 1084–1090, 2024. 10.1038/s41567-024-02479-z.
https://doi.org/10.1038/s41567-024-02479-z
Cited by
[1] Seok-Hyung Lee, Lucas H. English, and Stephen D. Bartlett, "Efficient post-selection for general quantum LDPC Codes", npj Quantum Information 12 1, 96 (2026).
[2] Chaithanya Naik Mude and Swamit Tannu, Proceedings of the 58th IEEE/ACM International Symposium on Microarchitecture 579 (2025) ISBN:9798400715730.
[3] Chaithanya Naik Mude and Swamit Tannu, "Accurate Leakage Speculation for Quantum Error Correction", arXiv:2510.25661, (2025).
[4] Bane Vasic, Valentin Savin, Michele Pacenti, Shantom Borah, and Nithin Raveendran, "Quantum Low-Density Parity-Check Codes", arXiv:2510.14090, (2025).
[5] Victor V. Albert and Philippe Faist, "Handbook of Error-Correcting Codes", arXiv:2606.11484, (2026).
[6] Aleksandra Świerkowska, Jannik Pflieger, Emmanouil Giortamis, and Pramod Bhatotia, "ECCentric: An Empirical Analysis of Quantum Error Correction Codes", arXiv:2511.01062, (2025).
[7] Yuhao Liu, Shuohao Ping, Junyu Zhou, Ethan Decker, Justin Kalloor, Mathias Weiden, Kean Chen, Yunong Shi, Ali Javadi-Abhari, Costin Iancu, and Gushu Li, "AlphaSyndrome: Tackling the Syndrome Measurement Circuit Scheduling Problem for QEC Codes", arXiv:2601.12509, (2026).
[8] Sahil Khan, Abhinav Anand, Kenneth R. Brown, and Jonathan M. Baker, "Cyclone: Designing Efficient and Highly Parallel QCCD Architectural Codesigns for Fault Tolerant Quantum Memory", arXiv:2511.15910, (2025).
The above citations are from Crossref's cited-by service (last updated successfully 2026-08-09 08:48:29) and SAO/NASA ADS (last updated successfully 2026-08-08 18:13:20). The list may be incomplete as not all publishers provide suitable and complete citation data.
Could not fetch ADS cited-by data during last attempt 2026-08-09 08:48:29: Cannot retrieve data from ADS due to rate limitations.
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.