Abstract
With the development of quantum hardware bringing error-corrected quantum circuits to the near future, the lack of efficient polynomial-time decoding algorithms for logical circuits presents a critical bottleneck. While quantum memory decoding has been well-studied, inevitable correlated errors introduced by entangling logical gates prevent the straightforward generalization of quantum memory decoders. We introduce a data-centric modular decoder framework, Multi-Core Circuit Decoder (MCCD), consisting of decoder modules corresponding to each logical operation supported by the quantum hardware. The MCCD handles both single-qubit and entangling gates within a unified framework. We train MCCD using mirror-symmetric random Clifford circuits, demonstrating its ability to effectively learn correlated decoding patterns. Through extensive testing on circuits significantly deeper than those used in training, we show that MCCD maintains high logical accuracy while exhibiting competitive polynomial decoding time across increasing circuit depths and code distances. When compared with conventional decoders like Minimum Weight Perfect Matching (MWPM), Most Likely Error (MLE), and Belief Propagation with Ordered Statistics Post-processing (BP-OSD), MCCD achieves competitive accuracy with substantially better time efficiency, particularly for circuits with entangling gates. Our approach represents a noise-model agnostic solution to the decoding challenge for deep logical quantum circuits.
Introduction: The Decoding Challenge
To build reliable quantum computers, we must use Quantum Error Correction (QEC) to group noisy "physical qubits" into stable "logical qubits." As the quantum circuit runs, we continuously measure "syndromes"—flags that indicate a physical error has occurred. A classical algorithm called a decoder must process these syndromes to determine if a logical error happened.
While decoding a single resting logical qubit (quantum memory) is well-studied, real quantum algorithms require logical gates. Entangling gates, like the CNOT gate, cause physical errors to propagate from one logical qubit to another, creating "correlated errors." Conventional graph-based decoders like Minimum Weight Perfect Matching (MWPM) struggle to handle the complex hyperedges created by these correlated errors. On the other hand, highly accurate decoders like Most Likely Error (MLE) are NP-hard and scale exponentially with circuit depth, making them far too slow to keep up with the clock speeds of actual quantum hardware.
The Multi-Core Circuit Decoder (MCCD)
The authors propose the Multi-Core Circuit Decoder (MCCD), a data-centric, modular machine learning decoder based on Long Short-Term Memory (LSTM) networks. Instead of a monolithic network, MCCD assigns a dedicated processing cell (a specific LSTM module) to each logical gate in the hardware's native gate set (e.g., $I, X, Y, Z, H$, CNOT).
As the quantum circuit executes, the syndrome data is fed into the corresponding ML module. The architecture relies on two key features:
- Memory: The LSTMs maintain a "hidden state" for each logical qubit, tracking its error history over time.
- Entanglement Handling: For a two-qubit gate like CNOT, the dedicated module takes the hidden states and new syndromes from both the control and target qubits, updating them simultaneously. This allows the network to naturally learn how errors propagate between qubits.
Training via Mirror-Symmetry
To train the network without needing a complex, manually defined loss function, the authors use mirror-symmetric random Clifford circuits. They apply a random sequence of logical gates, followed immediately by their inverses. In a noiseless system, the final state would perfectly match the initial state. Any deviation provides a perfect, automatically generated ground-truth label (error vs. no error) to train the network via cross-entropy loss. They also employ curriculum learning, training the single-qubit modules first before freezing them to train the more complex two-qubit CNOT module.
Datasets and Evaluation
The authors generated simulated training and testing data using the stim package, modeling rotated surface codes at distances $d=3$ and $d=5$. The noise model was designed to mimic realistic circuit-level noise found in neutral-atom quantum computers, including depolarizing noise, Pauli noise, idling errors, and measurement/reset errors. Evaluation was performed on two benchmarks: Circuit Type I (single-qubit gates only) and Circuit Type II (random scrambling circuits with CNOT gates causing heavy correlated errors).
Key Results and Insights
- Linear Time Complexity: MCCD achieves $O(D)$ (linear) wall-time scaling with circuit depth $D$. It vastly outperforms the exponential scaling of MLE and the rapid polynomial scaling of BP-OSD at higher code distances.
- Strong Generalization: Even though MCCD was trained only on shallow circuits (up to depth 10), it successfully generalized to circuits nearly twice as deep (up to depth 36) without any drop in accuracy or speed.
- Handling Correlated Errors: On complex Type II circuits, where MWPM often fails, MCCD matched the high accuracy of computationally expensive MLE and BP-OSD decoders in a fraction of the time.
- Noise-Model Agnosticism: Unlike conventional decoders that require explicit knowledge of hardware noise rates to build probabilistic graphs, MCCD learns the noise profile purely from the raw syndrome data.
Conclusion and Future Work
MCCD represents a significant step toward real-time decoding for fault-tolerant quantum computers. While currently limited to relatively small code distances ($d=3, 5$) and transversal implementations, the framework is highly extensible. Future directions include scaling to larger code distances using techniques like "context windows" from Large Language Models (LLMs) and extending the framework to support non-Clifford gates implemented via lattice surgery or magic state teleportation.
Summary updated