# 通用门集

通用门集是一组有限（或可数）的量子门集合，由它可以构造出电路，以任意精度近似任意数量量子比特上的任意酉操作。通用性正是这样一种性质：它使一组小而固定的指令集，例如 {H, T, CNOT}，在原则上足以运行任意量子计算，尽管可能的量子操作空间是连续的。

| 关键事实 | 细节 |
|---|---|
| 定义性质 | 门集 Γ 是通用的，当且仅当它在算子范数拓扑中生成 SU(dⁿ) 的一个稠密子集<sup>[1](https://arxiv.org/html/2510.09931)</sup> |
| 标准集 | {CNOT, H, T} 是近似通用的；克利福德（Clifford）集 {CNOT, H, S} 不是，因为 T 不能由克利福德门构造<sup>[2](https://qis.rwth-aachen.de/teaching/25ss/intro-quantum-computing/script/content/universalGates.html)</sup> |
| T² = S | T 门 diag(1, e^{iπ/4}) 的平方是克利福德门 S，而 T 是唯一的非克利福德成分<sup>[2](https://qis.rwth-aachen.de/teaching/25ss/intro-quantum-computing/script/content/universalGates.html)</sup> |
| 近似成本 | 索洛韦–基塔耶夫（Solovay–Kitaev）定理用 \(O(\log^{c}(1/\varepsilon))\) 个门将任意目标门近似到误差 \(\varepsilon\)，c 介于 3 与 4 之间<sup>[3](https://ar5iv.labs.arxiv.org/html/quant-ph/0111031)</sup> |
| 最优指数 | 计数论证表明没有方法能优于 c = 1，且至少对某些门集 c = 1 可达<sup>[3](https://ar5iv.labs.arxiv.org/html/quant-ph/0111031)</sup> |
| 泛型通用性 | 几乎所有作用于两个或更多量子比特的门自身就是通用的<sup>[4](https://royalsocietypublishing.org/doi/10.1098/rspa.1995.0065)</sup> |
| 辅助比特阈值 | 对于 n 量子比特门集，若加入 15n 个辅助量子比特不能使其通用，那么无论多少辅助比特都永远不能<sup>[1](https://arxiv.org/html/2510.09931)</sup> |

## 通用性意味着什么

通用一词涵盖两个不同概念，区分它们能消除关于有限门集的大部分困惑。

**精确通用性**会要求每个酉操作都能表示为该门集中门的有限乘积。这对任何有限集都是不可能的：酉群 U(2ⁿ) 是不可数的，而有限的门的字母表只能产生可数多个有限串<sup>[5](https://www.cs.umd.edu/class/fall2024/cmsc657/Lecture-6.pdf)</sup>。因此，精确通用性只保留给无限族，例如 {CNOT 连同所有单量子比特酉操作}<sup>[5](https://www.cs.umd.edu/class/fall2024/cmsc657/Lecture-6.pdf)</sup>。

**近似通用性**——实际起作用的概念——只要求所生成的子群是稠密的：对每个目标酉操作 \(U\) 和每个容差 \(\varepsilon\)，由该门集构成的某个电路与 \(U\) 的算子范数误差至多为 \(\varepsilon\)<sup>[2](https://qis.rwth-aachen.de/teaching/25ss/intro-quantum-computing/script/content/universalGates.html)</sup><sup> • </sup><sup>[1](https://arxiv.org/html/2510.09931)</sup>。哈罗（Harrow）、雷希特（Recht）和庄（Chuang）将这一点形式化：集合 \(A \subset \mathrm{SU}(d)\) 是计算通用的，当且仅当它生成的子群在 \(\mathrm{SU}(d)\) 中稠密<sup>[3](https://ar5iv.labs.arxiv.org/html/quant-ph/0111031)</sup>。在这个定义下，像 \(\{\mathrm{CNOT}, \mathrm{H}, R_{\pi/4}\}\) 这样的有限集可以是通用的，尽管它只包含少数几个门<sup>[5](https://www.cs.umd.edu/class/fall2024/cmsc657/Lecture-6.pdf)</sup>。

还有一个实际限定。有些集合被称为对量子计算通用，是因为在获得辅助量子比特或中间测量等额外资源时，它们能实现任意计算，而它们本身在酉群中并不稠密。这一区别对下文讨论的实振幅门集很重要，也对最终通用集很重要——后者只有在提供新的辅助量子比特时才变得通用<sup>[1](https://arxiv.org/html/2510.09931)</sup>。

## 标准通用集与各门的作用

教科书中的通用集 {H, T, CNOT} 依赖 T 门作为其唯一的非克利福德成分。

- **T** = diag(1, e^{iπ/4}) 满足 T² = S，因此 T 是唯一的非克利福德成分<sup>[2](https://qis.rwth-aachen.de/teaching/25ss/intro-quantum-computing/script/content/universalGates.html)</sup>。

克利福德门 {CNOT, H, S} 不是通用的，因为 T 门不能由克利福德门构造<sup>[2](https://qis.rwth-aachen.de/teaching/25ss/intro-quantum-computing/script/content/universalGates.html)</sup>。加入 T 便恢复通用性<sup>[2](https://qis.rwth-aachen.de/teaching/25ss/intro-quantum-computing/script/content/universalGates.html)</sup>。

若干相关集合是通用的。基塔耶夫（Kitaev）表明 {托福利（Toffoli）, H, \(\pi/4\) 门} 是通用的；博伊金（Boykin）等人表明 {CNOT, H, \(\pi/8\) 门} 是通用的；巴伦科（Barenco）等人表明 CNOT 加上所有单量子比特门是通用的<sup>[6](https://ar5iv.labs.arxiv.org/html/quant-ph/0205115)</sup>。巴伦科与合著者还研究了广义条件门，对于这类门，几乎任何单量子比特门与此类条件门组合都能产生通用性<sup>[7](https://www.cpt.univ-mrs.fr/~verga/pdfs/Barenco-1995.pdf)</sup>。仅在单个量子比特上，旋转门 {\(R_x(\theta)\), \(R_y(\theta)\), \(R_z(\theta)\)} 就足以近似任意单量子比特门<sup>[2](https://qis.rwth-aachen.de/teaching/25ss/intro-quantum-computing/script/content/universalGates.html)</sup>。

## 为什么有些门集会失败

**仅含克利福德门的电路是经典可模拟的。** 戈特斯曼–尼克尔（Gottesman–Knill）定理指出，只使用克利福德门的量子电路可以在经典计算机上高效模拟<sup>[2](https://qis.rwth-aachen.de/teaching/25ss/intro-quantum-computing/script/content/universalGates.html)</sup>。特别地，任何只使用 CNOT 和 H 的电路都是经典可高效模拟的<sup>[6](https://ar5iv.labs.arxiv.org/html/quant-ph/0205115)</sup>。

**实振幅门集。** 实完全基使用 polylog(1/ε) 个门将任意实门近似到精度 ε<sup>[6](https://ar5iv.labs.arxiv.org/html/quant-ph/0205115)</sup>，而实门集在借助一种辅助手段（例如一个额外的、重新制备的量子比特，或额外加入一个复振幅门）时对量子计算是通用的<sup>[6](https://ar5iv.labs.arxiv.org/html/quant-ph/0205115)</sup>。这正是计算通用性与酉稠密性发生分离的一个例子；例如，亚琛工业大学（RWTH Aachen）的讲义将 {托福利, H} 列为通用<sup>[2](https://qis.rwth-aachen.de/teaching/25ss/intro-quantum-computing/script/content/universalGates.html)</sup>。

## 条件与小通用集

通用性所需的最低条件是什么？三条结果线索给出越来越宽松的答案。

**几乎任何多量子比特门单独即可起作用。** 劳埃德（Lloyd）表明，如果一个哈密顿量可以反复施加，每次作用于少数几个变量，那么几乎任何作用于两个或更多变量的量子逻辑门都足以在任意多个变量上实现任意酉演化<sup>[8](https://doi.org/10.1103/physrevlett.75.346)</sup>，而《英国皇家学会会刊 A》（Proc. R. Soc. A）上的论文得出结论：几乎每个两比特或更多比特的门都是通用量子门<sup>[4](https://royalsocietypublishing.org/doi/10.1098/rspa.1995.0065)</sup>。

**一个实单量子比特门加一个纠缠门。** 施（Shi）证明，改变基的条件本质上是唯一需要的条件：托福利门连同任何不保持计算基的单量子比特实门（对类哈达玛（Hadamard）门有一个附加说明）对量子计算是通用的，同样，CNOT 连同任何不保持基、非类哈达玛的单量子比特实门也是通用的<sup>[6](https://ar5iv.labs.arxiv.org/html/quant-ph/0205115)</sup>。

**可判定性与辅助比特。** 对于单量子d位门集，通用性是可判定的：紧凑形式判据导出一个简单算法，能在有限多步内判定任意给定有限集的通用性<sup>[9](https://journals.aps.org/pra/abstract/10.1103/PhysRevA.95.062303)</sup>。对于本身不通用的一些集合，带辅助比特的最终通用性有一个明确判据：对于 n 量子d位门集 Γ，其中 d, n ≥ 2，Γ 是最终通用的，当且仅当 K(Γ) ≤ d⁴(n−1)+1<sup>[1](https://arxiv.org/html/2510.09931)</sup>。

## 从数字看

仅稠密性并不能保证有用；一个通用集只有在短电路足够时才实用。**索洛韦–基塔耶夫定理**提供了这一保证：一个运行时间为 \(\log(1/\varepsilon)\) 的多项式的算法，会产生长度为 \(O(\log^{c}(1/\varepsilon))\) 的近似门串，其中 \(c\) 是介于 3 与 4 之间的常数<sup>[3](https://ar5iv.labs.arxiv.org/html/quant-ph/0111031)</sup>。较早的构造，例如劳埃德的构造，需要基础门的数量随 \(\log(1/\varepsilon)\) 指数增长<sup>[3](https://ar5iv.labs.arxiv.org/html/quant-ph/0111031)</sup>。

指数不能低于 1。由于 SU(d) 中半径为 \(\varepsilon\) 的球的体积正比于 \(\varepsilon^{d^2-1}\)，要用不同的门串以精度 \(\varepsilon\) 覆盖 SU(d)，需要 \(O((1/\varepsilon)^{d^2-1})\) 个门串，因此没有算法能实现 c < 1<sup>[3](https://ar5iv.labs.arxiv.org/html/quant-ph/0111031)</sup><sup> • </sup><sup>[10](https://qubit.guide/12.5-approximating-generic-unitaries-is-hard-but.html)</sup>。哈罗、雷希特和庄表明，至少对某些通用基础集，\(O(\log(1/\varepsilon))\) 个门就足够，即 c = 1，并在常数因子内最优<sup>[3](https://ar5iv.labs.arxiv.org/html/quant-ph/0111031)</sup>。

现代数论综合收窄了常数：一个在克利福德+√T 上的单量子比特程序达到平均非克利福德门数 0.23 log₂(1/ε) + 2.13，相较先前方法实现了 7/9 的长度改进<sup>[11](https://quantum-journal.org/papers/q-2023-12-18-1208/pdf/)</sup><sup> • </sup><sup>[12](https://arxiv.org/html/2203.10064v2)</sup>。综合算法本身在关于门分解与综合的姊妹文章中讨论；本文止于门集所能保证的内容。

## 近期进展

- **2023 年 12 月：** 针对克利福德+T 和 V 基的构造性、可高效计算的近似算法，以及后来针对二者的最优对角近似，得以确立，并具有上文提到的 0.23 log₂(1/ε) + 2.13 常数<sup>[11](https://quantum-journal.org/papers/q-2023-12-18-1208/pdf/)</sup>。
- **2024 年：** 克利福德+CS（加入受控 S 门而非 T）被提出作为克利福德+T 的一种离散有限通用替代方案，并明确区分了在全局相位意义下精确可实现与在误差 ε 内近似可实现<sup>[13](https://www.nature.com/articles/s41598-024-64558-8)</sup>。
- **2025 年：** 由绕两个固定轴的 π 旋转加上 CNOT 组成的门集被证明对量子计算是通用的，其依据是单量子比特厄米门在全局相位意义下就是 π 旋转<sup>[14](https://quantum-journal.org/papers/q-2025-12-02-1925/)</sup>。
- **2025 年：** 最终通用性的辅助比特阈值从 255n 收紧到 15n 个辅助量子比特<sup>[1](https://arxiv.org/html/2510.09931)</sup>。

## References

1. [Bounds on eventually universal quantum gate sets (arXiv 2510.09931, 2025)](https://arxiv.org/html/2510.09931)
2. [Universal set of gates – Introduction to Quantum Computing (RWTH Aachen)](https://qis.rwth-aachen.de/teaching/25ss/intro-quantum-computing/script/content/universalGates.html)
3. [Efficient Discrete Approximations of Quantum Gates (Harrow, Recht, Chuang)](https://ar5iv.labs.arxiv.org/html/quant-ph/0111031)
4. [Universality in quantum computation (Proc. R. Soc. A, 1995)](https://royalsocietypublishing.org/doi/10.1098/rspa.1995.0065)
5. [Lecture 6: Universal quantum gate sets (UMD CMSC657, Fall 2024)](https://www.cs.umd.edu/class/fall2024/cmsc657/Lecture-6.pdf)
6. [Both Toffoli and Controlled-NOT need little help to do universal quantum computation (Shi)](https://ar5iv.labs.arxiv.org/html/quant-ph/0205115)
7. [Elementary gates for quantum computation (Barenco et al., 1995)](https://www.cpt.univ-mrs.fr/~verga/pdfs/Barenco-1995.pdf)
8. [Almost Any Quantum Logic Gate is Universal (Phys. Rev. Lett. 75, 346, 1995)](https://doi.org/10.1103/physrevlett.75.346)
9. [Criteria for universality of quantum gates (Phys. Rev. A 95, 062303, 2017)](https://journals.aps.org/pra/abstract/10.1103/PhysRevA.95.062303)
10. [12.5 Approximating generic unitaries is hard, but… (qubit.guide)](https://qubit.guide/12.5-approximating-generic-unitaries-is-hard-but.html)
11. [Shorter quantum circuits via single-qubit gate approximation (Quantum, Dec 2023)](https://quantum-journal.org/papers/q-2023-12-18-1208/pdf/)
12. [Shorter quantum circuits via single-qubit gate approximation (arXiv 2203.10064)](https://arxiv.org/html/2203.10064v2)
13. [CS-count-optimal quantum circuits for arbitrary multi-qubit unitaries (Scientific Reports, 2024)](https://www.nature.com/articles/s41598-024-64558-8)
14. [All You Need is pi: Quantum Computing with Hermitian Gates (Quantum, Dec 2025)](https://quantum-journal.org/papers/q-2025-12-02-1925/)

---
*Initially written Sep 17, 2026 · Edited: Oct 11, 2026; Oct 15, 2026*

Topic: 物质世界与数学 › 物理学 › 量子物理学 › Quantum information science › Quantum computing and algorithms › Quantum gates and circuits › Universal gate sets

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/universal-gate-set

English original: https://www.edgepedia.org/universal-gate-set
