A scalable and real-time neural decoder for topological quantum codes

Andrew W. Senior, Thomas Edlich, Francisco J. H. Heras, Lei M. Zhang, Oscar Higgott, James S. Spencer, Taylor Applebaum, Sam Blackwell, Justin Ledford, Akvile Zemgulyte, Augustin Zídek, Noah Shutty, Andrew Cowie, Yin Li, George Holland, Peter Brooks, Charlie Beattie, Michael Newman, Alex Davies, Cody Jones, Sergio Boixo, Hartmut Neven, Pushmeet Kohli, Johannes BauscharXiv 2025 · DOI

Introduction

Quantum Error Correction (QEC) is the cornerstone of fault-tolerant quantum computing. It involves encoding logical information into a large grid of physical qubits to protect against noise. This process generates a continuous stream of parity checks, known as "syndromes," which must be interpreted by a classical decoder to identify and correct errors. To be practical, a decoder must solve a difficult "trilemma": it must be highly accurate, fast enough to keep up with the quantum hardware's clock cycle (approx. 1 µs for superconducting qubits), and scalable to the large number of qubits required for complex algorithms.

Methods: The AlphaQubit 2 Architecture

AlphaQubit 2 (AQ2) is a neural-network-based decoder designed to break this trade-off. It employs a novel spatiotemporal architecture that processes syndrome data in a streaming fashion.

AlphaQubit 2 architecture showing the interleaved RNN and Transformer layers for spatiotemporal decoding.

The architecture consists of:

  • Interleaved Layers: Recurrent Neural Network (RNN) layers handle the temporal dimension of error evolution, while Transformer layers capture spatial correlations across the qubit grid.
  • Temporal Compression: To maximize throughput, AQ2 groups multiple measurement cycles into single blocks for processing. This allows the decoder to maintain real-time speeds without sacrificing accuracy.
  • Real-Time Optimization (AQ2-RT): A compact version of the model was specifically optimized for Google’s Trillium TPUs, demonstrating that commercial AI hardware can meet the sub-microsecond requirements of quantum error correction.

Results and Hardware Validation

The researchers evaluated AQ2 using both large-scale simulations and experimental data from Google’s 105-qubit "Willow" processor.

Performance metrics for AQ2, showing detection event density and logical error rates across different code types and hardware platforms.

Accuracy and Scalability

As shown in Figure 4b, AQ2 achieves near-optimal accuracy. In simulations, it reached logical error rates below $10^{-10}$ per cycle, matching or exceeding the performance of the best classical decoders like Libra and Tesseract, which are too slow for real-time use. The model also proved highly effective for color codes, which are resource-efficient but historically difficult to decode.

Real-Time Performance on Hardware

AQ2-RT achieved a decoding speed of less than 1 µs per cycle for surface codes up to distance 11. This matches the "speed of sound" required for superconducting hardware. When tested on real data from the Willow chip, AQ2 outperformed its predecessor (AlphaQubit 1), demonstrating robustness against the complex, non-ideal noise found in physical quantum processors.

Conclusion

AlphaQubit 2 represents a significant leap toward practical fault-tolerant quantum computing. By demonstrating that a high-accuracy neural decoder can run in real-time on commercial AI accelerators, this work removes a major bottleneck in the QEC pipeline. Future efforts will focus on reducing end-to-end latency and integrating the decoder into a closed-loop system for live error correction during logical gate operations.

Summary updated

BibTeX
@misc{senior2025scalable,
  author = {Andrew W. Senior and Thomas Edlich and Francisco J. H. Heras and Lei M. Zhang and Oscar Higgott and James S. Spencer and Taylor Applebaum and Sam Blackwell and Justin Ledford and Akvile Zemgulyte and Augustin Zídek and Noah Shutty and Andrew Cowie and Yin Li and George Holland and Peter Brooks and Charlie Beattie and Michael Newman and Alex Davies and Cody Jones and Sergio Boixo and Hartmut Neven and Pushmeet Kohli and Johannes Bausch},
  title = {{A scalable and real-time neural decoder for topological quantum codes}},
  year = {2025},
  eprint = {2512.07737},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.07737},
}
Figure