# 配分函数（统计力学）

在统计力学中，配分函数是对系统可能状态的一个归一化求和，每一项以涉及温度和（在某些系综中）化学势的指数因子加权。它的对数与导数给出系统的热力学性质：内能、熵、压强、自由能以及涨落。最常用的两种形式是：适用于固定温度、体积和粒子数系统的正则配分函数，以及适用于还与粒子库交换粒子的系统的巨正则配分函数。

| 关键事实 | 详情 |
|---|---|
| 正则定义 | \( Q = \sum_{j} \exp(-E_j / k_{\mathrm{B}}T) \)，即对所有能量本征态的玻尔兹曼因子求和；它是玻尔兹曼分布的归一化常数<sup>[1](https://fb15.pages.uni-marburg.de/ag-von-domaros/teaching/fecomp/canonical-ensemble.html)</sup> |
| 自由能联系 | 亥姆霍兹自由能 \( A = -k_{\mathrm{B}}T \ln Q \)<sup>[1](https://fb15.pages.uni-marburg.de/ag-von-domaros/teaching/fecomp/canonical-ensemble.html)</sup> |
| 热力学导数 | \( U = k_{\mathrm{B}}T^{2}(\partial \ln Q / \partial T)_{V,N} \) 与 \( P = k_{\mathrm{B}}T(\partial \ln Q / \partial V)_{T,N} \)<sup>[1](https://fb15.pages.uni-marburg.de/ag-von-domaros/teaching/fecomp/canonical-ensemble.html)</sup> |
| 经典形式 | \( Z = (1/h^{3N} N!) \int e^{-\beta E(\gamma)}\, d\gamma \)，其中 \( h = 2\pi\hbar \)，积分遍及相空间；\( N! \) 因子处理全同粒子<sup>[2](https://pages.uoregon.edu/dbelitz/teaching/lecture_notes/Statistical%20Mechanics%20%28DB%29/Stat_Mech_Notes.pdf)</sup><sup> • </sup><sup>[12](https://www.damtp.cam.ac.uk/user/tong/statphys/statmechhtml/S2.html)</sup> |
| 巨正则形式 | \( \Xi(T,V,\mu) = \mathrm{Tr}\, e^{-\beta(H - \mu N)} = \sum_{N} e^{\beta\mu N} Z(T,V,N) \)，巨势为 \( \Omega = -kT \ln \Xi \)<sup>[3](https://phys.libretexts.org/Bookshelves/Thermodynamics_and_Statistical_Mechanics/Book%3A_Thermodynamics_and_Statistical_Mechanics_%28Arovas%29/04%3A_Statistical_Ensembles/4.05%3A_Grand_Canonical_Ensemble_%28GCE%29)</sup> |
| 逸度 | \( z = e^{\beta\mu} \)，即每个粒子的无量纲活度；\( \Xi \) 是 \( z \) 的幂级数，其 \( z^{N} \) 系数为 \( N \) 粒子正则配分函数<sup>[3](https://phys.libretexts.org/Bookshelves/Thermodynamics_and_Statistical_Mechanics/Book%3A_Thermodynamics_and_Statistical_Mechanics_%28Arovas%29/04%3A_Statistical_Ensembles/4.05%3A_Grand_Canonical_Ensemble_%28GCE%29)</sup><sup> • </sup><sup>[4](https://notes.amittai.studio/statistical-mechanics/grand-canonical/grand-canonical-ensemble-and-the-grand-partition-function)</sup> |
| 涨落 | \( C_{V} = (\langle H^{2}\rangle - \langle H\rangle^{2})/T^{2} \)：热容度量正则系综中的能量涨落<sup>[5](https://www.cpt.univ-mrs.fr/~verga/pages/PS-ensemble.html)</sup> |

## 正则配分函数

正则系综描述一个粒子数 \( N \)、体积 \( V \) 和温度 \( T \) 均固定的封闭系统，它与一个热浴处于热接触。系统处于能量为 \( E_j \) 的能量本征态 \( j \) 的平衡概率由玻尔兹曼分布给出：

\[ P_j = \frac{1}{Q} \exp\left(-\frac{E_j}{k_{\mathrm{B}}T}\right), \]

而归一化求和

\[ Q = \sum_{j} \exp\left(-\frac{E_j}{k_{\mathrm{B}}T}\right) \]

即为正则配分函数<sup>[1](https://fb15.pages.uni-marburg.de/ag-von-domaros/teaching/fecomp/canonical-ensemble.html)</sup>。这个名称反映了求和的含义：它决定能量如何在可及状态之间分配。参数 \( \beta = (k_{\mathrm{B}}T)^{-1} \) 由温度的热力学定义确定<sup>[1](https://fb15.pages.uni-marburg.de/ag-von-domaros/teaching/fecomp/canonical-ensemble.html)</sup>。

该分布可以从系统与热浴组合而成的微正则系综导出：对远大于系统的热浴展开其熵 \( S_2(E_{\mathrm{tot}} - E_n) \)，即得到指数权重 \( e^{-\beta E_n} \)，其中 \( \beta \) 由热浴决定<sup>[2](https://pages.uoregon.edu/dbelitz/teaching/lecture_notes/Statistical%20Mechanics%20%28DB%29/Stat_Mech_Notes.pdf)</sup>。当系统制备于已知平均能量 \( U \) 而非固定能量时，同一分布同样适用；此时 \( T \) 是热浴为维持该平均能量所需的温度<sup>[2](https://pages.uoregon.edu/dbelitz/teaching/lecture_notes/Statistical%20Mechanics%20%28DB%29/Stat_Mech_Notes.pdf)</sup>。

**经典形式。** 对于具有 \( 3N \) 个自由度的 \( N \) 粒子经典系统，对状态的求和变为相空间积分：

\[ Z = \frac{1}{\hbar^{3N} N!} \int e^{-\beta E(\gamma)}\, d\gamma, \]

其中 \( \gamma = (p, q) \) 遍历动量和坐标。因子 \( \hbar^{3N} \) 来自不确定性关系，它使得相空间不能被分割为小于 \( \Delta p \, \Delta q = \hbar \) 的元胞，而 \( N! \) 则处理全同粒子<sup>[2](https://pages.uoregon.edu/dbelitz/teaching/lecture_notes/Statistical%20Mechanics%20%28DB%29/Stat_Mech_Notes.pdf)</sup>。在经典力学和量子力学中均成立的定义是 \( Z = \int_{0}^{\infty} \omega(E) e^{-\beta E}\, dE \)，其中 \( \omega(E) \) 为态密度<sup>[2](https://pages.uoregon.edu/dbelitz/teaching/lecture_notes/Statistical%20Mechanics%20%28DB%29/Stat_Mech_Notes.pdf)</sup>。

## 从配分函数到热力学

所有感兴趣的热力学量都可以用配分函数及其导数表示<sup>[1](https://fb15.pages.uni-marburg.de/ag-von-domaros/teaching/fecomp/canonical-ensemble.html)</sup>。核心联系是亥姆霍兹自由能：

\[ A = -k_{\mathrm{B}}T \ln Q = U - TS. \]

对 \( \ln Q \) 求导可得内能和压强：

\[ U = k_{\mathrm{B}}T^{2}\left(\frac{\partial \ln Q}{\partial T}\right)_{V,N}, \qquad P = k_{\mathrm{B}}T\left(\frac{\partial \ln Q}{\partial V}\right)_{T,N}. \]

熵则为 \( S = k_{\mathrm{B}} \ln Q + k_{\mathrm{B}}T (\partial \ln Q / \partial T)_{V,N} \)<sup>[1](https://fb15.pages.uni-marburg.de/ag-von-domaros/teaching/fecomp/canonical-ensemble.html)</sup>。

二阶导数将热力学响应与微观涨落联系起来。在正则系综中，

\[ C_{V} = \frac{\langle H^{2}\rangle - \langle H\rangle^{2}}{T^{2}} = \left(\frac{\Delta E}{T}\right)^{2}, \]

因此定容热容度量的是能量的均方涨落。这是涨落-响应关系的一个例子，此类关系还包括热膨胀、压缩率和磁化率<sup>[5](https://www.cpt.univ-mrs.fr/~verga/pages/PS-ensemble.html)</sup>。

## 巨正则配分函数

许多物理情形涉及一个与粒子库同时交换能量和粒子的系统；其宏观变量为化学势 \( \mu \)、体积 \( V \) 和温度 \( T \)<sup>[6](https://university.wyattau.com/physics/2-thermal-physics/3_the-grand-canonical-ensemble/)</sup>。化学势 \( \mu \) 具有能量的量纲<sup>[3](https://phys.libretexts.org/Bookshelves/Thermodynamics_and_Statistical_Mechanics/Book%3A_Thermodynamics_and_Statistical_Mechanics_%28Arovas%29/04%3A_Statistical_Ensembles/4.05%3A_Grand_Canonical_Ensemble_%28GCE%29)</sup>。能量为 \( E_n \)、粒子数为 \( N_n \) 的状态 \( n \) 的概率为

\[ P_n = \frac{1}{\Xi} e^{-\beta(E_n - \mu N_n)}, \qquad \Xi(T,V,\mu) = \sum_{n} e^{-\beta(E_n - \mu N_n)} = \mathrm{Tr}\, e^{-\beta(H - \mu N)}. \]

有些教材用巨正则哈密顿量 \( H_{\mathrm{K}} = H - \mu N \) 来写，于是 \( \Xi = \mathrm{Tr}\, e^{-\beta H_{\mathrm{K}}} \)<sup>[3](https://phys.libretexts.org/Bookshelves/Thermodynamics_and_Statistical_Mechanics/Book%3A_Thermodynamics_and_Statistical_Mechanics_%28Arovas%29/04%3A_Statistical_Ensembles/4.05%3A_Grand_Canonical_Ensemble_%28GCE%29)</sup>。

当 \( H \) 与 \( N \) 对易时，巨配分函数分解为固定粒子数的各个扇区：

\[ \Xi(T,V,\mu) = \sum_{N} e^{\beta\mu N} Z(T,V,N), \]

因此 \( \Xi \) 是正则配分函数的离散拉普拉斯变换<sup>[3](https://phys.libretexts.org/Bookshelves/Thermodynamics_and_Statistical_Mechanics/Book%3A_Thermodynamics_and_Statistical_Mechanics_%28Arovas%29/04%3A_Statistical_Ensembles/4.05%3A_Grand_Canonical_Ensemble_%28GCE%29)</sup><sup> • </sup><sup>[7](https://cfyang.stanford.edu/notes/ug/thermal/thermal.pdf)</sup>。与热力学的桥梁与正则情形平行：\( \Xi = e^{-\beta\Omega} \)，其中 \( \Omega(T,V,\mu) \) 为巨势，也称朗道自由能<sup>[3](https://phys.libretexts.org/Bookshelves/Thermodynamics_and_Statistical_Mechanics/Book%3A_Thermodynamics_and_Statistical_Mechanics_%28Arovas%29/04%3A_Statistical_Ensembles/4.05%3A_Grand_Canonical_Ensemble_%28GCE%29)</sup>。它是以 \( T \)、\( V \) 和 \( \mu \) 为自然变量的热力学势，其一阶导数给出熵、压强和粒子数<sup>[4](https://notes.amittai.studio/statistical-mechanics/grand-canonical/grand-canonical-ensemble-and-the-grand-partition-function)</sup>。

**逸度。** 权重 \( e^{\beta\mu} \) 每增加一个粒子出现一次，因此被赋予专名：逸度 \( z = e^{\beta\mu} \)，也称绝对活度<sup>[3](https://phys.libretexts.org/Bookshelves/Thermodynamics_and_Statistical_Mechanics/Book%3A_Thermodynamics_and_Statistical_Mechanics_%28Arovas%29/04%3A_Statistical_Ensembles/4.05%3A_Grand_Canonical_Ensemble_%28GCE%29)</sup><sup> • </sup><sup>[4](https://notes.amittai.studio/statistical-mechanics/grand-canonical/grand-canonical-ensemble-and-the-grand-partition-function)</sup>。用 \( z \) 表示，

\[ \Xi(T,V,z) = \sum_{N=0}^{\infty} z^{N} Z(T,V,N), \]

这是一个幂级数，其 \( z^{N} \) 系数为 \( N \) 粒子正则配分函数。逸度从 0（空极限 \( \mu \to -\infty \)，此时只有 \( N = 0 \) 项存活）向上取值，\( z = 1 \) 标记 \( \mu = 0 \)。对于经典气体，\( z \) 保持很小，低阶项占主导；对于量子气体，\( z \) 是自然展开变量，玻色和费米占据函数都以此来书写<sup>[4](https://notes.amittai.studio/statistical-mechanics/grand-canonical/grand-canonical-ensemble-and-the-grand-partition-function)</sup>。

## 计算示例

**经典理想气体。** 计算经典理想气体的巨配分函数可得

\[ \Xi = \exp\left[ \frac{(2\pi m k_{\mathrm{B}}T)^{3/2} V}{h^{3}} e^{\beta\mu} \right], \]

其中 \( -\beta\Omega = -PV = \ln \Xi \)，于是

\[ P = k_{\mathrm{B}}T \, (2\pi m k_{\mathrm{B}}T)^{3/2} h^{-3} e^{\beta\mu}. \]

所有热力学信息都可以从 \( \ln \Xi \) 获得，正如从正则的 \( \ln Q \) 获得一样<sup>[7](https://cfyang.stanford.edu/notes/ug/thermal/thermal.pdf)</sup>。

**谐振子。** 对于一维单个经典谐振子，其哈密顿量为 \( H = p^{2}/2m + m\omega_{0}^{2}x^{2}/2 \)，高斯积分给出 \( Q_{1} = kT/(\hbar\omega_{0}) \)；对于 \( N \) 个独立谐振子，\( Q_{N} = (Q_{1})^{N} \)，从而 \( U = NkT \)，这是能量均分定理的一个实例：在经典极限下，哈密顿量中以二次项形式出现的每个坐标或动量对平均能量的贡献为 \( \tfrac{1}{2}kT \)<sup>[8](https://www.its.caltech.edu/~mcc/Ph127/a/Lecture_7.pdf)</sup>。而量子能级 \( E_j = (j + \tfrac{1}{2})\hbar\omega_{0} \) 则给出

\[ Q_{1} = \frac{1}{2\sinh(\beta\hbar\omega_{0}/2)}, \]

由此得到的比热在低温下指数式地低于经典值 \( Nk \)，\( C \approx Nk(\hbar\omega_{0}/kT)^{2} e^{-\hbar\omega_{0}/kT} \)；取 \( N \to 3N \) 即为固体中声子比热的爱因斯坦模型<sup>[8](https://www.its.caltech.edu/~mcc/Ph127/a/Lecture_7.pdf)</sup>。

## 系综与等价性

配分函数属于一族系综描述。微正则系综处理能量、体积和粒子数均固定的孤立系统，其分布在能量区间内的各状态上是均匀的；微正则系综缺乏明显的温度概念<sup>[2](https://pages.uoregon.edu/dbelitz/teaching/lecture_notes/Statistical%20Mechanics%20%28DB%29/Stat_Mech_Notes.pdf)</sup>。正则系综以固定温度取代固定能量，巨正则系综以固定化学势取代固定粒子数<sup>[6](https://university.wyattau.com/physics/2-thermal-physics/3_the-grand-canonical-ensemble/)</sup>。教科书通常论证微正则系综与正则系综给出相同的平衡预言，而研究工作则考察了这种系综等价性何时成立，包括即使在熵函数非凹的系统中也能在热力学极限下重现微正则性质的广义正则系综<sup>[9](https://www.sciencedirect.com/science/article/abs/pii/S037843710400408X)</sup><sup> • </sup><sup>[10](https://arxiv.org/abs/cond-mat/0505218)</sup>。

对于粒子数固定的有限尺寸系统，热力学量严格属于正则系综，但正则配分函数难以计算；针对理想玻色气体、费米气体和真蒂莱气体，已发展了基于对称函数理论的方法<sup>[11](https://arxiv.org/abs/1710.02819)</sup>。

## References

1. [Canonical Ensemble, Statistical Thermodynamics and Free Energy Computation (University of Marburg)](https://fb15.pages.uni-marburg.de/ag-von-domaros/teaching/fecomp/canonical-ensemble.html)
2. [Statistical Mechanics lecture notes, D. Belitz, University of Oregon](https://pages.uoregon.edu/dbelitz/teaching/lecture_notes/Statistical%20Mechanics%20%28DB%29/Stat_Mech_Notes.pdf)
3. [Grand Canonical Ensemble (GCE), Thermodynamics and Statistical Mechanics (Arovas), Physics LibreTexts](https://phys.libretexts.org/Bookshelves/Thermodynamics_and_Statistical_Mechanics/Book%3A_Thermodynamics_and_Statistical_Mechanics_%28Arovas%29/04%3A_Statistical_Ensembles/4.05%3A_Grand_Canonical_Ensemble_%28GCE%29)
4. [The Grand Canonical Ensemble, study notes (Amittai)](https://notes.amittai.studio/statistical-mechanics/grand-canonical/grand-canonical-ensemble-and-the-grand-partition-function)
5. [Statistical Physics: Gibbs ensembles, CPT Marseille](https://www.cpt.univ-mrs.fr/~verga/pages/PS-ensemble.html)
6. [The Grand Canonical Ensemble, WyattAU University physics notes](https://university.wyattau.com/physics/2-thermal-physics/3_the-grand-canonical-ensemble/)
7. [Thermal Physics notes, Stanford (C. Yang)](https://cfyang.stanford.edu/notes/ug/thermal/thermal.pdf)
8. [Physics 127a Lecture 7: Canonical Ensemble, Simple Examples, Caltech](https://www.its.caltech.edu/~mcc/Ph127/a/Lecture_7.pdf)
9. [An introduction to the thermodynamic and macrostate levels of nonequivalent ensembles, Physica A (ScienceDirect)](https://www.sciencedirect.com/science/article/abs/pii/S037843710400408X)
10. [Generalized canonical ensembles and ensemble equivalence, arXiv:cond-mat/0505218](https://arxiv.org/abs/cond-mat/0505218)
11. [Canonical partition functions: ideal quantum gases, interacting classical gases, and interacting quantum gases, arXiv:1710.02819](https://arxiv.org/abs/1710.02819)
12. [2 Classical Gases‣ Statistical Physics by David Tong](https://www.damtp.cam.ac.uk/user/tong/statphys/statmechhtml/S2.html)

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

Topic: 物质世界与数学 › 物理学 › 经典物理学 › Thermodynamics › Statistical mechanics and kinetic theory › Ensembles and partition functions

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/partition-function-statistical-mechanics

English original: https://www.edgepedia.org/partition-function-statistical-mechanics
