# 神经网络解码器

神经网络解码器是一种机器学习模型，它把量子纠错码中重复稳定子测量的综合征映射为对逻辑错误的预测，从而取代或增强最小权重完美匹配（MWPM）等人工设计的解码算法。该网络用综合征与引起该综合征的逻辑错误配对样本进行训练，样本或来自模拟的含噪电路，或来自实验数据，然后在运行时推断纠正方案。<sup>[1](https://www.nature.com/articles/s41586-024-08148-8)</sup><sup> • </sup><sup>[2](https://nvidia.github.io/cudaq-qec/examples_rst/qec/decoders.html)</sup>

| 关键事实 | 详情 |
|---|---|
| 任务 | 从综合征测量数据推断最可能的逻辑错误；综合征是连续两次稳定子测量结果之间变化构成的图样。<sup>[2](https://nvidia.github.io/cudaq-qec/examples_rst/qec/decoders.html)</sup><sup> • </sup><sup>[3](https://journals.aps.org/prresearch/pdf/10.1103/PhysRevResearch.7.013029)</sup> |
| 代表性实例 | AlphaQubit 是谷歌 DeepMind 提出的基于循环 Transformer 的解码器，在真实的悬铃木（Sycamore）数据上，于码距3和码距5的表面码上优于最先进的解码器。<sup>[1](https://www.nature.com/articles/s41586-024-08148-8)</sup> |
| 精度提升 | 在谷歌实验数据上，神经网络解码器的逻辑错误率比 MWPM 低约25%，接近最大似然解码器。<sup>[3](https://journals.aps.org/prresearch/pdf/10.1103/PhysRevResearch.7.013029)</sup> |
| 实时速度 | AlphaQubit 2 在商用加速器上，对码距最高到11的表面码，每周期解码时间低于1微秒，并首次实现码距9色彩码的实时解码。<sup>[4](https://arxiv.org/abs/2512.07737)</sup> |
| 阈值表现 | SAQ-Decoder 在环面码上达到10.99%（独立噪声）和18.6%（去极化噪声）的错误阈值，接近11.0%和18.9%的最大似然界。<sup>[5](https://proceedings.iclr.cc/paper_files/paper/2026/hash/26860058f359a4933bbf2b8418eb98c5-Abstract-Conference.html)</sup> |
| 主要局限 | 训练数据需求：在一项基准测试中，面对真实 IBM 硬件电路上7万次采样、高度相关且非均匀的噪声，所有神经网络解码器都未能学会。<sup>[6](https://github.com/thatemocoder/qec-neural-decoder)</sup> |

## 解码问题

量子纠错将逻辑信息编码到一组物理数据量子比特中，辅助量子比特反复测量相邻数据量子比特的宇称。连续两次测量结果之间的变化称为综合征缺陷，它指示错误发生的位置，解码器必须判断哪种错误最可能产生观测到的综合征图样。<sup>[3](https://journals.aps.org/prresearch/pdf/10.1103/PhysRevResearch.7.013029)</sup><sup> • </sup><sup>[2](https://nvidia.github.io/cudaq-qec/examples_rst/qec/decoders.html)</sup>

经典解码器处在精度与效率权衡曲线上的已知位置。MWPM 对表面码上独立的 X 噪声和 Z 噪声精确求解最可能错误问题，但复杂度为多项式级，且在不同噪声模型下表现不一；张量网络解码器（如 Bravyi-Suchara-Vargo 解码器）精度高，但计算代价高得难以承受；而对表面码而言，最大似然解码一般是 #P 难的。<sup>[5](https://proceedings.iclr.cc/paper_files/paper/2026/hash/26860058f359a4933bbf2b8418eb98c5-Abstract-Conference.html)</sup><sup> • </sup><sup>[7](https://errorcorrectionzoo.org/list/quantum_decoders)</sup> 神经网络解码器力求以低得多的计算代价逼近最大似然精度，并处理理想化匹配假设所遗漏的、具有相关性且符合硬件实际的噪声。<sup>[5](https://proceedings.iclr.cc/paper_files/paper/2026/hash/26860058f359a4933bbf2b8418eb98c5-Abstract-Conference.html)</sup><sup> • </sup><sup>[8](https://sprcopen.com/index.php/FAPM/article/view/764)</sup>

## 架构

已有若干网络家族被用于解码任务。早期工作使用前馈网络和循环网络；2018年，舍布鲁克大学量子研究所的物理学家刘业华（Ye-Hua Liu）与大卫·普兰（David Poulin）训练了用于量子 LDPC 码的神经置信传播解码器，其损失函数针对错误简并度设计，在所测试的所有码族上都大幅提升了 BP 的表现。<sup>[9](https://arxiv.org/abs/1811.07835)</sup>

**卷积模型**利用综合征数据的空间与时间结构。《物理评论快报》上提出的一种可扩展解码器在码上滑动预处理窗口，类似模式识别中的卷积网络，可扩展到数万个量子比特，在错误率低至1%时解码速度快于并查集解码器。<sup>[10](https://journals.aps.org/prl/abstract/10.1103/PhysRevLett.128.080505)</sup> 一个在（校验类型、时间、空间）综合征体上运行的全卷积三维网络可推广到码距最高97的旋转表面码，去极化阈值最高达0.7%，与 MWPM 相当。<sup>[11](https://arxiv.org/abs/2506.16113)</sup>

**Transformer 与注意力模型**能捕捉长程关联。AlphaQubit 结合了每个稳定子的解码器状态向量、用于空间信息传播的卷积、使稳定子之间全互连的自注意力，以及池化与读出网络，并以交叉熵目标在实验综合征与逻辑错误对上训练。<sup>[1](https://www.nature.com/articles/s41586-024-08148-8)</sup> SAQ-Decoder 将处理综合征与逻辑信息的双流 Transformer 与约束感知后处理相结合，并采用可微逻辑损失，通过在有限域上的平滑近似直接优化逻辑错误率。<sup>[5](https://proceedings.iclr.cc/paper_files/paper/2026/hash/26860058f359a4933bbf2b8418eb98c5-Abstract-Conference.html)</sup>

**图神经网络**在码的图结构上运算。GraphQEC 是一种不依赖码型、以线性时间运行的解码器，可处理表面码、色彩码和量子低密度奇偶校验码；应用于码距12的 QLDPC 码时，它将逻辑错误率降至 \( 9.55 \times 10^{-5} \)，在物理错误率 \( p = 0.005 \) 时比此前最佳专用解码器的 \( 1.74 \times 10^{-3} \) 好18倍，每周期耗时157微秒。<sup>[12](https://arxiv.org/abs/2502.19971)</sup>

## 真实硬件上的精度

神经网络解码器最有力的证据来自实验数据。应用于谷歌量子人工智能的实验数据时，Varbanov 解码器取得的逻辑错误率比 MWPM 低约25%，接近最大似然表现；这一提升来自对会产生多个相关综合征缺陷的错误（如 Y 错误）的更好处理。在模拟中，纳入超导 transmon 量子比特模拟读出所提供的软信息，使逻辑错误率进一步降低约10%。<sup>[3](https://journals.aps.org/prresearch/pdf/10.1103/PhysRevResearch.7.013029)</sup>

AlphaQubit 先在模拟器件噪声的合成数据上预训练，再在实验样本上微调，在悬铃木码距3和码距5数据上表现出比关联匹配和张量网络解码器更好的错误抑制。在包含泄漏、串扰和带振幅阻尼的软读出等更丰富噪声模型的模拟数据上，它扩展到码距11，并推广到10万轮纠错，同时保持优于关联 MWPM 的精度。<sup>[1](https://www.nature.com/articles/s41586-024-08148-8)</sup> 一项涵盖108项研究（2017年至2026年）的系统综述指出，在这些悬铃木基准上，AlphaQubit 等基于 Transformer 的模型将逻辑错误率较 MWPM 降低24%至31%，图神经网络则达到最高约13.8%的错误阈值。<sup>[13](https://sciety.org/articles/activity/10.21203/rs.3.rs-9435708/v1)</sup>

在谷歌于72量子比特处理器上进行的低于阈值表面码实验中，离线解码的神经网络解码器取得 \( \varepsilon_5 = 0.269\% \pm 0.008\% \)、\( \Lambda = 2.18 \pm 0.09 \)，优于实时解码器的 \( \varepsilon_5 = 0.35\% \pm 0.01\% \)，代价是每周期24微秒的较慢速度，而实时解码器的吞吐为每周期不到1.1微秒。<sup>[14](https://www.nature.com/articles/s41586-024-08449-y)</sup>

## 速度与实时运行

解码器必须跟上量子处理器的节奏：若平均解码速度落后于硬件，延迟会累积成指数级积压，从而抵消量子计算的优势。<sup>[15](https://pmc.ncbi.nlm.nih.gov/articles/PMC12939330)</sup> 表面码的综合征周期所要求的预算在微秒量级。<sup>[16](https://github.com/Beyond-InFinnity/qec-neural-decoder)</sup>

AlphaQubit 2 在商用硬件上对码距11表面码实现每周期低于1微秒的实时解码，精度优于最佳实时解码器，并首次实现码距9色彩码的实时解码。<sup>[4](https://arxiv.org/abs/2512.07737)</sup> 在消费级 GPU 上，一个有22.9万参数的卷积解码器以 fp16 运行，其逻辑错误率低于 MWPM，吞吐为 MWPM 的六倍，批处理下每次采样0.63微秒，处于约1微秒的预算之内；而精度与之相当的经典解码器置信匹配每次采样耗时3.4毫秒。<sup>[16](https://github.com/Beyond-InFinnity/qec-neural-decoder)</sup>

**预解码**将工作负载拆分：快速的局部网络先清除大部分物理错误，残余综合征再交给较慢的全局解码器。英伟达的 Ising 解码系列包含两个三维卷积变体，参数量分别为90万和180万，分别针对速度与精度优化；英伟达的基准显示它们的速度和准确度分别为 PyMatching 的2.5倍和3倍，同时所需训练数据仅为其十分之一。<sup>[17](https://www.tomshardware.com/tech-industry/artificial-intelligence/nvidia-releases-ising-open-ai-models)</sup> 英伟达的研究型预解码器与不相关 PyMatching 集成，在 GB300 GPU 上于大码距下实现约1微秒的端到端延迟，并在码距最高13时优于相关 PyMatching。<sup>[18](https://research.nvidia.com/publication/2026-04_fast-ai-based-pre-decoders-surface-codes)</sup> 硬件实现更进一步：基于 FPGA 的神经网络解码器已在超导处理器上演示了码距3表面码的实时纠错；<sup>[19](https://arxiv.org/abs/2605.04892)</sup> 一个在存内计算硬件上运行的并行全前馈解码器在码距3至9时达到197至252纳秒的解码延迟，满足低于440纳秒的要求。<sup>[20](https://ieeexplore.ieee.org/document/10993142/)</sup>

## 局限

训练数据是硬约束。在一项将 MLP、LSTM、CNN、GNN 和 Transformer 解码器与 MWPM 对比的基准中，多噪声训练在10万次采样的预算下失败，因为每个噪声水平可用的数据太少；在采用 ACES 校准噪声模型的真实 d=5 HeavyHex IBM 电路上，所有神经网络解码器都无法从7万次采样中学习，而 MWPM 成功；作者将此归因于数据不足以刻画高度相关且非均匀的错误分布。<sup>[6](https://github.com/thatemocoder/qec-neural-decoder)</sup> 一项针对码距最高9的表面码解码的系统研究发现，近期解码性能更多由数据规模而非架构复杂度驱动；合适的归纳偏置对高精度至关重要；INT4 量化是在 FPGA 上满足微秒级延迟的前提。<sup>[21](https://arxiv.org/abs/2605.12046)</sup>

向更大码距的泛化也会退化：AlphaQubit 在码距11的训练需要不断增加数据量，而在码距11以上展示高精度被列为未来工作。<sup>[1](https://www.nature.com/articles/s41586-024-08148-8)</sup> 为量子存储器优化的架构不会自动迁移到算法解码，因为逻辑门会产生复杂的错误关联；一种旨在学习门诱导关联的模块化注意力解码器，在随机电路上训练后可泛化到未见的多量子比特工作负载，在码距3、5、7的表面码上接近精确最大似然解码器的精度。<sup>[22](https://journals.aps.org/prxintelligence/abstract/10.1103/vjn1-mbxl)</sup>

## References

1. [Bausch, J., Senior, A. W., Heras, F. J. H., et al. (2024). Learning high-accuracy error decoding for quantum processors. Nature.](https://www.nature.com/articles/s41586-024-08148-8)
2. [Decoders, NVIDIA CUDA-Q QEC documentation.](https://nvidia.github.io/cudaq-qec/examples_rst/qec/decoders.html)
3. [Varbanov, B. M., Serra-Peralta, M., Byfield, D., Terhal, B. M. (2025). Neural network decoder for near-term surface-code experiments. Physical Review Research 7, 013029.](https://journals.aps.org/prresearch/pdf/10.1103/PhysRevResearch.7.013029)
4. [Senior, A. W., Edlich, T., Heras, F. J. H., et al. (2025). A scalable and real-time neural decoder for topological quantum codes. arXiv:2512.07737.](https://arxiv.org/abs/2512.07737)
5. [Zenati, D., Nachmani, E. (2026). SAQ: Stabilizer-Aware Quantum Error Correction Decoder. ICLR 2026.](https://proceedings.iclr.cc/paper_files/paper/2026/hash/26860058f359a4933bbf2b8418eb98c5-Abstract-Conference.html)
6. [qec-neural-decoder: Neural network decoders for quantum error correction (GitHub).](https://github.com/thatemocoder/qec-neural-decoder)
7. [Quantum codes with notable decoders, Error Correction Zoo.](https://errorcorrectionzoo.org/list/quantum_decoders)
8. [Neural Decoders Reduce Logical Error Rates in Surface Code Quantum Systems, Frontiers in Applied Physics and Mathematics.](https://sprcopen.com/index.php/FAPM/article/view/764)
9. [Liu, Y.-H., Poulin, D. (2018). Neural Belief-Propagation Decoders for Quantum Error-Correcting Codes. arXiv:1811.07835.](https://arxiv.org/abs/1811.07835)
10. [Overwater, R. W. J., et al. (2022). Scalable Neural Decoder for Topological Surface Codes. Physical Review Letters 128, 080505.](https://journals.aps.org/prl/abstract/10.1103/PhysRevLett.128.080505)
11. [Gicev, S., Hollenberg, L. C. L., Usman, M. (2025). Fully convolutional 3D neural network decoders for surface codes with syndrome circuit noise. arXiv:2506.16113.](https://arxiv.org/abs/2506.16113)
12. [Hu, G., Ouyang, W., Lu, C.-Y., Lin, C., Zhong, H.-S. (2025). Efficient and Universal Neural-Network Decoder for Stabilizer-Based Quantum Error Correction. arXiv:2502.19971.](https://arxiv.org/abs/2502.19971)
13. [Systematic Review of Artificial Intelligence Decoders for Topological Quantum Error Correction.](https://sciety.org/articles/activity/10.21203/rs.3.rs-9435708/v1)
14. [Google Quantum AI (2024). Quantum error correction below the surface code threshold. Nature.](https://www.nature.com/articles/s41586-024-08449-y)
15. [The Hitchhiker's Guide to the Surface Code, PMC.](https://pmc.ncbi.nlm.nih.gov/articles/PMC12939330)
16. [qec-neural-decoder: accuracy-latency Pareto frontier on consumer GPUs (GitHub).](https://github.com/Beyond-InFinnity/qec-neural-decoder)
17. [Nvidia releases open AI models for quantum computing tasks, Tom's Hardware (April 2026).](https://www.tomshardware.com/tech-industry/artificial-intelligence/nvidia-releases-ising-open-ai-models)
18. [Chamberland, C., et al. (2026). Fast AI-Based Pre-Decoders for Surface Codes, NVIDIA Research.](https://research.nvidia.com/publication/2026-04_fast-ai-based-pre-decoders-surface-codes)
19. [Real-time Surface-Code Error Correction Using an FPGA-based Neural-Network Decoder. arXiv:2605.04892.](https://arxiv.org/abs/2605.04892)
20. [CIM-Based Parallel Fully FFNN Surface Code High-Level Decoder for Quantum Error Correction, DATE 2025, IEEE Xplore.](https://ieeexplore.ieee.org/document/10993142/)
21. [Yan, G., Li, S., Du, Y. (2026). Rethink the Role of Neural Decoders in Quantum Error Correction. arXiv:2605.12046.](https://arxiv.org/abs/2605.12046)
22. [Bonilla Ataides, J. P., Gu, A., Yelin, S. F., Lukin, M. D. (2026). Neural Decoders for Universal Quantum Algorithms. PRX Intelligence 1, 013008.](https://journals.aps.org/prxintelligence/abstract/10.1103/vjn1-mbxl)

---
*Initially written Oct 22, 2026*

Topic: 物质世界与数学 › 物理学 › 量子物理学 › Quantum information science › Quantum computing and algorithms

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/neural-network-decoder

English original: https://www.edgepedia.org/neural-network-decoder
