The precise mathematical expression for a statistical ensemble depends on the kind of mechanics under consideration—quantum or classical—since the notion of a "microstate" is considerably different in these two cases. In quantum mechanics, the canonical ensemble affords a simple description since
diagonalization provides a discrete set of
microstates with specific energies. The classical mechanical case is more complex as it involves instead an integral over canonical
phase space, and the size of microstates in phase space can be chosen somewhat arbitrarily.
Quantum mechanical A statistical ensemble in quantum mechanics is represented by a
density matrix, denoted by \hat \rho. In basis-free notation, the canonical ensemble is the density matrix : \hat \rho = \exp\left(\tfrac{1}{kT}(F - \hat H)\right), where is the system's total energy operator (
Hamiltonian), and is the
matrix exponential operator. The free energy is determined by the probability normalization condition that the density matrix has a
trace of one, \operatorname{Tr} \hat \rho=1: : e^{-\frac{F}{k T}} = \operatorname{Tr} \exp\left(-\tfrac{1}{kT} \hat H\right). The canonical ensemble can alternatively be written in a simple form using
bra–ket notation, if the system's
energy eigenstates and energy eigenvalues are known. Given a complete basis of energy eigenstates , indexed by , the canonical ensemble is: : \hat \rho = \sum_i e^{\frac{F - E_i}{k T}} |\psi_i\rangle \langle \psi_i | : e^{-\frac{F}{k T}} = \sum_i e^{\frac{- E_i}{k T}}. where the are the energy eigenvalues determined by . In other words, a set of microstates in quantum mechanics is given by a complete set of stationary states. The density matrix is diagonal in this basis, with the diagonal entries each directly giving a probability.
Classical mechanical In classical mechanics, a statistical ensemble is instead represented by a
joint probability density function in the system's
phase space, , where the and are the
canonical coordinates (generalized momenta and generalized coordinates) of the system's internal degrees of freedom. In a system of particles, the number of degrees of freedom depends on the number of particles in a way that depends on the physical situation. For a three-dimensional monoatomic gas (not molecules), . In diatomic gases there will also be rotational and vibrational degrees of freedom. The probability density function for the canonical ensemble is: : \rho = \frac{1}{h^n C} e^{\frac{F - E}{k T}}, where • is the energy of the system, a function of the phase , • is an arbitrary but predetermined constant with the units of , setting the extent of one microstate and providing correct dimensions to . • is an overcounting correction factor, often used for particle systems where identical particles are able to change place with each other. • provides a normalizing factor and is also the characteristic state function, the free energy. Again, the value of is determined by demanding that is a normalized probability density function: : e^{-\frac{F}{k T}} = \int \ldots \int \frac{1}{h^n C} e^{\frac{- E}{k T}} \, dp_1 \ldots dq_n This integral is taken over the entire
phase space. In other words, a microstate in classical mechanics is a phase space region, and this region has volume . This means that each microstate spans a range of energy, however this range can be made arbitrarily narrow by choosing to be very small. The phase space integral can be converted into a summation over microstates, once phase space has been finely divided to a sufficient degree. == See also ==