Introduction
Quantum Error Correction (QEC) is essential for the realization of fault-tolerant quantum computing, as qubits are highly susceptible to environmental noise. Quantum Low-Density Parity-Check (QLDPC) codes are a promising class of codes for this purpose. However, decoding these codes efficiently remains a challenge. Traditional algorithms like Belief Propagation (BP) often suffer from performance degradation due to short cycles in the code's Tanner graph. While high-performance decoders like Ordered Statistics Decoding (OSD) exist, their computational complexity can be prohibitive for large-scale systems. This paper introduces a message-passing Graph Neural Network (GNN) decoder that achieves state-of-the-art accuracy with linear computational complexity.
Methodology
The proposed approach leverages the inherent graph structure of QLDPC codes by mapping their Tanner graphs directly onto a GNN architecture. In this framework, variable nodes (representing qubits) and check nodes (representing parity checks) exchange "messages" that are refined through learned functions.
The GNN decoder utilizes several key components to enhance its performance:
- Learned Message Functions: Instead of the fixed mathematical updates used in standard BP, the GNN employs two-layer feed-forward networks to compute messages.
- Attention Mechanism: An attention-based aggregation scheme allows nodes to dynamically weight incoming messages, prioritizing more informative parity checks.
- Gated Recurrent Units (GRU): GRUs are used to update the internal hidden states of nodes across multiple iterations, enabling the network to retain and integrate information over time.
The model is trained using a Binary Cross Entropy (BCE) loss function on a dataset of $5 \times 10^3$ error/syndrome pairs, generated using a semi-controlled method to ensure a diverse representation of error patterns.
Experimental Results
The GNN decoder was evaluated on two distinct quantum codes: a [[129, 28]] Hypergraph-Product (HGP) code and a [[256, 32]] Bicycle code.
As shown in the performance analysis, the GNN decoder significantly outperforms standard BP and even the BP+OSD combination on the HGP code at various physical error rates. Notably, the GNN demonstrates superior performance compared to Neural-enhanced Belief Propagation (NBP), a leading learned decoding method. On the Bicycle code, the GNN similarly outperformed BP and NBP, maintaining competitive accuracy with high-effort OSD decoders while offering much better scalability.
Discussion and Key Insights
A primary advantage of the GNN decoder is its linear complexity ($O(n)$), which is critical for scaling to the thousands of qubits required for fault-tolerant quantum computing. By learning message-passing rules, the GNN effectively mitigates the negative impact of short cycles in the Tanner graph that typically hinder BP. Furthermore, the results suggest that the GNN naturally handles quantum degeneracy—where different errors produce the same syndrome—better than traditional heuristic-based decoders.
Conclusion and Future Work
This work demonstrates that GNNs are a powerful tool for decoding QLDPC codes, offering a scalable and high-performance alternative to classical algorithms. Future research directions include explicitly incorporating quantum degeneracy into the training loss function and conducting detailed hardware-level analysis, such as FLOP counts and power consumption, to further validate the practical feasibility of GNN-based decoders in real-time quantum systems. Testing on larger surface codes and more complex QLDPC constructions also remains an important next step.
Summary updated