QuantumInfo.StatMech.ThermoQuantities
12 declarations
Partition function of a MicroHamiltonian
#PartitionZGiven a microcanonical Hamiltonian with parameters , the partition function for an inverse temperature is defined as the integral over the configuration space: where is the energy of the configuration . If the energy of a configuration is infinite (), the integrand is treated as ; otherwise, it is given by the exponential of times the finite value of the energy .
Partition function as a function of temperature
#PartitionZTGiven a microcanonical Hamiltonian and a degeneracy , the partition function is defined as a function of the absolute temperature . It is calculated by evaluating the -dependent partition function at the inverse temperature .
Internal energy
#InternalUFor a given Hamiltonian and measure , the internal energy is a function of the thermodynamic beta (where ). It is defined as the negative derivative of the natural logarithm of the partition function with respect to : \[ U(\beta) = -\frac{d}{d\beta} \ln(Z(\beta)) \] where is the partition function of the micro-Hamiltonian system.
Helmholtz Free Energy
#HelmholtzAFor a given Hamiltonian with density of states , the Helmholtz free energy (also denoted ) is defined as a function of the absolute temperature by the expression where is the partition function `PartitionZT` of the system at temperature .
Entropy
#EntropySGiven a microscopic Hamiltonian and a dimension , the entropy is defined as the negative derivative of the Helmholtz free energy with respect to the absolute temperature . That is, where both and are functions of the temperature .
Entropy as a function of
#EntropySβFor a given Hamiltonian and measure , the entropy as a function of the inverse temperature is defined as where is the partition function (`PartitionZ`) and is the internal energy (`InternalU`).
-integrability of a Hamiltonian at
#ZIntegrableLet be a microcanonical Hamiltonian and be a parameter. The Hamiltonian is said to be -integrable at a given inverse temperature if the following two conditions hold: 1. The function mapping a configuration to the Boltzmann factor is Lebesgue integrable. Here, the energy is defined by the Hamiltonian . If the energy is infinite (), the value is taken to be ; otherwise, it is . 2. The partition function , defined as the integral of this Boltzmann factor, is non-zero.
Integrability of the partition function for all
#PositiveβIntegrableLet be a micro-Hamiltonian and be a measure. The property `PositiveβIntegrable` holds if for all positive inverse temperatures , the partition function is integrable (denoted as `ZIntegrable`).
is smooth at if is -integrable at
#DifferentiableAt_Z_if_ZIntegrableLet be a micro-Hamiltonian and be a given density or dimension parameter. For any inverse temperature , if the partition function integral converges (i.e., is -integrable at ), then the partition function is smooth (of class ) at .
Let be a microcanonical Hamiltonian and be a system parameter. For any temperature and inverse temperature such that , if the partition function is integrable at (denoted by `ZIntegrable`), then the entropy defined in terms of () is equal to the entropy defined in terms of ().
MicroHamiltonian.β_eq_deriv_S_U
#β_eq_deriv_S_U{β : ℝ} (hi : H.ZIntegrable d β) : β = (deriv (H.EntropySβ d) β) / deriv (H.InternalU d) β
Pressure as
#PressureFor a standard microcanonical system with state , where is the number of particles and is the volume, the pressure at temperature is defined as the negative partial derivative of the Helmholtz free energy with respect to the volume: where is the Helmholtz free energy associated with the Hamiltonian .
