NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Deep Quantum Error Correction

Yoni Choukroun, Lior Wolf

Introduction

Quantum computing promises exponential speedups for specific computational tasks, but it faces a significant hurdle: the extreme fragility of quantum bits (qubits). Unlike classical bits, qubits are susceptible to continuous errors such as bit-flips ($X$) and phase-flips ($Z$). Furthermore, the no-cloning theorem prevents direct copying of quantum states, and direct measurement collapses the wavefunction, destroying the encoded information.

Quantum Error Correction (QEC) addresses these challenges by encoding logical information across multiple physical qubits. By measuring "syndromes"—parity checks that do not disturb the logical state—we can identify error patterns. The critical task is the decoder: an algorithm that maps these syndromes to the most likely physical errors. This paper introduces QECCT (Quantum Error Correction Code Transformer), an end-to-end deep learning framework designed to outperform classical decoders like Minimum-Weight Perfect Matching (MWPM).

The QECCT Framework

The authors adapt the Error Correction Code Transformer (ECCT) architecture to the quantum domain. QECCT incorporates several domain-specific innovations to handle the unique constraints of quantum systems.

The QECCT architecture, illustrating the initial embedding with noise estimation, the Transformer-based decoding blocks, and the final output stage.

Key Innovations

  1. Noise Estimation Pre-processor ($g_\omega$): Since the decoder cannot directly observe the "received signal," a shallow neural network predicts an initial noise estimate based on the syndrome. This estimate serves as the starting point for the Transformer's refinement process.
  2. Masked Self-Attention: To leverage the local topology of quantum codes (e.g., Toric or Surface codes), the model employs a binary mask derived from the parity-check matrix. This ensures the Transformer focuses on physically related qubits and stabilizers, reducing complexity and preventing overfitting.
  3. Differentiable Logical Error Rate (LER) Loss: Standard XOR operations are non-differentiable, making it hard to train for logical error minimization. The authors utilize a "bipolar mapping" trick to create a differentiable XOR proxy, allowing direct optimization of the LER.
  4. Symmetric Pooling: To handle noisy syndrome measurements in real hardware, QECCT uses repeated measurements and a symmetric pooling layer to maintain invariance to the number of measurement rounds.

Experimental Results

The framework was evaluated using simulated data on Toric codes of various lengths ($L \in \{4, 6, 8, 10\}$) under independent and depolarizing noise models.

Logical Error Rate (LER) and Bit Error Rate (BER) performance for Toric codes. The vertical line indicates the threshold where the code begins to provide a benefit.

QECCT consistently outperformed the MWPM baseline. Notably, on the depolarizing noise model—a realistic and challenging scenario—QECCT achieved a threshold of 0.178, significantly higher than MWPM's 0.157 and approaching the theoretical maximum likelihood limit of approximately 0.189.

Beyond accuracy, QECCT demonstrates high efficiency, with inference times between 0.1 and 0.6 milliseconds. This low latency is crucial for real-time error correction in quantum hardware. The model also proved robust against faulty syndrome measurements, maintaining its performance edge where other neural decoders often fail.

Conclusion and Future Work

QECCT represents a significant step forward in neural quantum decoding, offering superior thresholds and real-time feasibility. However, challenges remain regarding scalability; the quadratic memory cost of self-attention limits training on very large codes ($L > 20$). Future research will explore "Linear Transformer" variants and hardware-specific deployments on FPGAs or AI accelerators to meet the microsecond latency requirements of next-generation quantum computers. Additionally, the application of this masked attention approach to unstructured quantum LDPC codes remains a promising area for investigation.

Summary updated

BibTeX
@inproceedings{choukroun2024deep,
  author = {Yoni Choukroun and Lior Wolf},
  title = {{Deep Quantum Error Correction}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i1.27756},
}
Figure