# 哈达玛矩阵

哈达玛矩阵（Hadamard matrix）是一种方阵，其元素全为 +1 或 −1，且各行相互正交，因而满足方程 \( HH^{\mathsf T} = nI_n \)，其中 \( n \) 为矩阵的阶，\( I_n \) 为单位矩阵。<sup>[1](https://encyclopediaofmath.org/wiki/Hadamard_matrix)</sup> 在所有阶为 \( n \)、元素绝对值不超过 1 的矩阵中，这种矩阵能达到最大可能的行列式，即 \( n^{n/2} \)；正因如此，雅克·哈达玛（Jacques Hadamard）于 1893 年通过他的行列式不等式得到了这类矩阵。<sup>[1](https://encyclopediaofmath.org/wiki/Hadamard_matrix)</sup> 实际上，这些对象最早由詹姆斯·约瑟夫·西尔维斯特（James Joseph Sylvester）于 1867 年研究，当时称为“无变路面”（anallagmatic pavement），比哈达玛考虑它们早了 26 年。<sup>[2](https://mathworld.wolfram.com/HadamardMatrix.html)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 元素取自 \(\{+1, -1\}\) 的 \( n \times n \) 矩阵 \( H \)，满足 \( HH^{\mathsf T} = nI_n \)；等价地，任意两个不同行在恰好一半位置上相同、一半位置上不同<sup>[1](https://encyclopediaofmath.org/wiki/Hadamard_matrix)</sup> |
| 行列式 | 阶为 \( n \) 的 ±1 矩阵所能达到的最大值：\( |\det H| = n^{n/2} \)<sup>[1](https://encyclopediaofmath.org/wiki/Hadamard_matrix)</sup> |
| 可能的阶 | \( n = 1 \)、\( n = 2 \) 或 \( n \equiv 0 \pmod 4 \)；每个 4 的倍数是否都存在，即未决的哈达玛猜想<sup>[3](https://doc-gitlab.sagemath.org/html/en/reference/combinat/sage/combinat/matrices/hadamard_matrix.html)</sup> |
| 基本构造 | 两个哈达玛矩阵的克罗内克（张量）积是阶为两者乘积的哈达玛矩阵；阶为 \( 2^k \) 的西尔维斯特矩阵来自对 2 × 2 矩阵的迭代<sup>[4](https://maths.qmul.ac.uk/~pjc/design/encyc/topics/had.pdf)</sup> |
| 佩利构造 | 当 \( n \) 可被 4 整除且形如 \( 2^e(p^m+1) \)（\( p \) 为奇素数）时给出哈达玛矩阵<sup>[2](https://mathworld.wolfram.com/HadamardMatrix.html)</sup> |
| 已知纪录阶 | 阶 428 由哈迪·哈拉加尼（Hadi Kharaghani）和贝赫鲁兹·塔伊费-雷扎伊（Behruz Tayfeh-Rezaie）于 2004 年构造；目前尚不知矩阵存在的最小阶为 668<sup>[5](https://webspace.maths.qmul.ac.uk/l.h.soicher/designtheory.org/library/encyc/topics/had.pdf)</sup> |
| 应用 | 信号处理、光复用、纠错编码、实验的统计设计、CDMA 扩频码及压缩感知<sup>[6](https://jtit.pl/jtit/article/view/176)</sup><sup> • </sup><sup>[7](https://jmlr.org/papers/v25/22-0760.html)</sup> |

## 定义与基本性质

定义方程 \( HH^{\mathsf T} = nI_n \) 表明任意两个不同行的内积为零；又因为矩阵是方阵，它还蕴含各列相互正交，且 \( H^{-1} = H^{\mathsf T}/n \)。<sup>[1](https://encyclopediaofmath.org/wiki/Hadamard_matrix)</sup> 由于两个 ±1 行的内积等于（相同位置数）减去（不同位置数），正交性迫使任意两行在 \( n \) 个位置中恰好一半相同。

若干操作保持哈达玛性质：置换行或列、改变某些行或列的符号，以及转置。<sup>[1](https://encyclopediaofmath.org/wiki/Hadamard_matrix)</sup><sup> • </sup><sup>[5](https://webspace.maths.qmul.ac.uk/l.h.soicher/designtheory.org/library/encyc/topics/had.pdf)</sup> 利用这些操作，任何哈达玛矩阵都可化为规范形式，即第一行和第一列全由 +1 组成。<sup>[1](https://encyclopediaofmath.org/wiki/Hadamard_matrix)</sup> 通过此类操作相关联的两个矩阵称为等价的。<sup>[5](https://webspace.maths.qmul.ac.uk/l.h.soicher/designtheory.org/library/encyc/topics/had.pdf)</sup>

与行列式的联系来自哈达玛不等式：对于阶为 \( n \)、所有元素模不超过 \( M \) 的复矩阵 \( A \)，有 \( |A| \leq M^n n^{n/2} \)。达到此界的 ±1 矩阵恰好就是哈达玛矩阵，因为等号成立要求各行相互垂直且每个元素的模为 1。<sup>[1](https://encyclopediaofmath.org/wiki/Hadamard_matrix)</sup><sup> • </sup><sup>[4](https://maths.qmul.ac.uk/~pjc/design/encyc/topics/had.pdf)</sup>

## 哪些阶是可能的

哈达玛矩阵的阶必须为 \( n = 1 \)、\( n = 2 \) 或 4 的倍数。<sup>[1](https://encyclopediaofmath.org/wiki/Hadamard_matrix)</sup> 一旦矩阵规范化，论证就很初等：其他每一行必须有同样多的 +1 和 −1，故 \( n \) 为偶数；再比较前三行便推出，当 \( n > 2 \) 时 \( n = 4a \)。<sup>[4](https://maths.qmul.ac.uk/~pjc/design/encyc/topics/had.pdf)</sup>

这个必要条件是否也是充分的，就是哈达玛猜想：对每个等于 1、2 或 4 的倍数的阶 \( n \)，都存在哈达玛矩阵。<sup>[3](https://doc-gitlab.sagemath.org/html/en/reference/combinat/sage/combinat/matrices/hadamard_matrix.html)</sup> 该猜想被归功于佩利（Paley），近一个世纪以来吸引了众多研究者。<sup>[3](https://doc-gitlab.sagemath.org/html/en/reference/combinat/sage/combinat/matrices/hadamard_matrix.html)</sup><sup> • </sup><sup>[8](https://www.sciencedirect.com/science/article/pii/S0012365X24003327)</sup> 已知对所有 2 的幂以及许多其他无限族存在，但尚不知是否对所有可允许的阶都存在。<sup>[9](https://www.encyclopedia.com/computing/dictionaries-thesauruses-pictures-and-press-releases/hadamard-matrices)</sup>

## 构造

**西尔维斯特矩阵。** 两个阶分别为 \( m \) 和 \( n \) 的哈达玛矩阵的克罗内克（张量）积是阶为 \( mn \) 的哈达玛矩阵。<sup>[1](https://encyclopediaofmath.org/wiki/Hadamard_matrix)</sup><sup> • </sup><sup>[4](https://maths.qmul.ac.uk/~pjc/design/encyc/topics/had.pdf)</sup> 用 2 × 2 矩阵

\[ \begin{pmatrix} 1 & 1 \\ 1 & -1 \end{pmatrix} \]

反复取积，对任意 \( k \geq 1 \) 产生阶为 \( 2^k \) 的西尔维斯特矩阵 \( S(k) \)。<sup>[4](https://maths.qmul.ac.uk/~pjc/design/encyc/topics/had.pdf)</sup> 西尔维斯特矩阵也可描述为初等阿贝尔 2-群的特征标表，其各行经缩放后构成数字信号处理中使用的沃尔什函数。<sup>[4](https://maths.qmul.ac.uk/~pjc/design/encyc/topics/had.pdf)</sup><sup> • </sup><sup>[9](https://www.encyclopedia.com/computing/dictionaries-thesauruses-pictures-and-press-releases/hadamard-matrices)</sup>

**佩利矩阵。** 对于模 4 余 3 的素数幂 \( q \)，域 GF(\( q \)) 的二次特征标可构造一个对角为零的反对称矩阵，再用一行和一列 +1 加边，便得到阶为 \( q+1 \) 的哈达玛矩阵。<sup>[4](https://maths.qmul.ac.uk/~pjc/design/encyc/topics/had.pdf)</sup> 更一般地，佩利定理保证：只要 \( n \) 可被 4 整除且形如 \( 2^e(p^m+1) \)，其中 \( m \) 为正整数、\( e \) 为非负整数、\( p \) 为奇素数，就存在阶为 \( n \) 的哈达玛矩阵。<sup>[2](https://mathworld.wolfram.com/HadamardMatrix.html)</sup>

**其他方法。** 这些族未覆盖的阶可由拉丁方、施泰纳三元系、威廉森矩阵、古塔尔斯–赛德尔阵列及互补差集构造。<sup>[4](https://maths.qmul.ac.uk/~pjc/design/encyc/topics/had.pdf)</sup><sup> • </sup><sup>[10](https://arxiv.org/abs/2411.18897)</sup> 一个 2024 年的数据库项目在 SageMath 中实现了覆盖所有已知阶不超过 1208 的哈达玛矩阵和斜哈达玛矩阵的构造，验证了已发表文献；在此过程中发现，一项声称构造阶 292 斜哈达玛矩阵的工作有误，并给出了修正。<sup>[10](https://arxiv.org/abs/2411.18897)</sup>

## 已知阶的前沿

在 2004 年之前，尚未构造出哈达玛矩阵的最小 4 的倍数是 428；那一年，哈迪·哈拉加尼和贝赫鲁兹·塔伊费-雷扎伊在德黑兰理论物理与数学研究所工作期间构造出了一个；目前尚不知的最小阶是 668。<sup>[5](https://webspace.maths.qmul.ac.uk/l.h.soicher/designtheory.org/library/encyc/topics/had.pdf)</sup> 存在性在渐近意义下也已知：对任意奇数 \( q \)，存在阈值 \( \tau_0 \)，使得对每个 \( \tau \geq \tau_0 \) 都存在阶为 \( 2^{\tau} q \) 的哈达玛矩阵。<sup>[10](https://arxiv.org/abs/2411.18897)</sup> 该数据库项目还揭示了单一方法的局限：佩利构造对形如 \( 2^m \times 509203 \) 的阶（对每个 \( m \)）都失效。<sup>[10](https://arxiv.org/abs/2411.18897)</sup>

## 与设计和码的联系

阶为 \( 4a \) 的哈达玛矩阵编码了组合设计。将一行规范化，并以其他每一行取 +1 和 −1 的列集合作为区组，得到一个 \( 3 \)-\( (4a, 2a, a-1) \) 设计，称为哈达玛 3-设计；具有这些参数的设计必然为此形式，且矩阵在等价意义下可由该设计恢复。<sup>[5](https://webspace.maths.qmul.ac.uk/l.h.soicher/designtheory.org/library/encyc/topics/had.pdf)</sup> 若改为选取一行和一列，则得到一个方形的 \( 2 \)-\( (4a-1, 2a-1, a-1) \) 设计，即哈达玛 2-设计。<sup>[5](https://webspace.maths.qmul.ac.uk/l.h.soicher/designtheory.org/library/encyc/topics/had.pdf)</sup> 等价地，阶为 \( 4t \) 的哈达玛矩阵等价于一个 \( (4t-1, 2t-1, t-1) \)-设计。<sup>[1](https://encyclopediaofmath.org/wiki/Hadamard_matrix)</sup>

这种对称性可以非常深刻。马歇尔·霍尔（Marshall Hall）证明了，在等价意义下，阶 12 的哈达玛矩阵唯一，且其自同构群模去由 \( (-I, -I) \) 生成的中心子群后，是散在单群马蒂厄群 \( M_{12} \)，它在行上和列上均为 5-重传递。<sup>[5](https://webspace.maths.qmul.ac.uk/l.h.soicher/designtheory.org/library/encyc/topics/had.pdf)</sup> 哈达玛矩阵还产生线性码：在规范西尔维斯特矩阵中把 +1 换成 0、−1 换成 1，便得到哈达玛码。<sup>[9](https://www.encyclopedia.com/computing/dictionaries-thesauruses-pictures-and-press-releases/hadamard-matrices)</sup>

## 应用

由于哈达玛矩阵的各行经 \( 1/\sqrt{n} \) 缩放后构成标准正交基，这些矩阵支撑正交变换和正交序列。<sup>[9](https://www.encyclopedia.com/computing/dictionaries-thesauruses-pictures-and-press-releases/hadamard-matrices)</sup> 有文献记载的用途包括信号处理、光复用、纠错编码以及统计实验的设计与分析，具体工具中有沃尔什函数和 CDMA 扩频码。<sup>[6](https://jtit.pl/jtit/article/view/176)</sup> 在统计学中，哈达玛矩阵生成因子试验的正交主效应方案，包括由克罗内克积构造的饱和方案。<sup>[11](https://www.tandfonline.com/doi/full/10.1080/00401706.1985.10488011)</sup> 在压缩感知中，2024 年的一种方法通过采样沃尔什–哈达玛矩阵的行来构造确定性感知矩阵，比此前的确定性方法具有更低的相干性和更低的计算成本。<sup>[7](https://jmlr.org/papers/v25/22-0760.html)</sup>

## 推广

将 ±1 元素替换为 \( p \) 次单位根，得到阶为 \( h \) 的广义哈达玛矩阵 \( H(p, h) \)，满足 \( HH^{cT} = hI_h \)（其中使用共轭转置）；它继承了对称性和张量积性质的类似版本。<sup>[1](https://encyclopediaofmath.org/wiki/Hadamard_matrix)</sup> 复哈达玛矩阵的元素为任意单位模复数且各行两两正交，构成更广的一类，在量子信息论中发挥作用。<sup>[12](https://arxiv.org/abs/quant-ph/0512154)</sup> 称重矩阵的元素取自 \(\{-1, 0, 1\}\)，对权重 \( w \leq n \) 满足 \( WW^{\mathsf T} = wI_n \)，从另一方向推广了哈达玛矩阵；最近有综述考察了复广义称重矩阵在量子纠错码中的应用。<sup>[8](https://www.sciencedirect.com/science/article/pii/S0012365X24003327)</sup>

## References

1. [Hadamard matrix, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Hadamard_matrix)
2. [Hadamard Matrix, Wolfram MathWorld](https://mathworld.wolfram.com/HadamardMatrix.html)
3. [Hadamard matrices, Sage 9.4 Reference Manual: Combinatorics](https://doc-gitlab.sagemath.org/html/en/reference/combinat/sage/combinat/matrices/hadamard_matrix.html)
4. [Hadamard matrices, The Encyclopedia of Design Theory (Peter J. Cameron)](https://maths.qmul.ac.uk/~pjc/design/encyc/topics/had.pdf)
5. [Hadamard matrices, The Encyclopaedia of Design Theory (updated version, Leonard H. Soicher site)](https://webspace.maths.qmul.ac.uk/l.h.soicher/designtheory.org/library/encyc/topics/had.pdf)
6. [H. Evangelaras, C. Koukouvios, J. Seberry (2003). Applications of Hadamard matrices. Journal of Telecommunications and Information Technology.](https://jtit.pl/jtit/article/view/176)
7. [Youran Qi, Xu He, Tzu-Hsiang Hung, Peter Chien (2024). A Statistical Experimental Design Method for Constructing Deterministic Sensing Matrices for Compressed Sensing. JMLR 25(277).](https://jmlr.org/papers/v25/22-0760.html)
8. [Ronan Egan (2025). A survey of complex generalized weighing matrices and a construction of quantum error-correcting codes. Discrete Mathematics 348(1).](https://www.sciencedirect.com/science/article/pii/S0012365X24003327)
9. [Hadamard matrices, Encyclopedia.com (A Dictionary of Computing)](https://www.encyclopedia.com/computing/dictionaries-thesauruses-pictures-and-press-releases/hadamard-matrices)
10. [Matteo Cati, Dmitrii V. Pasechnik (2024). A database of constructions of Hadamard matrices. arXiv:2411.18897.](https://arxiv.org/abs/2411.18897)
11. [A. K. Nigam, V. K. Gupta (1985). Construction of Orthogonal Main-Effect Plans Using Hadamard Matrices. Technometrics 27(1), 37–40.](https://www.tandfonline.com/doi/full/10.1080/00401706.1985.10488011)
12. [A concise guide to complex Hadamard matrices. arXiv:quant-ph/0512154.](https://arxiv.org/abs/quant-ph/0512154)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 数与代数 › Computational and symbolic algebra › Algebraic combinatorics and graph theory › Combinatorial designs and block structures

Copyright 2026 Edgepedia

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

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

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