# 积和式（数学）

在数学中，方阵的**积和式**（permanent）是一个标量，其值为对行或列的所有排列求和，每一项是排列所选取的元素之积；它与行列式的排列展开式完全相同，只是每一项都取正号<sup>[1](https://mathworld.wolfram.com/Permanent.html)</sup>。对于 \( n \times n \) 矩阵 \( A = (a_{ij}) \)，

\[ \operatorname{per}(A) = \sum_{\sigma \in S_n} \prod_{i=1}^{n} a_{i,\sigma(i)}, \]

其中 \( S_n \) 是 \( n \) 个符号上的对称群<sup>[1](https://mathworld.wolfram.com/Permanent.html)</sup>。尽管在形式上与行列式相似，积和式的行为却大不相同：它对其行和列是多重线性的，但缺少行列式的交错性质，而且精确计算它在一般情况下是计算上不可行的<sup>[2](https://math.ou.edu/~dmccullough/teaching/f06-6833/gap/htm/ref/CHAP017.htm)</sup><sup> • </sup><sup>[3](https://kodu.ut.ee/~peeter_l/teaching/keerukus11s/lastlecture.pdf)</sup><sup> • </sup><sup>[8](https://planetmath.org/permanent)</sup>。

| 关键事实 | 详情 |
|---|---|
| 定义 | \( \operatorname{per}(A) = \sum_{\sigma \in S_n} \prod_{i=1}^{n} a_{i,\sigma(i)} \)，即对全部 \( n! \) 个排列求和，不带符号<sup>[1](https://mathworld.wolfram.com/Permanent.html)</sup> |
| 与行列式的关系 | 与行列式的排列公式唯一的区别在于缺少符号 \( \operatorname{sgn}(\sigma) \)；积和式对其行和列仍是多重线性的，但一般不是交错的<sup>[4](https://cse.iitk.ac.in/users/manindra/survey/Determinant.pdf)</sup><sup> • </sup><sup>[2](https://math.ou.edu/~dmccullough/teaching/f06-6833/gap/htm/ref/CHAP017.htm)</sup><sup> • </sup><sup>[8](https://planetmath.org/permanent)</sup> |
| 组合意义 | 对于 \( (0,1) \)-矩阵，积和式等于对应二部图中完美匹配的数目<sup>[5](https://web.stanford.edu/~lindrew/18.218.pdf)</sup> |
| 精确复杂性 | 计算 \( (0,1) \)-矩阵的积和式是#P完全的（瓦利安特，1979）<sup>[1](https://mathworld.wolfram.com/Permanent.html)</sup> |
| 近似 | 对于任意非负矩阵，存在全多项式随机近似方案（FPRAS）（杰勒姆、辛克莱与维戈达，2004）<sup>[6](https://doi.org/10.1145/1008731.1008738)</sup> |
| 代数复杂性 | 在复数域上，积和式多项式对瓦利安特的VNP类是完备的<sup>[1](https://mathworld.wolfram.com/Permanent.html)</sup> |
| 物理学中的作用 | 玻色采样中的输出概率由干涉仪酉矩阵的子矩阵的积和式给出<sup>[7](https://www.sciencedirect.com/science/article/am/pii/S2405428318300431)</sup> |

## 定义与基本性质

积和式定义于域上的矩阵，或更一般地定义于交换环或半环上的矩阵，为对指标集的所有排列求和<sup>[8](https://planetmath.org/permanent)</sup><sup> • </sup><sup>[9](https://math.iisc.ac.in/~gadgil/PfsProgs25doc/Mathlib/LinearAlgebra/Matrix/Permanent.html)</sup>。例如，在Lean证明助手库Mathlib中，交换半环上方阵 \( M \) 的积和式写作 \( M.\text{permanent} = \sum_{\sigma : \text{Equiv.Perm } n} \prod_{i : n} M(\sigma i) i \)<sup>[9](https://math.iisc.ac.in/~gadgil/PfsProgs25doc/Mathlib/LinearAlgebra/Matrix/Permanent.html)</sup>。

若干性质直接由定义推出，并在Mathlib中作为基本引理得到证明<sup>[9](https://math.iisc.ac.in/~gadgil/PfsProgs25doc/Mathlib/LinearAlgebra/Matrix/Permanent.html)</sup>：

- 转置矩阵保持积和式不变。
- 置换行或置换列不改变积和式。
- 将整个矩阵乘以标量 \( c \)，积和式乘以 \( c^{n} \)，其中 \( n \) 是矩阵的阶；将单行或单列乘以 \( c \)，积和式乘以 \( c \)。
- 对角矩阵的积和式是其对角元素之积，单位矩阵的积和式为1。

积和式还有一个等价的生成函数形式：它是乘积 \( \prod_{i=1}^{n} (a_{i1}x_1 + a_{i2}x_2 + \cdots + a_{in}x_n) \) 中 \( x_1 x_2 \cdots x_n \) 的系数<sup>[1](https://mathworld.wolfram.com/Permanent.html)</sup>。积和式与行列式都是内同式（immanent）的特例，内同式是形如 \( \sum_{\pi \in S_n} \chi(\pi) \prod_{i=1}^{n} x_{i,\pi(i)} \) 的多项式，其中积和式取平凡特征标，行列式取符号特征标<sup>[4](https://cse.iitk.ac.in/users/manindra/survey/Determinant.pdf)</sup>。

**与行列式的对比。** 行列式对其行是多重线性的、交错的、乘性的，并在几何上可解释为体积；积和式是多重线性的，但是对称的而非交错的，且缺少行列式的乘性和几何体积解释<sup>[2](https://math.ou.edu/~dmccullough/teaching/f06-6833/gap/htm/ref/CHAP017.htm)</sup><sup> • </sup><sup>[4](https://cse.iitk.ac.in/users/manindra/survey/Determinant.pdf)</sup><sup> • </sup><sup>[19](https://www.jku.at/fileadmin/gruppen/180/kueng-tensors.pdf)</sup>。确实存在一个精确的巧合：在有两个元素的域 \( \mathrm{GF}(2) \) 上，\( -1 = 1 \)，因此每个排列的符号都是1，积和式与行列式重合<sup>[10](https://neelmishra.github.io/blog/cp/combinatorics-2/permanent-matrix.html)</sup>。

## 组合意义

对于 \( (0,1) \)-矩阵 \( A \)，每一项 \( \prod_i a_{i,\sigma(i)} \) 等于1当且仅当排列 \( \sigma \) 只使用取值为1的位置，因此积和式计数的是与矩阵的1元素模式相容的排列<sup>[5](https://web.stanford.edu/~lindrew/18.218.pdf)</sup>。将1解释为二部图的边，积和式等于完美匹配的数目，即将每个行顶点与一个不同的列顶点配对的方式数<sup>[5](https://web.stanford.edu/~lindrew/18.218.pdf)</sup>。

这种计数解释给出了快速的例子。对角线上为零、其余位置为1的 \( 4 \times 4 \) 矩阵，其积和式为9，即四个元素的错排数，因为每一项选取的都是没有不动点的排列<sup>[2](https://math.ou.edu/~dmccullough/teaching/f06-6833/gap/htm/ref/CHAP017.htm)</sup>。同一文献计算了一个 \( 7 \times 7 \) 关联矩阵，其积和式为24，即适合2阶射影平面的排列数<sup>[2](https://math.ou.edu/~dmccullough/teaching/f06-6833/gap/htm/ref/CHAP017.htm)</sup>。积和式也出现在拉丁方的计数中<sup>[8](https://planetmath.org/permanent)</sup>，而范德瓦尔登猜想——现已成为定理——涉及双随机矩阵的最小积和式<sup>[8](https://planetmath.org/permanent)</sup>。

## 计算积和式

朴素定义需要求和 \( n! \) 个乘积。赖瑟公式将其归结为对 \( \{1, \ldots, n\} \) 的 \( 2^n \) 个子集求和：

\[ \operatorname{per}(a_{ij}) = (-1)^n \sum_{s \subseteq \{1,\ldots,n\}} (-1)^{|s|} \prod_{i=1}^{n} \sum_{j \in s} a_{ij}, \]

其中 \( |s| \) 是 \( s \) 的元素个数<sup>[1](https://mathworld.wolfram.com/Permanent.html)</sup>。这仍然是指数级的，而且一般问题可证明是困难的：瓦利安特在1979年证明，计算 \( (0,1) \)-矩阵的积和式是#P完全的，意味着它与计数#P类中任何问题的解一样困难<sup>[1](https://mathworld.wolfram.com/Permanent.html)</sup><sup> • </sup><sup>[3](https://kodu.ut.ee/~peeter_l/teaching/keerukus11s/lastlecture.pdf)</sup>。即使对受限的矩阵类，这种困难性依然存在；对于顶点度数至多为4的平面图，计算积和式仍是#P完全的，尽管对于度数至多为3的情形，积和式可通过FKT算法在多项式时间内计算<sup>[11](https://link.springer.com/article/10.1007/s00373-023-02671-7)</sup>。

**近似。** 对于非负元素矩阵，马克·杰勒姆、阿利斯泰尔·辛克莱和埃里克·维戈达于2004年给出了首个全多项式随机近似方案，这是一种随机算法，以高概率返回真实积和式的任意指定相对误差范围内的值，其运行时间是矩阵规模和精度参数的多项式<sup>[6](https://doi.org/10.1145/1008731.1008738)</sup>。他们的方法将积和式估计归结为完美匹配的几乎均匀生成，通过一个状态为图的匹配的快速混合马尔可夫链来模拟<sup>[12](https://epubs.siam.org/doi/abs/10.1137/0218077)</sup>。杰勒姆和辛克莱的早期工作已对广泛的 \( (0,1) \)-矩阵类给出了全多项式方案，包括所有足够稠密的矩阵<sup>[12](https://epubs.siam.org/doi/abs/10.1137/0218077)</sup>。在确定性方面，列昂尼德·古尔维茨提出并与阿维·维格德森共同分析的算法在强多项式时间内将任意非负矩阵的积和式近似到 \( e^n \) 的乘性因子以内<sup>[13](https://www.ias.edu/video/csdm/2014/0929-LeonidGurvits)</sup>。对于非负矩阵，贝特积和式——一种可在多项式时间内计算的变分量——给出积和式的下界，并保持在其 \( 2^{n/2} \) 因子以内<sup>[1](https://mathworld.wolfram.com/Permanent.html)</sup>。含有负元素的矩阵难以适用此类方案，因为在这种情况下，一个高效近似算法将允许在多项式时间内精确计算 \( (0,1) \)-矩阵的积和式<sup>[14](https://faculty.cc.gatech.edu/~vigoda/Permanent.pdf)</sup>。

## 量子计算中的积和式

在线性光学量子计算的玻色采样模型中，\( n \) 个全同光子通过一个由 \( m \times m \) 酉矩阵 \( U \) 描述的无源干涉仪，给定输入到输出跃迁的概率正比于 \( |\operatorname{per}(U_{S,T})|^2 \)，其中 \( U_{S,T} \) 是由输入和输出占据模式选出的 \( n \times n \) 子矩阵<sup>[7](https://www.sciencedirect.com/science/article/am/pii/S2405428318300431)</sup><sup> • </sup><sup>[15](https://www.nature.com/articles/s41534-023-00676-x)</sup>。积和式的出现——其计算是#P困难的——促成了经典地重现玻色采样分布的困难性，而这正是此类装置实现量子优势提议的基础<sup>[7](https://www.sciencedirect.com/science/article/am/pii/S2405428318300431)</sup>。这种联系是双向的：埃尔米特半正定矩阵的积和式可以写成相关光学实验中光子计数概率的期望，这为该情形产生了一种受量子启发的经典算法<sup>[16](https://arxiv.org/abs/1609.02416)</sup>。

## 代数复杂性：积和式与行列式

在瓦利安特的代数复杂性理论中，积和式多项式对高效可定义多项式族的VNP类是完备的，而行列式属于更小的VP类<sup>[1](https://mathworld.wolfram.com/Permanent.html)</sup><sup> • </sup><sup>[17](https://radon.mat.univie.ac.at/~slc/wpapers/s36clausen.html)</sup>。一个核心问题——由坎普尔印度理工学院的马尼德拉·阿格拉沃尔综述——问的是：需要多大的矩阵才能将 \( n \times n \) 积和式表示为某个更大矩阵的行列式；这两个函数的复杂性大致对应于NP与P的算术类比<sup>[4](https://cse.iitk.ac.in/users/manindra/survey/Determinant.pdf)</sup>。一个猜想认为，积和式只能表示为指数规模矩阵的行列式，而几何复杂性理论——一个表示论纲领——部分正是为证明此类下界而发展起来的，其中包括关于积和式与行列式问题的一个已知否定结果<sup>[4](https://cse.iitk.ac.in/users/manindra/survey/Determinant.pdf)</sup><sup> • </sup><sup>[18](https://zesty.cs.uchicago.edu/articles/gs010/)</sup>。

## References

1. [Weisstein, Eric W. "Permanent." Wolfram MathWorld](https://mathworld.wolfram.com/Permanent.html)
2. [GAP Reference Manual, Chapter 17: Combinatorics, Section 17.4 Permanent of a Matrix](https://math.ou.edu/~dmccullough/teaching/f06-6833/gap/htm/ref/CHAP017.htm)
3. [Permanent of a matrix, lecture notes, University of Tartu](https://kodu.ut.ee/~peeter_l/teaching/keerukus11s/lastlecture.pdf)
4. [Manindra Agrawal, "Determinant Versus Permanent," IIT Kanpur survey](https://cse.iitk.ac.in/users/manindra/survey/Determinant.pdf)
5. [Lindrew, Stanford 18.218 course notes, Definition 10.11](https://web.stanford.edu/~lindrew/18.218.pdf)
6. [Jerrum, M., Sinclair, A., Vigoda, E. (2004). "A polynomial-time approximation algorithm for the permanent of a matrix with nonnegative entries." Journal of the ACM 51(4): 671–697](https://doi.org/10.1145/1008731.1008738)
7. ["The resurgence of the linear optics quantum interferometer — recent advances & applications," ScienceDirect](https://www.sciencedirect.com/science/article/am/pii/S2405428318300431)
8. ["Permanent," PlanetMath](https://planetmath.org/permanent)
9. [Mathlib.LinearAlgebra.Matrix.Permanent documentation](https://math.iisc.ac.in/~gadgil/PfsProgs25doc/Mathlib/LinearAlgebra/Matrix/Permanent.html)
10. [Neel Mishra, "Permanent of a Matrix," combinatorics notes](https://neelmishra.github.io/blog/cp/combinatorics-2/permanent-matrix.html)
11. ["Undirected Determinant and Its Complexity," Graphs and Combinatorics (2023)](https://link.springer.com/article/10.1007/s00373-023-02671-7)
12. [Jerrum, M., Sinclair, A. "Approximating the Permanent." SIAM Journal on Computing](https://epubs.siam.org/doi/abs/10.1137/0218077)
13. [Leonid Gurvits, "Breaking the e^n barrier for deterministic poly-time approximation of the permanent," IAS lecture](https://www.ias.edu/video/csdm/2014/0929-LeonidGurvits)
14. [Jerrum, Sinclair, Vigoda, "A Polynomial-Time Approximation Algorithm" (full text)](https://faculty.cc.gatech.edu/~vigoda/Permanent.pdf)
15. ["Non-linear Boson Sampling," npj Quantum Information (2023)](https://www.nature.com/articles/s41534-023-00676-x)
16. ["A quantum-inspired algorithm for estimating the permanent of positive semidefinite matrices," arXiv:1609.02416](https://arxiv.org/abs/1609.02416)
17. [Clausen, "Algebraische Komplexitätstheorie III: Zur Berechnungskomplexität von Permanenten," Séminaire Lotharingien](https://radon.mat.univie.ac.at/~slc/wpapers/s36clausen.html)
18. [Bläser, M., Ikenmeyer, C. "Introduction to Geometric Complexity Theory," Theory of Computing Library Graduate Surveys 10 (2025)](https://zesty.cs.uchicago.edu/articles/gs010/)
19. [jku.at](https://www.jku.at/fileadmin/gruppen/180/kueng-tensors.pdf)

---
*Initially written Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 数与代数 › Linear and multilinear algebra › Matrix theory › Determinants and minors

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/permanent-mathematics

English original: https://www.edgepedia.org/permanent-mathematics
