# 门模型（量子计算）

门模型是量子计算的一种模型，其中算法被表示为作用在量子比特上的一系列量子逻辑门，最后以测量收尾。一次计算就是一条线路：量子比特被初始化，一个由酉门构成的网络变换它们的联合态，结果在计算基下被读出。该模型推广了经典逻辑电路，而量子门则推广了经典逻辑门。<sup>[1](https://doi.org/10.1098/rspa.1989.0099)</sup>

| 关键事实 | 详情 |
|---|---|
| 线路结构 | 将 n 个量子比特初始化为 \( \lvert 0\rangle^{\otimes n} \)，施加酉门，在计算基下测量<sup>[2](https://www.cl.cam.ac.uk/teaching/2324/QuantComp/Quantum_Computing_Lecture_5_2024.pdf)</sup> |
| 通用门集 | 所有单量子比特门加上 CNOT 具有精确通用性；CNOT、H 和 T 构成一个常用的有限通用集<sup>[3](https://doi.org/10.1103/physreva.52.3457)</sup><sup> • </sup><sup>[2](https://www.cl.cam.ac.uk/teaching/2324/QuantComp/Quantum_Computing_Lecture_5_2024.pdf)</sup> |
| 经典可模拟性 | 仅使用 Clifford 门（X、Y、Z、H、S、CNOT）的线路可被经典高效模拟（Gottesman-Knill 定理）；加入 T 门即获得通用性<sup>[2](https://www.cl.cam.ac.uk/teaching/2324/QuantComp/Quantum_Computing_Lecture_5_2024.pdf)</sup> |
| NISQ 深度极限 | 在 50 个量子比特上、错误率约为 \( 10^{-3} \) 时，线路深度必须显著小于 20 个顺序步骤<sup>[4](https://beta.iopscience.iop.org/article/10.1088/2058-9565/abae7d)</sup> |
| 硬件实例 | Quantinuum Helios：在 QCCD 架构中集成 98 个全连接 137Ba+ 超精细离子量子比特，典型双量子比特门不保真度约为 8×10⁻⁴<sup>[5](https://quantum-journal.org/wp-content/uploads/2024/11/q-2024-11-07-1516.pdf)</sup><sup> • </sup><sup>[6](https://doi.org/10.1038/s41586-026-10676-4)</sup> |
| 2023 年后的里程碑 | 谷歌的 Willow 在从 3×3 扩展到 7×7 的过程中，每个晶格步骤将表面码错误抑制了 2.14 倍<sup>[7](https://research.google/blog/making-quantum-error-correction-work/)</sup> |

## 工作原理

量子线路是 n 个量子比特上的一个张量网络，分三个阶段：将所有量子比特初始化为 \( \lvert 0\rangle^{\otimes n} \)，一层酉变换，以及最后一层计算基测量。<sup>[2](https://www.cl.cam.ac.uk/teaching/2324/QuantComp/Quantum_Computing_Lecture_5_2024.pdf)</sup> 门通过酉演化起作用，\( \lvert \psi' \rangle = U \lvert \psi \rangle \)；沿 z 方向对 \( \alpha \lvert 0\rangle + \beta \lvert 1\rangle \) 进行测量，以概率 \( \lvert \alpha \rvert^{2} \) 和 \( \lvert \beta \rvert^{2} \) 得到 \( \lvert 0\rangle \) 或 \( \lvert 1\rangle \)（玻恩规则）。<sup>[8](https://learning.quantum.ibm.com/course/utility-scale-quantum-computing/lesson-02-bits-gates-and-circuits)</sup> 跨线的组合通过张量积实现；沿线方向的组合则是普通的矩阵乘法，从右向左施加。<sup>[2](https://www.cl.cam.ac.uk/teaching/2324/QuantComp/Quantum_Computing_Lecture_5_2024.pdf)</sup> 线路实现酉算子 \( U: H^{\otimes n} \to H^{\otimes n} \)，资源开销以门数和线路深度（门层数）计算。<sup>[9](https://opencourse.inf.ed.ac.uk/sites/default/files/https/opencourse.inf.ed.ac.uk/iqc/2024/lecture-6-quantum-circuit-model.pdf)</sup>

近似通用性意味着由某个门集可构造的酉算子在忽略整体相位的意义下稠密于酉群 \( U(2^{n}) \) 中，而精确通用性意味着目标酉算子可以由该门集精确合成。<sup>[10](https://ilorentz.org/quantumcomputers/literature/preskill_5_update.pdf)</sup> 通用性有精确和近似两种形式：\( \{ \text{CNOT}, \text{单量子比特酉算子} \} \) 是精确通用的，而 \( \{ H, R_{\pi/2}, \text{Toffoli} \} \) 和 \( \{ \text{CNOT}, H, R_{\pi/4} \} \) 是近似通用的。<sup>[11](https://www.cs.umd.edu/class/fall2024/cmsc657/Lecture-6.pdf)</sup> 任意 n 量子比特酉算子都可分解为单量子比特和双量子比特酉算子，而双量子比特门一般必须是纠缠门。<sup>[2](https://www.cl.cam.ac.uk/teaching/2324/QuantComp/Quantum_Computing_Lecture_5_2024.pdf)</sup> 反向的代价是实实在在的：对于有限门集，标准的计数论证给出，在满足该界假设的前提下，几乎所有酉算子所需门数的下界为 \( \Omega(4^{n} \log(1/\varepsilon)/\log(n)) \) 个门。<sup>[9](https://opencourse.inf.ed.ac.uk/sites/default/files/https/opencourse.inf.ed.ac.uk/iqc/2024/lecture-6-quantum-circuit-model.pdf)</sup>

## 实现方式

实践者从抽象门构建线路，然后对其进行转译：重写为逻辑等价的线路，只使用设备的原生门并遵守其耦合图，即哪些量子比特之间共享双量子比特门的图。<sup>[12](https://quantum.cloud.ibm.com/docs/en/guides/transpile)</sup> Qiskit 的预置流水线有六个阶段：初始化、布局、路由、翻译、优化和调度；路由会注入 SWAP 门以满足 QPU 的连接性，optimization_level 从 0 到 3。<sup>[12](https://quantum.cloud.ibm.com/docs/en/guides/transpile)</sup> 每个 SWAP 由三个 CX 门组成，在当前的设备上会引发大量错误。<sup>[13](https://quantum.cloud.ibm.com/docs/guides/represent-quantum-computers)</sup> 在 IBM 硬件上，某些 QPU 的原生双量子比特门是回波交叉共振（ECR）门，单量子比特基门为 rz、x 和 sx。<sup>[13](https://quantum.cloud.ibm.com/docs/guides/represent-quantum-computers)</sup> 编译后的线路随后被反复执行；默认的 Aer 模拟器运行使用 1024 次采样，即使没有模拟噪声，结果也是概率性的。<sup>[8](https://learning.quantum.ibm.com/course/utility-scale-quantum-computing/lesson-02-bits-gates-and-circuits)</sup>

## 起源

[David Deutsch](https://www.edgepedia.org/zh/david-deutsch) 于 1985 年提出了通用量子计算机，这是[图灵机](https://www.edgepedia.org/zh/turing-machine)的量子推广。<sup>[14](https://doi.org/10.1098/rspa.1985.0070)</sup> 1989 年，Deutsch 以“量子计算网络”之名引入了量子门阵列形式体系，证明了单个三位门——Toffoli 门的推广（\( \wedge_{2}(R_{x}) \) 门）——就足以作为通用门。<sup>[1](https://doi.org/10.1098/rspa.1989.0099)</sup><sup> • </sup><sup>[3](https://doi.org/10.1103/physreva.52.3457)</sup> 对于可逆计算，存在三位通用门。<sup>[3](https://doi.org/10.1103/physreva.52.3457)</sup> 1995 年，Adriano Barenco 及其同事证明了所有一位门加上两位异或（CNOT）门是通用的，并推导出两位门和三位门的基本门计数上下界。<sup>[3](https://doi.org/10.1103/physreva.52.3457)</sup> 同年，Deutsch、Barenco 和 Ekert 证明了几乎每个作用于两位或更多位的门都是通用的，<sup>[15](https://doi.org/10.1098/rspa.1995.0065)</sup> Barenco 发表了一个单独即可实现通用性的两位门，<sup>[16](https://doi.org/10.1098/rspa.1995.0066)</sup> Sleator 和 Weinfurter 确定了一个足以构建任意量子逻辑网络的两位门，并提出了一种腔 QED 实现方案。<sup>[17](https://doi.org/10.1103/physrevlett.74.4087)</sup>

## 变体

允许带前馈的中途测量不会改变线路模型的计算能力，尽管它往往更方便。<sup>[18](https://ar5iv.labs.arxiv.org/html/quant-ph/0504097)</sup> 基于测量的量子计算则从多量子比特的固定纠缠态出发，通过一系列测量基可能依赖于先前结果的测量来完成计算。<sup>[19](https://ar5iv.labs.arxiv.org/html/quant-ph/0508124)</sup> 它的两种主要方案是建立在量子门隐形传态思想之上的隐形传态量子计算，以及单向（簇态）计算机；两者都是通用的，且簇态模型与线路模型可以高效地相互模拟。<sup>[19](https://ar5iv.labs.arxiv.org/html/quant-ph/0508124)</sup><sup> • </sup><sup>[18](https://ar5iv.labs.arxiv.org/html/quant-ph/0504097)</sup> [绝热量子计算](https://www.edgepedia.org/zh/adiabatic-quantum-computation)这一术语由 van Dam、Mosca 和 Vazirani 于 2001 年提出，在使用非斯托夸斯特哈密顿量时，它与线路模型等价，资源开销至多为多项式级。<sup>[20](https://link.aps.org/accepted/10.1103/RevModPhys.90.015002)</sup> [量子退火](https://www.edgepedia.org/zh/quantum-annealing)是一种面向优化的近亲，起源于 Apolloni、de Falco 和 Cesa-Bianchi 于 1988 年工作中的“量子随机优化”。<sup>[20](https://link.aps.org/accepted/10.1103/RevModPhys.90.015002)</sup>

## 应用

门模型算法运行在囚禁离子、超导和中性原子硬件上。一台五量子比特的囚禁离子机器通过软件编程，用平均保真度 98% 的通用门运行任意算法，执行 Deutsch-Jozsa 和 Bernstein-Vazirani 算法的平均成功率分别为 95% 和 90%。<sup>[21](https://www.nature.com/articles/nature18648)</sup> 在 Quantinuum Forte 上，在误差缓解之前，对于宽度至多约 20 个量子比特、深度至多约 200 个双量子比特门的线路，保真度保持在 1/e 以上。<sup>[5](https://quantum-journal.org/wp-content/uploads/2024/11/q-2024-11-07-1516.pdf)</sup> 平均门保真度通过随机基准测试测量；[交叉熵基准测试](https://www.edgepedia.org/zh/cross-entropy-benchmarking)（XEB）是一种方法，而循环基准测试将表征扩展到三个量子比特以上。<sup>[22](https://www2.eecs.berkeley.edu/Pubs/TechRpts/2024/EECS-2024-78.pdf)</sup> 在量子速度极限下进行的理论比较发现，对于 QFT 和 QAOA 线路，中性原子平台与超导平台相当。<sup>[23](https://journals.aps.org/prresearch/abstract/10.1103/PhysRevResearch.6.023026)</sup> 一台运行多达 280 个物理量子比特的中性原子逻辑处理器运行了多达 48 个逻辑量子比特、228 个逻辑双量子比特门和 48 个逻辑 CCZ 门的采样线路，在 48 个逻辑量子比特上获得了约 0.1 的 XEB。<sup>[24](https://www.nature.com/articles/s41586-023-06927-3)</sup> 在超导硬件上，将色码从距离 3 扩展到 5，配合 AlphaQubit 神经网络解码器，将逻辑错误抑制了 \( \Lambda_{3/5} = 1.56(4) \)；魔术态在后选择下以超过 99% 的保真度注入，逻辑态通过晶格手术进行隐形传态。<sup>[25](https://www.nature.com/articles/s41586-025-09061-4)</sup>

## 局限与替代方案

两种主要的错误现象是量子比特的退相干和门不保真度；有限的连接性迫使使用 SWAP 门，从而增加深度和错误率。<sup>[4](https://beta.iopscience.iop.org/article/10.1088/2058-9565/abae7d)</sup> 这些限制制约了 NISQ 算法：在错误率 \( \varepsilon \approx 10^{-3} \) 和 50 个量子比特的条件下，深度必须显著小于 20 个顺序步骤。<sup>[4](https://beta.iopscience.iop.org/article/10.1088/2058-9565/abae7d)</sup> [容错](https://www.edgepedia.org/zh/fault-tolerance)通过编码来应对错误，但开销很大：用[五量子比特码](https://www.edgepedia.org/zh/five-qubit-code)保护一个物理量子比特需要四个额外的量子比特，并且每个算法门都需要编码和纠错子程序，<sup>[4](https://beta.iopscience.iop.org/article/10.1088/2058-9565/abae7d)</sup> 谷歌估计，要达到 \( 10^{-6} \) 的编码错误率，每个表面码网格可能需要超过一千个物理量子比特。<sup>[7](https://research.google/blog/making-quantum-error-correction-work/)</sup> 实时解码在谷歌的设备上增加了 50 到 100 微秒的延迟。<sup>[7](https://research.google/blog/making-quantum-error-correction-work/)</sup> 具有同等计算能力的替代方案包括簇态上的基于测量的计算<sup>[18](https://ar5iv.labs.arxiv.org/html/quant-ph/0504097)</sup>和非斯托夸斯特绝热计算，<sup>[20](https://link.aps.org/accepted/10.1103/RevModPhys.90.015002)</sup> 每一种都可以与线路模型在多项式开销内互换。

## References

1. [David Elieser Deutsch (1989). Quantum computational networks. Proceedings of the Royal Society of London A Mathematical and Physical Sciences.](https://doi.org/10.1098/rspa.1989.0099)
2. [Quantum Computing (CST Part II) - Lecture 5: The Quantum Circuit Model (University of Cambridge)](https://www.cl.cam.ac.uk/teaching/2324/QuantComp/Quantum_Computing_Lecture_5_2024.pdf)
3. [Adriano Barenco and colleagues (1995). Elementary gates for quantum computation. Physical Review A.](https://doi.org/10.1103/physreva.52.3457)
4. [The bitter truth about gate-based quantum algorithms in the NISQ era](https://beta.iopscience.iop.org/article/10.1088/2058-9565/abae7d)
5. [Benchmarking a trapped-ion quantum computer with 30 qubits (Quantinuum Forte)](https://quantum-journal.org/wp-content/uploads/2024/11/q-2024-11-07-1516.pdf)
6. [A 98-qubit trapped-ion quantum computer with all-to-all connectivity](https://doi.org/10.1038/s41586-026-10676-4)
7. [Making quantum error correction work (Google Quantum AI, Willow)](https://research.google/blog/making-quantum-error-correction-work/)
8. [Bits, gates, and circuits | IBM Quantum Learning](https://learning.quantum.ibm.com/course/utility-scale-quantum-computing/lesson-02-bits-gates-and-circuits)
9. [Introduction to Quantum Computing Lecture 6: Quantum Circuit Model (University of Edinburgh)](https://opencourse.inf.ed.ac.uk/sites/default/files/https/opencourse.inf.ed.ac.uk/iqc/2024/lecture-6-quantum-circuit-model.pdf)
10. [Preskill Lecture Notes, Ph219/CS219 Chapter 5 (Caltech)](https://ilorentz.org/quantumcomputers/literature/preskill_5_update.pdf)
11. [CMSC 657 Lecture 6: Universal Gate Sets (Gottesman, UMD, Fall 2024)](https://www.cs.umd.edu/class/fall2024/cmsc657/Lecture-6.pdf)
12. [Introduction to transpilation | IBM Quantum Documentation](https://quantum.cloud.ibm.com/docs/en/guides/transpile)
13. [Representing quantum computers (Target, coupling map, error rates) | IBM Quantum Documentation](https://quantum.cloud.ibm.com/docs/guides/represent-quantum-computers)
14. [David Deutsch (1985). Quantum theory, the Church–Turing principle and the universal quantum computer. Proceedings of the Royal Society of London A Mathematical and Physical Sciences.](https://doi.org/10.1098/rspa.1985.0070)
15. [David Elieser Deutsch, Adriano Barenco, Artur Ekert (1995). Universality in quantum computation. Proceedings of the Royal Society of London Series A Mathematical and Physical Sciences.](https://doi.org/10.1098/rspa.1995.0065)
16. [Adriano Barenco (1995). A universal two-bit gate for quantum computation. Proceedings of the Royal Society of London Series A Mathematical and Physical Sciences.](https://doi.org/10.1098/rspa.1995.0066)
17. [Tycho Sleator, Harald Weinfurter (1995). Realizable Universal Quantum Logic Gates. Physical Review Letters.](https://doi.org/10.1103/physrevlett.74.4087)
18. [Cluster-state quantum computation (Raussendorf, Browne, Briegel)](https://ar5iv.labs.arxiv.org/html/quant-ph/0504097)
19. [Measurement-based quantum computation (Jozsa & Miyake review)](https://ar5iv.labs.arxiv.org/html/quant-ph/0508124)
20. [Adiabatic Quantum Computation (Reviews of Modern Physics)](https://link.aps.org/accepted/10.1103/RevModPhys.90.015002)
21. [Demonstration of a small programmable quantum computer with atomic qubits (Debnath et al., Nature 2016)](https://www.nature.com/articles/nature18648)
22. [Towards a Quantum Hardware Roofline: Evaluating the Impact of Gate Expressivity on Processor Design (UC Berkeley EECS)](https://www2.eecs.berkeley.edu/Pubs/TechRpts/2024/EECS-2024-78.pdf)
23. [Comparing planar quantum computing platforms at the quantum speed limit (Phys. Rev. Research 2024)](https://journals.aps.org/prresearch/abstract/10.1103/PhysRevResearch.6.023026)
24. [Logical quantum processor based on reconfigurable atom arrays (Bluvstein et al., Nature)](https://www.nature.com/articles/s41586-023-06927-3)
25. [Scaling and logic in the colour code on a superconducting quantum processor (Nature, 2025)](https://www.nature.com/articles/s41586-025-09061-4)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Algorithms and computational methods

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/gate-model-quantum-computing

English original: https://www.edgepedia.org/gate-model-quantum-computing
