[Paper Review] Learning to Decode the Surface Code with a Recurrent, Transformer-Based Neural Network
A recurrent transformer-based neural network learns to decode the surface code and outperforms state-of-the-art decoders on Sycamore experimental data (distances 3 and 5) and realistic noise models up to distance 11, including leakage, cross-talk, and analog readout inputs.
Quantum error-correction is a prerequisite for reliable quantum computation. Towards this goal, we present a recurrent, transformer-based neural network which learns to decode the surface code, the leading quantum error-correction code. Our decoder outperforms state-of-the-art algorithmic decoders on real-world data from Google's Sycamore quantum processor for distance 3 and 5 surface codes. On distances up to 11, the decoder maintains its advantage on simulated data with realistic noise including cross-talk, leakage, and analog readout signals, and sustains its accuracy far beyond the 25 cycles it was trained on. Our work illustrates the ability of machine learning to go beyond human-designed algorithms by learning from data directly, highlighting machine learning as a strong contender for decoding in quantum computers.
Motivation & Objective
- Demonstrate that a neural network can learn to decode the surface code from real hardware and simulated data.
- Show improved error suppression over state-of-the-art decoders in realistic noise settings.
- Leverage rich inputs (I/Q readouts, leakage signals) and calibrated output probabilities for better performance.
- Assess scalability to larger code distances and long error-correction cycles.
- Highlight ML-based decoding as a viable, data-driven alternative to human-designed algorithms.
Proposed method
- Introduce a recurrent, transformer-based neural network architecture with a Syndrome Transformer that exchanges information between stabilizer representations.
- Represent each stabilizer at each cycle with an embedding; update a fixed-size decoder state cycle-by-cycle for time-invariant stabilizer readouts.
- Process inputs including stabilizer measurements and events, and extend inputs to probabilistic I/Q readouts and leakage information.
- Train in two stages: pre-training on detector error models and fine-tuning on experimental data with cross-validation.
- Output calibrated error probabilities through a readout network that maps the decoder state to per-row/column logical observables and a final error probability.
Experimental results
Research questions
- RQ1Can a recurrent, transformer-based decoder learn to decode the surface code from experimental data and circuit-level noise?
- RQ2Does the ML decoder outperform state-of-the-art decoders (tensor network, MWPM variants) on Sycamore data for code distances 3 and 5?
- RQ3How does incorporating rich inputs (I/Q, leakage) and probabilistic readouts affect decoding performance?
- RQ4Can the ML decoder maintain accuracy across larger code distances (up to 11) under realistic noise models?
- RQ5What is the calibration and postselection capability of the ML decoder output for confidence-based error reduction?
Key findings
- The ML decoder achieves lower logical error per round (LER) than tensor network and MWPM decoders on distance-3 and distance-5 Sycamore data (LER 2.901%±0.023% and 2.748%±0.015%, respectively, versus TN and MWPM variants).
- Fine-tuning on experimental data and ensembling improve performance beyond pre-trained models (finetuned ensemble of 20: 2.901% LER for distance-3 and 2.748% LER for distance-5).
- The decoder sustains accuracy up to distance 11 in simulated Pauli+ noise with leakage and cross-talk, achieving 5.37×10^-6 LER at distance 11 (vs 6.74×10^-6 for MWPM-Corr).
- Inclusion of analog I/Q readout information and leakage probabilities further improves decoding performance over hard inputs.
- The decoder generalizes to very long error-correction sequences (up to 100,000 cycles) with maintained advantage over MWPM-Corr and PyMatching in Pauli+ simulations.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.