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.
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:
- 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, orA4for complex BB codes). - 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. - Global Readout (
W1A32): A tiny final linear layer uses full 32-bit precision to output the flip probability for each logical qubit.
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 unquantizedFP32ceiling, 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.
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