pith. machine review for the scientific record. sign in

arxiv: 2604.16613 · v1 · submitted 2026-04-17 · 🪐 quant-ph · cs.DC

Recognition: unknown

GreenPeas: Unlocking Adaptive Quantum Error Correction with Just-in-Time Decoding Hypergraphs

Abbas B. Ziad, Hongxiang Fan, Jubo Xu

Pith reviewed 2026-05-10 08:37 UTC · model grok-4.3

classification 🪐 quant-ph cs.DC
keywords adaptivecircuithypergraphsdecodinggreenpeasacrossarchitecturescircuit-level
0
0 comments X

The pith

GreenPeas delivers a just-in-time GPU compiler for decoding hypergraphs that achieves >10x speedup on surface and bivariate bicycle codes, unlocking circuit-level decoding for adaptive quantum error correction.

A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.

Quantum computers must correct errors in real time, but adaptive circuits change their structure based on mid-run measurements. Pre-building every possible error graph for all branches would require impossible amounts of memory. GreenPeas solves this by turning the circuit into a space-time error graph on the fly and running a parallel version of Stim's backtracking algorithm across thousands of GPU threads. The workload for n qubits and l layers is split so many threads work at once. On standard surface and bivariate bicycle codes the tool runs more than ten times faster than the usual pre-compiled approach. Because the graphs are built only when needed, detailed circuit-level decoding becomes practical for these changing circuits instead of using simpler but less accurate phenomenological models.

Core claim

Our implementation achieves a greater than 10x average speedup over the Stim baseline across two of the leading fault-tolerant architectures: the surface and bivariate bicycle codes. As a key use case, we demonstrate that this speedup enables circuit-level decoding of adaptive syndrome measurement circuits, unlocking a regime previously restricted to less accurate phenomenological decoders.

Load-bearing premise

That the just-in-time GPU mapping of Stim's backtracking algorithm preserves numerical correctness and that the compilation latency remains small enough not to dominate the overall decoding time in realistic adaptive workloads.

Figures

Figures reproduced from arXiv: 2604.16613 by Abbas B. Ziad, Hongxiang Fan, Jubo Xu.

Figure 1
Figure 1. Figure 1: Error analysis. (a) The SM circuit for a distance 3 repetition code (two rounds). We show four detectors, coloured orange, blue, green and yellow. The orange (green) detector is defined by the first measurement of ancilla qubit 0 (1). The blue (yellow) detector is defined by the parity of the measurements of ancilla qubit 0 (1). The challenge of error analysis is to find the set of detectors flipped by eac… view at source ↗
Figure 2
Figure 2. Figure 2: Positioning GreenPeas. The DEM serves as a universal IR for targeting various decoder architectures. De￾pending on the use case, viz. static vs. dynamic, either Stim or GreenPeas, respectively, can be used to compile the DEM before lowering to a target backend. 4 Performance Evaluation We perform standard Z-basis memory experiments using the surface and bivariate bicycle codes, two of the leading code fami… view at source ↗
Figure 3
Figure 3. Figure 3: Compilation latency scaling. Mean compilation time per round versus code distance 𝑑 for surface codes (left) and bivariate bicycle codes (right). Top panels show the Stim baseline, while bottom panels display GreenPeas performance across correlation levels 𝐿0 − 𝐿2 and GPU architectures (Ampere, Blackwell). Results are averaged over 10, 000 runs per circuit at a physical error rate of 𝑝 = 0.1%; latency was … view at source ↗
Figure 4
Figure 4. Figure 4: Decoding accuracy and latency scaling. Logical error rate (top) and mean decoding time (bottom) per round versus code distance 𝑑 for surface codes (left) and bivariate bicycle codes (right). Results are obtained using the Tesseract decoder with decoding hypergraphs compiled by GreenPeas (𝐿0-𝐿2) and Stim. The physical error rate 𝑝 = 0.1% in all cases. Top: Each data point represents 20 million samples; erro… view at source ↗
Figure 5
Figure 5. Figure 5: Adaptive code concatenation. A surface code (top) implemented via concatenation with an array of Iceberg codes (bottom). Data qubits in the surface code (orange) map to logical operators within the Iceberg blocks. For example, data qubits 0 and 14 correspond to the first and second logical operators of the leading block, respectively. An initial error detection cycle measures the checks (green) of all Iceb… view at source ↗
Figure 6
Figure 6. Figure 6: Comparison of static and adaptive SM circuits. [PITH_FULL_IMAGE:figures/full_fig_p010_6.png] view at source ↗
read the original abstract

Circuit-level decoders are essential for the realisation of low-overhead fault-tolerant quantum computing. However, they rely on complex hypergraphs that are traditionally compiled ahead-of-time. This static approach introduces a significant bottleneck for an emerging class of adaptive circuits, where the structure is modified during execution based on mid-circuit measurement outcomes. Pre-compiling hypergraphs for all possible circuit branches would incur an exponential memory cost, rendering current tools impractical for these workloads. Hence, we introduce GreenPeas, a C++/CUDA toolchain for the high-speed, just-in-time compilation of decoding hypergraphs. By lowering the circuit to a space-time error propagation graph, we show how Stim's backtracking algorithm can be mapped efficiently onto massively parallel GPU architectures, decomposing the O(nl) workload for a circuit with n qubits and l gate layers across thousands of concurrent threads. Our implementation achieves a greater than 10x average speedup over the Stim baseline across two of the leading fault-tolerant architectures: the surface and bivariate bicycle codes. As a key use case, we demonstrate that this speedup enables circuit-level decoding of adaptive syndrome measurement circuits, unlocking a regime previously restricted to less accurate phenomenological decoders. We aim to open-source GreenPeas to support the research of future adaptive circuit protocols.

Editorial analysis

A structured set of objections, weighed in public.

Desk editor's note, referee report, simulated authors' rebuttal, and a circularity audit. Tearing a paper down is the easy half of reading it; the pith above is the substance, this is the friction.

Axiom & Free-Parameter Ledger

0 free parameters · 2 axioms · 1 invented entities

The contribution is a new software implementation. No numerical free parameters are mentioned. The main assumptions are standard in quantum error correction and GPU programming; the central new entity is the GreenPeas toolchain itself.

axioms (2)
  • domain assumption Stim's backtracking algorithm can be mapped efficiently to massively parallel GPU threads without loss of correctness
    Invoked when the paper describes lowering the circuit to a space-time graph and decomposing the O(nl) workload.
  • domain assumption The space-time error propagation graph accurately captures error behavior for the surface and bivariate bicycle codes under the models considered
    Standard modeling step in circuit-level decoding.
invented entities (1)
  • GreenPeas C++/CUDA toolchain no independent evidence
    purpose: High-speed just-in-time compilation of decoding hypergraphs for adaptive circuits
    New software artifact introduced to avoid exponential pre-compilation memory cost.

pith-pipeline@v0.9.0 · 5529 in / 1452 out tokens · 55228 ms · 2026-05-10T08:37:02.514196+00:00 · methodology

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Reference graph

Works this paper leans on

30 extracted references · 22 canonical work pages · 4 internal anchors

  1. [1]

    Dutoi, Peter J

    Alán Aspuru-Guzik, Anthony D. Dutoi, Peter J. Love, and Martin Head-Gordon. 2005. Simulated Quantum Computation of Molecular Energies.Science309, 5741 (Sept. 2005), 1704–1707. doi:10.1126/ science.1113479

  2. [2]

    Ryan Babbush, Adam Zalcman, Craig Gidney, Michael Broughton, Tanuj Khattar, Hartmut Neven, Thiago Bergamaschi, Justin Drake, and Dan Boneh. 2026. Securing Elliptic Curve Cryptocurrencies against Quantum Vulnerabilities: Resource Estimates and Mitigations. doi:10. 48550/arXiv.2603.28846arXiv:2603.28846

  3. [3]

    Laleh Aghababaie Beni, Oscar Higgott, and Noah Shutty. 2025. Tesser- act: A Search-Based Decoder for Quantum Error Correction. doi:10. 48550/arXiv.2503.10988arXiv:2503.10988

  4. [4]

    Noah Berthusen, Shi Jie Samuel Tan, Eric Huang, and Daniel Gottes- man. 2025. Adaptive Syndrome Extraction.PRX Quantum6, 3 (July 2025), 030307. doi:10.1103/ps3r-wf84

  5. [5]

    Bluvstein, S

    Dolev Bluvstein, Simon J. Evered, Alexandra A. Geim, Sophie H. Li, Hengyun Zhou, Tom Manovitz, Sepehr Ebadi, Madelyn Cain, Marcin Kalinowski, Dominik Hangleiter, J. Pablo Bonilla Ataides, Nishad Maskara, Iris Cong, Xun Gao, Pedro Sales Rodriguez, Thomas Karolyshyn, Giulia Semeghini, Michael J. Gullans, Markus Greiner, Vladan Vuletić, and Mikhail D. Lukin....

  6. [6]

    and Gambetta, Jay M

    Sergey Bravyi, Andrew W. Cross, Jay M. Gambetta, Dmitri Maslov, Patrick Rall, and Theodore J. Yoder. 2024. High-threshold and low- overhead fault-tolerant quantum memory.Nature627, 8005 (March 2024), 778–782. doi:10.1038/s41586-024-07107-7

  7. [7]

    Madelyn Cain, Qian Xu, Robbie King, Lewis R. B. Picard, Harry Levine, Manuel Endres, John Preskill, Hsin-Yuan Huang, and Dolev Bluvstein

  8. [8]

    Shor’s algorithm is possible with as few as 10,000 reconfigurable atomic qubits (2026)

    Shor’s algorithm is possible with as few as 10,000 reconfigurable atomic qubits. doi:10.48550/arXiv.2603.28627arXiv:2603.28627

  9. [9]

    Peter-Jan H. S. Derks, Alex Townsend-Teague, Ansgar G. Burchards, and Jens Eisert. 2025. Designing fault-tolerant circuits using detector error models.Quantum9 (Nov. 2025), 1905. doi:10.22331/q-2025-11- 06-1905

  10. [10]

    César Estébanez, Yago Saez, Gustavo Recio, and Pedro Isasi. 2014. Performance of the most common non-cryptographic hash functions. Software: Practice and Experience44, 6 (June 2014), 681–698. doi:10. 1002/spe.2179

  11. [11]

    Craig Gidney. 2021. Stim: a fast stabilizer circuit simulator.Quantum 5 (July 2021), 497. doi:10.22331/q-2021-07-06-497

  12. [12]

    Google Quantum AI and Collaborators. 2025. Quantum error correc- tion below the surface code threshold.Nature638, 8052 (Feb. 2025), 920–926. doi:10.1038/s41586-024-08449-y

  13. [13]

    Daniel Gottesman. 1997. Stabilizer Codes and Quantum Error Correc- tion. doi:10.48550/arXiv.quant-ph/9705052arXiv:quant-ph/9705052

  14. [14]

    Quintavalle, Jens Eisert, Robert Wille, and Joschka Roffe

    Timo Hillmann, Lucas Berent, Armanda O. Quintavalle, Jens Eisert, Robert Wille, and Joschka Roffe. 2025. Localized statistics decoding for quantum low-density parity-check codes.Nature Communications 16, 1 (Sept. 2025), 8214. doi:10.1038/s41467-025-63214-7

  15. [15]

    A. Yu. Kitaev. 2003. Fault-tolerant quantum computation by anyons. Annals of Physics303, 1 (Jan. 2003), 2–30. doi:10.1016/S0003-4916(02) 00018-0

  16. [16]

    Daniel Litinski. 2019. A Game of Surface Codes: Large-Scale Quantum Computing with Lattice Surgery.Quantum3 (March 2019), 128. doi:10. 22331/q-2019-03-05-128

  17. [17]

    Seth Lloyd. 1996. Universal Quantum Simulators.Science273, 5278 (Aug. 1996), 1073–1078. doi:10.1126/science.273.5278.1073

  18. [18]

    Mundada, Aleksei Khindanov, Yulun Wang, Claire L

    Pranav S. Mundada, Aleksei Khindanov, Yulun Wang, Claire L. Ed- munds, Paul Coote, Michael J. Biercuk, Yuval Baum, and Michael Hush

  19. [19]

    Heterogeneous architectures enable a 138x reduction in physical qubit requirements for fault-tolerant quantum computing under detailed accounting

    Heterogeneous architectures enable a 138x reduction in physi- cal qubit requirements for fault-tolerant quantum computing under detailed accounting. doi:10.48550/arXiv.2604.06319arXiv:2604.06319

  20. [20]

    NVIDIA Corporation. 2026. CCCL: CUDA Core Compute Libraries. https://github.com/NVIDIA/ccclGitHub repository; original release Sept 2020

  21. [21]

    White, Simon Burton, and Earl Campbell

    Joschka Roffe, David R. White, Simon Burton, and Earl Campbell

  22. [22]

    2020), 043423

    Decoding across the quantum low-density parity-check code landscape.Physical Review Research2, 4 (Dec. 2020), 043423. doi:10. 1103/PhysRevResearch.2.043423

  23. [23]

    Self, Marcello Benedetti, and David Amaro

    Chris N. Self, Marcello Benedetti, and David Amaro. 2024. Protecting expressive circuits with a quantum error detection code.Nature Physics 20, 2 (Feb. 2024), 219–224. doi:10.1038/s41567-023-02282-2

  24. [24]

    Peter W. Shor. 1997. Polynomial-Time Algorithms for Prime Factor- ization and Discrete Logarithms on a Quantum Computer.SIAM J. Comput.26, 5 (Oct. 1997), 1484–1509. doi:10.1137/S0097539795293172

  25. [25]

    Theerapat Tansuwannont, Balint Pato, and Kenneth R. Brown. 2023. Adaptive syndrome measurements for Shor-style error correction. Quantum7 (Aug. 2023), 1075. doi:10.22331/q-2023-08-08-1075

  26. [26]

    Barbara M. Terhal. 2015. Quantum error correction for quantum memories.Reviews of Modern Physics87, 2 (April 2015), 307–346. doi:10.1103/RevModPhys.87.307

  27. [27]

    Jean-Pierre Tillich and Gilles Zemor. 2009. Quantum LDPC codes with positive rate and minimum distance proportional to n½. In2009 IEEE International Symposium on Information Theory. 799–803. doi:10.1109/ ISIT.2009.5205648ISSN: 2157-8117

  28. [28]

    Joshua Viszlai, Satvik Maurya, Swamit Tannu, Margaret Martonosi, and Frederic T. Chong. 2026. PropHunt: Automated Optimization of Quantum Syndrome Measurement Circuits. InProceedings of the 31st ACM International Conference on Architectural Support for Program- ming Languages and Operating Systems, Volume 2. ACM, Pittsburgh PA USA, 1476–1491. doi:10.1145/...

  29. [29]

    The Pinnacle Architecture: Reducing the cost of breaking RSA-2048 to 100 000 physical qubits using quantum LDPC codes

    Paul Webster, Lucas Berent, Omprakash Chandra, Evan T. Hockings, Nouédyn Baspin, Felix Thomsen, Samuel C. Smith, and Lawrence Z. Cohen. 2026. The Pinnacle Architecture: Reducing the cost of breaking RSA-2048 to 100 000 physical qubits using quantum LDPC codes. doi:10.48550/arXiv.2602.11457arXiv:2602.11457

  30. [30]

    Ziad, Ankit Zalawadiya, Canberk Topal, Joan Camps, György P

    Abbas B. Ziad, Ankit Zalawadiya, Canberk Topal, Joan Camps, György P. Gehér, Matthew P. Stafford, and Mark L. Turner. 2025. Local clustering decoder as a fast and adaptive hardware decoder for the surface code.Nature Communications16, 1 (Dec. 2025), 11048. doi:10.1038/s41467-025-66773-x 12