Precision-Pyramid: Towards real-time neural decoding for fault-tolerant quantum computing

Zhenhao Zhong, Ge Yan, Shanchuan Li, pengyue ma, Yuxuan DuNeurIPS 2026

TL;DR

Quantum computers are notoriously noisy, and while neural networks are brilliant at spotting and fixing quantum errors, they are ordinarily far too slow and heavy to keep up with real-time hardware. Precision-Pyramid ($\mathsf{PP}$) solves this by binarizing all network weights to 1-bit and gradually escalating activation precision from 2-bit up to 32-bit only where it matters most—at the final decision. This clever co-design shifts over 99% of the math onto abundant, ultra-fast FPGA logic gates, beating gold-standard classical decoders in accuracy while easily clearing sub-microsecond speed limits.

What Problem Does This Paper Address?

Physical qubits are fragile; left alone, noise quickly scrambles their quantum states. To build fault-tolerant quantum computers, we encode logical information across many physical qubits using Quantum Error Correction (QEC) codes—such as planar surface codes (great for 2D superconducting chips) or bivariate bicycle (BB) codes (high-density codes suited for neutral atoms).

Without directly measuring and destroying the quantum state, the hardware repeatedly extracts binary clues called syndromes. A classical decoder must read this stream of syndromes and deduce what went wrong—live. On fast superconducting processors, you have less than a microsecond ($1\ \mu\text{s}$) to make that call before errors pile up intolerably.

Here lies a frustrating catch-22:

  • Classical algorithmic decoders (like Minimum-Weight Perfect Matching, or MWPM) are fast enough for specialized hardware like FPGAs, but miss complex, correlated real-world noise.
  • Neural decoders learn messy hardware noise beautifully and achieve state-of-the-art accuracy, but rely on heavy floating-point math and GPUs.

Why not just quantize a neural network down to ultra-low bits so it fits on an FPGA? Because FPGAs have an asymmetric anatomy: they have millions of simple Look-Up Tables (LUTs, great for $\le 4$-bit bitwise ops) alongside fewer than ten thousand specialized Digital Signal Processors (DSPs, needed for $\ge 8$-bit multiplication). Yet if you uniformly crush a neural decoder below 4 bits to use those LUTs, its accuracy catastrophically collapses.

Figure 1: The intrinsic tension between algorithmic accuracy and hardware constraints in neural decoding. a) Performance collapse under uniform quantization. Compressing a standard neural decoder uniformly to extreme low-bit regimes (< INT4) for d = 7 surface code triggers a catastrophic degradation in the logical error rate. b) The conceptual mapping between numerical precision and FPGA resource asymmetry. Low-bit operations can be efficiently implemented using abundant LUTs (∼106) on the FPGA. Conversely, scaling to precisions higher than INT4 necessitates a deployment shift to scarce DSPs (typically < 104).

Methods

Instead of treating quantization as an afterthought, the authors co-design the Precision Pyramid ($\mathsf{PP}$) around both the physics of quantum codes and the silicon layout of FPGAs.

First, 100% of trainable weights across the entire network are strictly binarized to 1-bit ($\{-1, 1\}$). On top of this foundation, activation precision escalates across three stages:

  1. Spatiotemporal Perception (W1A2 / W1A4): Processes the massive stream of multi-round syndromes using alternating spatial graph convolutions (following the code's wiring) and causal temporal convolutions (looking only at current and past rounds). Because this stage dominates computation, activations stay at ultra-low 2-bit (A2, or A4 for complex BB codes).
  2. Logic-Aware Pooling (W1A4): Rather than dumping all detector features into a giant classifier, $\mathsf{PP}$ maps features back onto adjacent data qubits via parity-check incidence matrices and mean-pools them over each logical observable, stepping up to 4-bit precision.
  3. Global Readout (W1A32): A tiny final linear layer uses full 32-bit precision to output the flip probability for each logical qubit.
Figure 2: The PP decoding pipeline. (Left) Schematic representations of the underlying topological graphs, illustrating native compatibility with both planar surface codes and the flattened periodic structure of non-local BB codes. (Right) Forward inference trajectory. The architecture globally enforces 100% binarized weights (W1). First, the spatiotemporal perception stage extracts features via spatial graph convolutions (dilated for surface codes) and causal temporal convolutions utilizing 2-bit activations. Subsequently, these latent features are scattered back to the data qubits and aggregated via an operator-aware mean pooling over the canonical support of the target observable (e.g., ZL for memory-Z), transitioning the activation precision to 4-bit. Finally, a full-precision (32-bit) global decision layer infers the logical parity. This progressively escalating activation hierarchy across the three stages is formally denoted as PP (A2-A4-A32).

Training extreme low-bit networks from scratch is notoriously unstable, especially when your only training label is a single bit at the very end of many syndrome rounds. The authors stabilize optimization with two tricks: fake-end supervision (querying a classical decoder on truncated mid-experiment histories as training wheels early on, then annealing that loss away) and a progressive quantization curriculum (training at higher precision first and gradually stepping down to A2-A4-A32 via straight-through gradient estimators).

Datasets

No new datasets are introduced; evaluations span established simulated and physical benchmarks:

  • Stim Circuit Simulations: Large-scale memory-$Z$ experiments for rotated surface codes ($d \in \{3, 5, 7, 9\}$, up to 161 physical qubits) under uniform depolarizing noise and superconducting-inspired asymmetric SI1000 noise, plus the $[[72, 12, 6]]$ BB code under uniform depolarizing noise.
  • Google Sycamore Hardware Dataset: Publicly available experimental data from physical superconducting qubits for $d=3$ (200,000 shots) and $d=5$ (50,000 shots), accompanied by a hardware-calibrated error model.

Key Insights and Ideas

  • Computational vs. sensitivity asymmetry: QEC decoding does heavy lifting early (sifting through spatiotemporal syndromes) and delicate decision-making late. Keeping perception at 2–4 bits routes $>99\%$ of operations to abundant FPGA LUTs while protecting final readout precision.
  • Quantum neural decoders tolerate 1-bit weights: Binarizing every weight in the model doesn't break fault-tolerant decoding—as long as activations follow a rising precision pyramid rather than a flat, uniform cutoff.
  • Non-local codes need slightly wider perception: While 2-bit perception (A2-A4-A32) suffices for local 2D surface codes, the non-local, torus-like connections of BB codes require bumping initial perception to 4-bit (A4-A4-A32)—which still maps cleanly onto LUTs!
  • Zero-shot generalization across noise rates and real hardware: Models trained at a single physical error rate ($p=0.005$ or $0.004$) generalize zero-shot across lower error rates, and DEM-trained models beat MWPM on real Google Sycamore data before seeing a single experimental shot.

Key Results

  • Surface Codes: Across distances $d = 3, 5, 7, 9$ (both uniform and SI1000 noise), $\mathsf{PP}$ (A2-A4-A32) consistently achieves lower logical error rates than MWPM (PyMatching V2), closely tracking the unquantized FP32 ceiling, whereas prior INT8 FPGA neural decoder LATTE fails to suppress errors as $d$ grows.
  • Real Quantum Hardware: On Google Sycamore ($d=3, 5$), $\mathsf{PP}$ outperforms MWPM in both zero-shot and fine-tuned regimes, capturing unmodeled physical qubit correlations with an even wider margin than in simulation.
  • BB Codes: On the $[[72, 12, 6]]$ code ($k=12$ logical qubits), $\mathsf{PP}$ (A4-A4-A32) surpasses both classical BP+OSD and state-of-the-art Relay-BP in logical accuracy.
  • Real-Time Latency: In post-route Vivado implementation targeting an AMD Versal Premium VP1902 FPGA (400 MHz), surface-code $\mathsf{PP}$ executes in $< 1\ \mu\text{s}$, satisfying strict superconducting cycle budgets, while BB-code $\mathsf{PP}$ runs well within the millisecond-scale budgets of neutral-atom and trapped-ion platforms.
Surface code logical error rate scaling vs distance

Limitations and Future Work

  • Simulated Hardware Deployment: Latency and resource numbers come from rigorous post-route Vivado HLS/implementation analyses rather than deployment on a physical FPGA wired to a live cryostat.
  • LUT Headroom at Larger Scales: Fitting the $d=9$ surface code onto the VP1902 FPGA consumes a high fraction of available LUTs, leaving tight headroom. Scaling to larger code distances ($d > 9$) or denser qLDPC families will require even leaner neural architectures or multi-FPGA/alternative hardware strategies.

Summary updated

Abstract

Real-time quantum error correction (QEC) is a critical bottleneck for fault-tolerant quantum computing due to strict hardware latency constraints. While neural decoders achieve state-of-the-art logical accuracy, their reliance on high-precision, compute-intensive inference precludes real-time deployment. Conversely, uniformly quantizing these models to extreme low-bit regimes for FPGAs triggers a catastrophic collapse in decoding accuracy. To overcome this precision-accuracy bottleneck, we propose Precision Pyramid ($\mathsf{PP}$), a hardware-algorithm co-designed neural decoder applicable to both surface and BB codes. $\mathsf{PP}$ features a monotonically escalating activation precision hierarchy built upon a globally weight-binarized (W1) foundation. By scaling intermediate activations down to INT2 for the massive perception stages and reserving higher precision strictly for the lightweight final logical decision, this hierarchy effectively shifts over $99\%$ of the computational workload to abundant FPGA look-up tables. Comprehensive evaluations on both simulated and hardware-calibrated noise data demonstrate that $\mathsf{PP}$ consistently suppresses logical errors below highly optimized classical baselines (e.g., MWPM and Relay-BP) while seamlessly satisfying stringent sub-microsecond latency budgets.
BibTeX
@inproceedings{zhong2026precision,
  author = {Zhenhao Zhong and Ge Yan and SHANCHUAN LI and pengyue ma and Yuxuan Du},
  title = {{Precision-Pyramid: Towards real-time neural decoding for fault-tolerant quantum computing}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=5TiPghU8Xg},
}
Figure