# 表面码

作为一种用于量子纠错的拓扑码，表面码将逻辑量子比特存储于二维正方晶格排布的物理量子比特阵列中，并通过反复测量局域稳定子奇偶校验来保护量子数据。<sup>[1](https://www.nature.com/articles/s41534-026-01276-1)</sup> 它由当时任职于加州理工学院（California Institute of Technology）的物理学家阿列克谢·基塔耶夫（Alexei Kitaev）提出，并由埃里克·丹尼斯（Eric Dennis）、基塔耶夫、安德鲁·兰达尔（Andrew Landahl）和约翰·普雷斯基尔（John Preskill）在2002年关于拓扑量子存储的研究中进行了详细分析。<sup>[2](https://authors.library.caltech.edu/records/kag81-nk917)</sup> 该码之所以在实际量子计算中备受青睐，是因为它兼具相对较高的错误阈值（在标准电路级噪声模型下约为1%）和仅需最近邻量子比特连接的要求，这与超导处理器的布局相匹配。<sup>[3](https://lucidalu.github.io/Quantum-algorithms-A-survey-of-applications-and-end-to-end-complexities/fault-tolerant-quantum-computation/quantum-error-correction-with-the-surface-code/)</sup><sup> • </sup><sup>[4](https://www.ncbi.nlm.nih.gov/books/NBK538709/)</sup>

| 关键事实 | 详情 |
|---|---|
| 起源 | 由阿列克谢·基塔耶夫提出；由丹尼斯、基塔耶夫、兰达尔和普雷斯基尔在《拓扑量子存储》（2002）中分析<sup>[2](https://authors.library.caltech.edu/records/kag81-nk917)</sup> |
| 布局 | 一个距离为d的逻辑量子比特使用d×d的数据量子比特网格，外加它们之间的d²−1个稳定子量子比特<sup>[5](https://www.nature.com/articles/s41586-024-08148-8)</sup> |
| 错误阈值 | 在电路级去极化噪声下，采用最小权完美匹配解码时约为1%<sup>[3](https://lucidalu.github.io/Quantum-algorithms-A-survey-of-applications-and-end-to-end-complexities/fault-tolerant-quantum-computation/quantum-error-correction-with-the-surface-code/)</sup> |
| 标度律 | 在阈值以下，逻辑错误率随码距增大而指数抑制；Willow显示距离每增加两步，抑制因子Λ = 2.14 ± 0.02<sup>[6](https://www.nature.com/articles/s41586-024-08449-y.pdf)</sup> |
| 逻辑操作 | 晶格手术（分裂与合并）通过最近邻操作执行逻辑门；一个距离3的CNOT需要53个物理量子比特<sup>[7](https://arxiv.org/abs/1111.4022)</sup> |
| 非Clifford门 | 需要魔术态，通过蒸馏或注入产生，因为该码的原生门集仅覆盖Clifford操作<sup>[8](https://www.livescience.com/technology/computing/scientists-make-magic-state-breakthrough-after-20-years-without-it-quantum-computers-can-never-be-truly-useful)</sup> |
| 资源开销 | 据预测，在现实错误率下，一台完全容错的表面码计算机需要数百万个物理量子比特<sup>[4](https://www.ncbi.nlm.nih.gov/books/NBK538709/)</sup> |

## 该码的工作原理

表面码是一种稳定子码：编码后的计算子空间是一组相互对易的泡利算符的同时+1本征空间。<sup>[3](https://lucidalu.github.io/Quantum-algorithms-A-survey-of-applications-and-end-to-end-complexities/fault-tolerant-quantum-computation/quantum-error-correction-with-the-surface-code/)</sup> 数据量子比特位于正方晶格的边上，而位于顶点和面心的辅助量子比特测量两族稳定子生成元：X型稳定子\\( A_{v} \\\\)作用于每个顶点的近邻，Z型稳定子\\( B_{p} \\\\)<sub></sub>作用于每个面心的近邻。<sup>[1](https://www.nature.com/articles/s41534-026-01276-1)</sup> 在距离为d的码的标准布局中，一个d×d的数据量子比特网格被d²−1个稳定子量子比特包围，这些稳定子量子比特周期性地测量相邻数据量子比特组上的X和Z奇偶校验。<sup>[5](https://www.nature.com/articles/s41586-024-08148-8)</sup>

与某个稳定子反对易的错误会翻转该稳定子的测量结果，产生一种称为“综合征”的缺陷图样。解码意味着找到一个恢复操作，使其与实际错误的乘积属于稳定子群；如果乘积反而落入群外的中心化子中，则纠错本身就成为逻辑错误。<sup>[1](https://www.nature.com/articles/s41534-026-01276-1)</sup> 逻辑态由一对可观测量\\( X_{L} \\\\)<sub></sub>和\\( Z_{L} \\\\)<sub></sub>定义，它们是沿跨越相对边界的链上的泡利算符乘积，与每个稳定子对易但彼此反对易。<sup>[5](https://www.nature.com/articles/s41586-024-08148-8)</sup>

## 阈值与标度

阈值定理保证，如果每个操作的失败率低于某个临界阈值，就可以用多对数级的开销实现任意长的量子计算。<sup>[9](https://www.rintonpress.com/xxqic10/qic-10-910/0780-0802.pdf)</sup> 对于表面码，在电路级去极化噪声模型下采用最小权完美匹配解码时，阈值约为1%。<sup>[3](https://lucidalu.github.io/Quantum-algorithms-A-survey-of-applications-and-end-to-end-complexities/fault-tolerant-quantum-computation/quantum-error-correction-with-the-surface-code/)</sup> 在阈值以下，距离为d的码的逻辑错误率\\( \\varepsilon_{d} \\\\)<sub></sub>大致按\\( \\varepsilon_{d} \\propto (p/p_{\\mathrm{thr}})^{(d+1)/2} \\\\)<sub></sub>下降，其中\\( p \\\\)<sub></sub>是物理错误率，因此距离每增加二，抑制效果就乘以一个因子\\( \\Lambda \\approx p_{\\mathrm{thr}}/p \\\\)<sub></sub>。<sup>[6](https://www.nature.com/articles/s41586-024-08449-y.pdf)</sup>

**低于阈值的演示。** 2024年12月，谷歌量子人工智能（Google Quantum AI）报告了首批在其Willow超导处理器上低于阈值运行的表面码存储器：一个72量子比特处理器上的距离5码和一个105量子比特处理器上的距离7码，两者均配备集成实时解码器。<sup>[6](https://www.nature.com/articles/s41586-024-08449-y.pdf)</sup> 距离7存储器使用了49个数据量子比特、48个测量量子比特和4个泄漏移除量子比特，每个纠错周期的错误率为0.143% ± 0.003，\\( \\Lambda = 2.14 \\pm 0.02 \\\\)<sub></sub>。<sup>[6](https://www.nature.com/articles/s41586-024-08449-y.pdf)</sup> 其逻辑量子比特寿命为291 ± 6微秒，是其最佳组成物理量子比特寿命的2.4 ± 0.3倍，实时解码在距离5时以平均63微秒的解码器延迟跟上了1.1微秒的周期时间。<sup>[6](https://www.nature.com/articles/s41586-024-08449-y.pdf)</sup> 在同一设备上运行到距离29的重复码揭示了罕见的相关错误事件，大约每小时或\\( 3 \\times 10^{9} \\\\)<sub></sub>个周期发生一次，这设定了当前约\\( 10^{-10} \\\\)<sub></sub>的错误下限。<sup>[6](https://www.nature.com/articles/s41586-024-08449-y.pdf)</sup>

## 逻辑操作：晶格手术与魔术态

表面码和色码等二维拓扑码具有高阈值，但缺乏非Clifford门的自然实现。<sup>[10](https://doi.org/10.1103/prxquantum.2.020341)</sup> 在严格的平面最近邻架构中，实现逻辑两比特门的标准途径是晶格手术，由多米尼克·霍斯曼（Dominic Horsman）及其同事于2012年提出。该技术包括分裂和合并平面码表面，执行逻辑CNOT门以及称为分裂和合并的附加操作，同时消除了对编织逻辑的需求并减少了量子比特资源；两个距离3逻辑态之间的编码CNOT被证明可以用53个物理量子比特实现，是当时已知任何其他二维构造所需数量的一半。<sup>[7](https://arxiv.org/abs/1111.4022)</sup>

此后，晶格手术已在实验中得到演示。2026年的一项实验在平面超导处理器上实现了两个距离3表面码逻辑量子比特之间的晶格手术操作：逻辑量子比特在剔除泄漏事件后的每周期错误率分别为0.0365(2)和0.0282(1)，联合初始化与晶格分裂确定性地制备了逻辑贝尔态，一个两比特Deutsch-Jozsa算法在逻辑层面运行，而带门隐形传态的魔术态注入产生了连续的非Clifford旋转，在未检测到错误的条件下逻辑\\( R_{X}(\\pi/4) \\\\)<sub></sub>门的保真度为\\( 0.943_{-9}^{+10} \\\\)<sub></sub>。<sup>[11](https://arxiv.org/abs/2606.06598)</sup> 更早的一项演示在17量子比特设备上的距离3表面码量子比特上执行了X型晶格分裂，将一个逻辑量子比特映射到两个比特翻转编码量子比特上，并制备了保真度为0.780(6)的后选择贝尔态。<sup>[12](https://www.nature.com/articles/s41567-025-03090-6.pdf)</sup>

**魔术态。** 应用于逻辑量子比特的纠错码原生只运行Clifford门，这些操作简单到可以在经典计算机上模拟；非Clifford门需要高质量的魔术态，而魔术态的生产是资源密集型的。<sup>[8](https://www.livescience.com/technology/computing/scientists-make-magic-state-breakthrough-after-20-years-without-it-quantum-computers-can-never-be-truly-useful)</sup> 魔术态蒸馏将Reed-Muller外码与作为内码的表面码级联，而对表面码工厂的资源估算发现，假设门错误率为\\( 10^{-4} \\\\)<sub></sub>且具有长程相互作用，超越经典计算能力的因数分解所需的工厂可以小到630万个数据量子比特（忽略辅助量子比特）。<sup>[13](https://www.nature.com/articles/s41534-026-01197-z)</sup><sup> • </sup><sup>[14](https://arxiv.org/abs/1605.07197)</sup>

## 解码

解码必须实时运行以跟上反复的综合征提取，这一要求塑造了表面码工程。<sup>[15](https://advanced.onlinelibrary.wiley.com/doi/10.1002/qute.202500806)</sup> 最小权完美匹配算法给出的阈值接近1%，而神经网络解码器进一步提升了精度：AlphaQubit是一种用于表面码的神经网络解码器，可扩展到码距11，并泛化到100,000个纠错轮次，在包括泄漏、串扰和软读出在内的模拟数据上保持超越相关匹配解码器的精度。<sup>[3](https://lucidalu.github.io/Quantum-algorithms-A-survey-of-applications-and-end-to-end-complexities/fault-tolerant-quantum-computation/quantum-error-correction-with-the-surface-code/)</sup><sup> • </sup><sup>[5](https://www.nature.com/articles/s41586-024-08148-8)</sup>

## 实验现状与变体

除了Willow存储器实验之外，还有几种变体放宽了标准正方网格设计。谷歌的动态表面码在Willow处理器上展示了三种时间动态实现：一种六边形晶格嵌入，将每个量子比特所需的耦合从四个减少到三个；一种行走电路，每轮交换数据量子比特和测量量子比特的角色以消除累积的非计算错误；以及一种iSWAP门实现；从距离3到5的错误抑制分别达到\\( \\Lambda_{35,\\mathrm{hex}} = 2.15(2) \\\\)<sub></sub>、\\( \\Lambda_{35,\\mathrm{walk}} = 1.69(6) \\\\)<sub></sub>和\\( \\Lambda_{35,\\mathrm{iSWAP}} = 1.56(2) \\\\)<sub></sub>。<sup>[16](https://www.nature.com/articles/s41567-025-03070-w)</sup> 在连接性与该码不匹配的IBM重六边形处理器上，一种基于SWAP的折叠-展开嵌入结合动态解耦实现了从距离3到(3, 5)和(5, 3)码的各向异性亚阈值标度。<sup>[17](https://www.nature.com/articles/s41467-026-76090-6)</sup>

**开销与替代方案。** 表面码渐近为零的编码率和平方根距离标度使得扩展到100个或更多逻辑量子比特变得昂贵，这推动了量子低密度奇偶校验（LDPC）码的发展。<sup>[18](https://www.nature.com/articles/s41586-024-07107-7)</sup> 近期的高码率LDPC码显示出接近0.7%的错误阈值，与表面码相比编码开销降低了10倍，尽管在非常小的码尺寸下改进有限。<sup>[18](https://www.nature.com/articles/s41586-024-07107-7)</sup><sup> • </sup><sup>[19](https://pmc.ncbi.nlm.nih.gov/articles/PMC10926894/)</sup> 色码作为一种姊妹拓扑码，允许所有单量子比特Clifford门横向执行，在固定距离下需要更少的量子比特，但由于其更高权重的稳定子测量而具有更严格的错误阈值；2025年的一项超导演示在低于色码阈值的条件下，将码距从3增至5时，逻辑错误的抑制因子达到\\( \\Lambda_{3/5} = 1.56(4) \\\\)<sub></sub>。<sup>[20](https://www.nature.com/articles/s41586-025-09061-4)</sup> 对于表面码本身，据预测，在现实错误率下，一台完全容错的量子计算机需要数百万个物理量子比特。<sup>[4](https://www.ncbi.nlm.nih.gov/books/NBK538709/)</sup>

## References

1. [Threshold of surface code under nearest-neighbor correlated errors via an exact statistical mechanical mapping, npj Quantum Information](https://www.nature.com/articles/s41534-026-01276-1)
2. [Dennis, E., Kitaev, A., Landahl, A., Preskill, J. (2002). Topological quantum memory. Journal of Mathematical Physics 43, 4452. CaltechAUTHORS record](https://authors.library.caltech.edu/records/kag81-nk917)
3. [Quantum error correction with the surface code, in Quantum Algorithms: A Survey of Applications and End-to-End Complexities](https://lucidalu.github.io/Quantum-algorithms-A-survey-of-applications-and-end-to-end-complexities/fault-tolerant-quantum-computation/quantum-error-correction-with-the-surface-code/)
4. [Quantum Computing with Noisy Qubits, Frontiers of Engineering, NCBI Bookshelf](https://www.ncbi.nlm.nih.gov/books/NBK538709/)
5. [Learning high-accuracy error decoding for quantum processors, Nature](https://www.nature.com/articles/s41586-024-08148-8)
6. [Google Quantum AI and Collaborators (2025). Quantum error correction below the surface code threshold. Nature 638, 920](https://www.nature.com/articles/s41586-024-08449-y.pdf)
7. [Horsman, C. et al. (2012). Surface code quantum computing by lattice surgery. New J. Phys. 14, 123011; arXiv:1111.4022](https://arxiv.org/abs/1111.4022)
8. [Scientists make 'magic state' breakthrough after 20 years, Live Science](https://www.livescience.com/technology/computing/scientists-make-magic-state-breakthrough-after-20-years-without-it-quantum-computers-can-never-be-truly-useful)
9. [Threshold error rates and the threshold theorem, Quantum Information & Computation](https://www.rintonpress.com/xxqic10/qic-10-910/0780-0802.pdf)
10. [Beverland, M. E., Kubica, A., Svore, K. M. (2021). Cost of Universality: A Comparative Study of the Overhead of State Distillation and Code Switching with Color Codes. PRX Quantum 2, 020341](https://doi.org/10.1103/prxquantum.2.020341)
11. [Wang, Y. et al. (2026). A superconducting surface-code processor with lattice-surgery logical operations. arXiv:2606.06598](https://arxiv.org/abs/2606.06598)
12. [Lattice surgery realized on two distance-three repetition codes with superconducting qubits, Nature Physics](https://www.nature.com/articles/s41567-025-03090-6.pdf)
13. [Unfolded distillation: very low-cost magic state preparation for biased-noise qubits, npj Quantum Information](https://www.nature.com/articles/s41534-026-01197-z)
14. [Quantum computation with realistic magic state factories, arXiv:1605.07197](https://arxiv.org/abs/1605.07197)
15. [Real-Time Decoding For Surface Code, Advanced Quantum Technologies](https://advanced.onlinelibrary.wiley.com/doi/10.1002/qute.202500806)
16. [Demonstration of dynamic surface codes, Nature Physics 21, 1994 (2025)](https://www.nature.com/articles/s41567-025-03070-w)
17. [Surface code scaling on heavy-hex superconducting quantum processors, Nature Communications 17, 9201 (2026)](https://www.nature.com/articles/s41467-026-76090-6)
18. [High-threshold and low-overhead fault-tolerant quantum memory, Nature](https://www.nature.com/articles/s41586-024-07107-7)
19. [Low-overhead fault-tolerant quantum computing using long-range connectivity, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC10926894/)
20. [Scaling and logic in the colour code on a superconducting quantum processor, Nature](https://www.nature.com/articles/s41586-025-09061-4)

---
*Initially written Oct 15, 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/surface-code

English original: https://www.edgepedia.org/surface-code
