# 阿达马门

阿达马门是一种单量子比特量子门，它将每个计算基态映射为两个基态的等权叠加，把 |0⟩ 转换为 (1/√2)(|0⟩+|1⟩)，把 |1⟩ 转换为 (1/√2)(|0⟩−|1⟩)<sup>[1](https://quantum.cloud.ibm.com/learning/en/courses/use-a-qc-today/quantum-mechanics-basics)</sup>。在电路图中，它通常画成一个标有“H”的方框，是量子计算中最常用的操作之一，出现在态制备、基于干涉的算法，以及用于基准测试和容错的标配门集合中<sup>[1](https://quantum.cloud.ibm.com/learning/en/courses/use-a-qc-today/quantum-mechanics-basics)</sup><sup> • </sup><sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC3927208/)</sup>。

| 关键事实 | 详情 |
|---|---|
| 矩阵 | \( H = \tfrac{1}{\sqrt{2}} \begin{pmatrix} 1 & 1 \\ 1 & -1 \end{pmatrix} \)，作用于一个量子比特的 2×2 酉矩阵<sup>[1](https://quantum.cloud.ibm.com/learning/en/courses/use-a-qc-today/quantum-mechanics-basics)</sup> |
| 作用 | \( H\vert 0\rangle = \tfrac{1}{\sqrt{2}}(\vert 0\rangle+\vert 1\rangle) \)，\( H\vert 1\rangle = \tfrac{1}{\sqrt{2}}(\vert 0\rangle-\vert 1\rangle) \)<sup>[1](https://quantum.cloud.ibm.com/learning/en/courses/use-a-qc-today/quantum-mechanics-basics)</sup> |
| 测量结果 | 作用于 \|0⟩ 或 \|1⟩ 后，所得态的测量结果为 0 或 1 的概率相等，各占 50%<sup>[1](https://quantum.cloud.ibm.com/learning/en/courses/use-a-qc-today/quantum-mechanics-basics)</sup><sup> • </sup><sup>[3](https://quantumcomputinguk.org/tutorials/hadamardgate)</sup> |
| 自逆性 | 施加两次 H 会使量子比特回到原始状态<sup>[4](https://s3.cern.ch/inspire-prod-files-f/f0e7c1c29ae9066c839d0168363c37fa)</sup> |
| 克利福德角色 | H 与 S（π/4 相位）门及 CNOT 门共同生成克利福德群，即容错量子计算的基础<sup>[5](https://arxiv.org/abs/1810.10259)</sup> |
| 通用性 | H、CNOT 门和 π/8 门构成一组通用量子门，可以逼近任意量子操作<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC3927208/)</sup> |
| 硬件说明 | IBM Q 设备原生支持门集合 ['id', 'rz', 'sx', 'x', 'cx']，因此含 H 的电路在执行前会被分解为这些基础门<sup>[6](https://docs.quantum.ibm.com/api/qiskit/0.25/transpiler)</sup> |

## 矩阵定义与作用

量子门用矩阵表示，这些矩阵变换态矢量，作用方式为 \( U\vert\psi\rangle \)，门矩阵位于态的左侧<sup>[1](https://quantum.cloud.ibm.com/learning/en/courses/use-a-qc-today/quantum-mechanics-basics)</sup>。门矩阵是方阵，\( N \times N \)，其中 \( N \) 是态矢量的维数；对于单个量子比特，这是一个 2×2 矩阵<sup>[1](https://quantum.cloud.ibm.com/learning/en/courses/use-a-qc-today/quantum-mechanics-basics)</sup>。量子门是可逆的，并保持其所变换矢量的长度不变，这是酉矩阵的性质<sup>[1](https://quantum.cloud.ibm.com/learning/en/courses/use-a-qc-today/quantum-mechanics-basics)</sup>。

阿达马矩阵为

\[ H = \frac{1}{\sqrt{2}} \begin{pmatrix} 1 & 1 \\ 1 & -1 \end{pmatrix}. \]

因子 \( 1/\sqrt{2} \) 是归一化常数，确保输出态矢量的长度为 1<sup>[1](https://quantum.cloud.ibm.com/learning/en/courses/use-a-qc-today/quantum-mechanics-basics)</sup>。乘开即可验证其定义作用：\( H\vert 0\rangle = \tfrac{1}{\sqrt{2}}(\vert 0\rangle+\vert 1\rangle) \)，该态称为 \( \vert+\rangle \)；而 \( H\vert 1\rangle = \tfrac{1}{\sqrt{2}}(\vert 0\rangle-\vert 1\rangle) \)，即态 \( \vert-\rangle \)<sup>[1](https://quantum.cloud.ibm.com/learning/en/courses/use-a-qc-today/quantum-mechanics-basics)</sup><sup> • </sup><sup>[4](https://s3.cern.ch/inspire-prod-files-f/f0e7c1c29ae9066c839d0168363c37fa)</sup>。两个输出仅在 |1⟩ 分量的相对相位上有所不同，这一相位对计算基测量不可见，但对后续的干涉至关重要<sup>[4](https://s3.cern.ch/inspire-prod-files-f/f0e7c1c29ae9066c839d0168363c37fa)</sup>。

**自逆行为。** 由于 \( H \cdot H = I \)，第二个阿达马门会抵消第一个的作用，使量子比特回到 \( \vert 0\rangle \) 或 \( \vert 1\rangle \)<sup>[4](https://s3.cern.ch/inspire-prod-files-f/f0e7c1c29ae9066c839d0168363c37fa)</sup>。该门在布洛赫球（单量子比特态的标准可视化工具）上也有几何解读，它在那里表现为一种旋转<sup>[7](https://qubit.guide/2.10-the-bloch-sphere.html)</sup>；一份教程将其描述为绕 Z 轴旋转 π 弧度，再绕 Y 轴旋转 π/2（90 度），从而使所得纯态位于球的赤道上<sup>[3](https://quantumcomputinguk.org/tutorials/hadamardgate)</sup>。

## 在算法与协议中的作用

**创建叠加态。** 该门的首要用途是使量子比特进入叠加态。对五个初始化为 |0⟩ 的量子比特各施加一次 H，会在全部 32 个基态上创建均匀叠加，测量时每个态被观测到的概率均为 1/32<sup>[8](https://www.youtube.com/watch?v=v8Ujo27Rx0s)</sup>。在隐形传态协议中，一个阿达马门后接一个 CNOT 门（以爱丽丝的量子比特为控制、鲍勃的量子比特为目标），会使两个量子比特纠缠，产生贝尔态 \( \tfrac{1}{\sqrt{2}}(\vert 00\rangle+\vert 11\rangle) \)<sup>[1](https://quantum.cloud.ibm.com/learning/en/courses/use-a-qc-today/quantum-mechanics-basics)</sup>。

**相位估计中的干涉。** 在相位估计流程中，第一个阿达马门将控制量子比特置于 |0⟩ 与 |1⟩ 的均匀叠加，使得相位回踢只发生在 |1⟩ 分量上而不发生在 |0⟩ 分量上，从而产生相对相位差；第二个阿达马门随后通过干涉将该相位转换为输出概率的变化，使相位 \( \theta \) 得以被获知<sup>[9](https://qiskit.qotlabs.org/learning/courses/fundamentals-of-quantum-algorithms/phase-estimation-and-factoring/phase-estimation-procedure)</sup>。若没有第二个阿达马门，测量态 \( \tfrac{1}{\sqrt{2}}\vert 0\rangle + \tfrac{e^{2\pi i\theta}}{\sqrt{2}}\vert 1\rangle \) 将以各 1/2 的概率得到 0 和 1，无法揭示关于 \( \theta \) 的任何信息<sup>[9](https://qiskit.qotlabs.org/learning/courses/fundamentals-of-quantum-algorithms/phase-estimation-and-factoring/phase-estimation-procedure)</sup>。

**电路层面的结构。** 丹·谢泼德（Dan Shepherd）在 2005 年一篇关于简化电路模型的 arXiv 研究中，分析了仅允许基态置换和“全局阿达马操作”（即同时对每个量子比特施加 H）的范式，推导出常见算法所需的全局阿达马门数量的界，包括肖尔算法的上界和格罗弗算法的下界<sup>[10](https://arxiv.org/abs/quant-ph/0508153)</sup>。

## 克利福德群与经典模拟

阿达马门属于克利福德群，该术语由丹尼尔·戈特斯曼（Daniel Gottesman）于 1998 年在关于量子纠错码的工作中引入。最简单的多量子比特克利福德群由阿达马门、π/4 相位门和受控 X 门生成<sup>[5](https://arxiv.org/abs/1810.10259)</sup>。根据戈特斯曼–奈尔定理，仅由克利福德门组成的量子电路可以在经典计算机上高效模拟<sup>[5](https://arxiv.org/abs/1810.10259)</sup><sup> • </sup><sup>[11](https://arxiv.org/abs/1601.07601)</sup>，因此仅含克利福德门的电路不提供任何量子优势；要实现通用计算，必须加入 T 门等非克利福德门<sup>[5](https://arxiv.org/abs/1810.10259)</sup>。

这种克利福德成员身份对实践和理论都至关重要。克利福德酉操作构成容错量子计算的基础，而随机基准测试协议通过采样随机克利福德序列来评估门质量<sup>[12](https://www.nist.gov/publications/randomized-benchmarking-multiqubit-gates)</sup>。IBM 的层保真度指标建立在针对随机克利福德群门的随机基准测试之上，该集合包括 H 以及 X、Y、Z、SX、CNOT、ECR 和 CZ<sup>[13](https://www.ibm.com/quantum/blog/quantum-metric-layer-fidelity)</sup>。

## 物理实现

阿达马操作在不同量子比特平台上的实现方式各不相同。对于偏振编码的光子量子比特，相对于水平偏振方向取向为 22.5 度的半波片执行阿达马变换（相差一个全局相位）<sup>[14](https://www.researchgate.net/publication/323257202_Implementation_of_an_efficient_linear-optical_quantum_router)</sup><sup> • </sup><sup>[15](https://www.rintonpress.com/xqic4/qic-4-5/373-382.pdf)</sup>。在集成光子学中，研究人员通过飞秒激光写入为偏振量子比特制造了片上阿达马门，使用一种缺陷波导来重新定向双折射波导的光轴；所展示的阿达马门的轴取向 α 为 22.5°、相位延迟 Δφ 为 π、缺陷长度为 3.6(1) 厘米<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC3927208/)</sup>。沃尔什-阿达马门（在一个量子三能级系统上执行量子傅里叶变换）也已在超导量子三能级系统中实现<sup>[16](https://arxiv.org/abs/2003.04879)</sup>。

在诸如 IBM Q 设备这样的门模型硬件上，转译器必须用设备的原生基础门来表达每个电路，这些门列为 ['id', 'rz', 'sx', 'x', 'cx']；用 H 门编写的电路在执行前会被分解为这一集合<sup>[6](https://docs.quantum.ibm.com/api/qiskit/0.25/transpiler)</sup>。在 Qiskit 代码中，该门通过对量子比特 0 的单次调用 `qc.h(0)` 来施加<sup>[17](https://quantum.cloud.ibm.com/learning/en/modules/computer-science/quantum-teleportation)</sup>。

## 命名与数学背景

该门得名于线性代数中的阿达马矩阵。这些矩阵曾由詹姆斯·西尔维斯特（James Sylvester）于 1867 年考虑过，但其名称源自雅克·阿达马（Jacques Hadamard）1893 年的工作，他在其中证明：对于复数域上任意 \( n \times n \) 矩阵，若所有元素的模均以 1 为界，则其行列式的绝对值不能超过 \( n^{n/2} \)<sup>[18](https://chaos.if.uj.edu.pl/~karol/hadamard/d/real-hadamard-matrix.html)</sup><sup> • </sup><sup>[19](https://zenodo.org/records/18674602)</sup>。经 \( 1/\sqrt{2} \) 缩放的 2×2 阿达马矩阵即为该量子门；单量子比特阿达马矩阵的克罗内克积给出量子计算中广泛使用的多量子比特沃尔什-阿达马变换<sup>[20](https://citeseerx.ist.psu.edu/document?doi=00520966dc6faf52681538aa405ca593840014df&repid=rep1&type=pdf)</sup>。

## References

1. [Quantum mechanics basics, IBM Quantum Learning](https://quantum.cloud.ibm.com/learning/en/courses/use-a-qc-today/quantum-mechanics-basics)
2. [Arbitrary photonic wave plate operations on chip: Realizing Hadamard, Pauli-X, and rotation gates for polarisation qubits, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC3927208/)
3. [Qiskit: Introduction to the Hadamard gate, Quantum Computing UK](https://quantumcomputinguk.org/tutorials/hadamardgate)
4. [Chapter 6: Quantum Gates (lecture notes, CERN Inspire)](https://s3.cern.ch/inspire-prod-files-f/f0e7c1c29ae9066c839d0168363c37fa)
5. [J. Tolar, On Clifford groups in quantum computing, arXiv:1810.10259](https://arxiv.org/abs/1810.10259)
6. [Qiskit transpiler documentation (v0.25), IBM Quantum](https://docs.quantum.ibm.com/api/qiskit/0.25/transpiler)
7. [The Bloch sphere, Introduction to Quantum Information Science](https://qubit.guide/2.10-the-bloch-sphere.html)
8. [Introduction to Quantum Computing (16) – IBM Quantum Experience, YouTube](https://www.youtube.com/watch?v=v8Ujo27Rx0s)
9. [The phase-estimation procedure, IBM Quantum Documentation](https://qiskit.qotlabs.org/learning/courses/fundamentals-of-quantum-algorithms/phase-estimation-and-factoring/phase-estimation-procedure)
10. [D. Shepherd, On the Role of Hadamard Gates in Quantum Circuits, arXiv:quant-ph/0508153](https://arxiv.org/abs/quant-ph/0508153)
11. [Improved classical simulation of quantum circuits dominated by Clifford gates, arXiv:1601.07601](https://arxiv.org/abs/1601.07601)
12. [Randomized Benchmarking of Multiqubit Gates, NIST](https://www.nist.gov/publications/randomized-benchmarking-multiqubit-gates)
13. [Updating how we measure quantum quality and speed, IBM Quantum Blog](https://www.ibm.com/quantum/blog/quantum-metric-layer-fidelity)
14. [Implementation of an efficient linear-optical quantum router, ResearchGate](https://www.researchgate.net/publication/323257202_Implementation_of_an_efficient_linear-optical_quantum_router)
15. [Optical implementation of the F gate, Quantum Information & Computation 4(5), 373–382 (2004)](https://www.rintonpress.com/xqic4/qic-4-5/373-382.pdf)
16. [Implementation of a Walsh-Hadamard gate in a superconducting qutrit, arXiv:2003.04879](https://arxiv.org/abs/2003.04879)
17. [Quantum Teleportation, IBM Quantum Learning (Qiskit example)](https://quantum.cloud.ibm.com/learning/en/modules/computer-science/quantum-teleportation)
18. [Complex Hadamard Matrices reference page](https://chaos.if.uj.edu.pl/~karol/hadamard/d/real-hadamard-matrix.html)
19. [J. Hadamard, Résolution d'une question relative aux déterminants (1893), Zenodo](https://zenodo.org/records/18674602)
20. [The Role of Super-fast Transforms in Speeding up Quantum Computations, CiteSeerX](https://citeseerx.ist.psu.edu/document?doi=00520966dc6faf52681538aa405ca593840014df&repid=rep1&type=pdf)

---
*Initially written Oct 15, 2026*

Topic: 物质世界与数学 › 物理学 › 量子物理学 › Quantum information science › Quantum computing and algorithms › Quantum gates and circuits › Single-qubit gates

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/hadamard-gate

English original: https://www.edgepedia.org/hadamard-gate
