QECCT
Transformer decoder that predicts qubit noise from the syndrome of an L=4 toric code.
194 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Parameters
- 1.2M
- Operations
- 194
- Framework
- PyTorch
- Recurrent
- No
- Published
- AAAI 2024
- Cited by
- 8 (as of 27 October 2026)
- Authors
- Yoni Choukroun, Lior Wolf
- Source
- GitHub: yoniLc/DQEC
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m19542
- Graph hash
- e778491544d2dedeb61ffb7499c02fe02bbd56c85381894679ea32ef2db055d4
- Skeleton hash
- 028fba757b822db162f52fe744d2ad17b9fbf4169d5979c4e0b65bf2bebf60ee
- Architecture hash
- 803531e3d84f533676699bc3b68b638ff4d8e4a81040c5985f18940fe90fa7a7
- Diagram SHA-256
- 54acc740c98af8d235db495c68154eae63fca857fb0f7d7c3f8b3fe2d906cb9e
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
QECCT is a neural decoder for quantum error correction codes, which protect quantum information by spreading it across redundant physical qubits so that errors can be detected and corrected. It extends the Error Correction Code Transformer (ECCT), a Transformer decoder for classical codes, to the quantum setting.
A quantum decoder cannot measure the qubits directly, because measurement collapses the wave function, so only the syndrome is available. QECCT therefore replaces the channel-output magnitude that ECCT takes as input with an initial estimate of the noise, which the rest of the network refines. The estimate comes from a shallow network with two fully connected layers and a GELU non-linearity. The decoder layers then apply self-attention under a mask obtained from the code's stabilizers, so the model learns dependencies between related qubits. Training optimizes the logical error rate, a metric computed over a finite field, through a differentiable mapping of the XOR operation.
For faulty syndrome measurements, which are repeated several times, the paper analyzes each measurement separately and pools them in the middle of the decoder. The paper reports that the method outperforms the existing end-to-end neural and classical decoders for small distance topological codes. This model follows the configuration in the repository's example command: a 6 layers QECCT of dimension 128 on the L=4 Toric code, with the independent noise model and without repetitions.
Key idea. QECCT makes syndrome-only quantum decoding fit a Transformer decoder by predicting an initial noise estimate from the syndrome and refining it with code-aware masked self-attention.
- QECCT
- Deep Quantum Error Correction
- DQEC
- quantum error correction
- quantum decoder
- neural decoder
- syndrome decoding
- toric code
- stabilizer code
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{choukroun2023deepquantumerrorcorrection,
title={Deep Quantum Error Correction},
author={Yoni Choukroun and Lior Wolf},
year={2023},
eprint={2301.11930},
archivePrefix={arXiv},
primaryClass={quant-ph},
url={https://arxiv.org/abs/2301.11930},
}