In quantum field theory, partition functions are generating functionals for correlation functions, making them key objects of study in the path integral formalism. They are the imaginary time versions of statistical mechanics partition functions, giving rise to a close connection between these two areas of physics. Partition functions can rarely be solved for exactly, although free theories do admit such solutions. Instead, a perturbative approach is usually implemented, this being equivalent to summing over Feynman diagrams.

Generating functional

Scalar theories 

In a -dimensional field theory with a real scalar field  and action , the partition function is defined in the path integral formalism as the functional

where  is a fictitious source current. It acts as a generating functional for arbitrary n-point correlation functions

The derivatives used here are functional derivatives rather than regular derivatives since they are acting on functionals rather than regular functions. From this it follows that an equivalent expression for the partition function reminiscent to a power series in source currents is given by

In curved spacetimes there is an added subtlety that must be dealt with due to the fact that the initial vacuum state need not be the same as the final vacuum state. Partition functions can also be constructed for composite operators in the same way as they are for fundamental fields. Correlation functions of these operators can then be calculated as functional derivatives of these functionals. For example, the partition function for a composite operator  is given by

Knowing the partition function completely solves the theory since it allows for the direct calculation of all of its correlation functions. However, there are very few cases where the partition function can be calculated exactly. While free theories do admit exact solutions, interacting theories generally do not. Instead the partition function can be evaluated at weak coupling perturbatively, which amounts to regular perturbation theory using Feynman diagrams.

By performing a Wick transformation, the partition function can be expressed in Euclidean spacetime as

where  is the Euclidean action and  are Euclidean coordinates. This form is closely connected to the partition function in statistical mechanics, especially since the Euclidean Lagrangian is usually bounded from below in which case it can be interpreted as an energy density. It also allows for the interpretation of the exponential factor as a statistical weight for the field configurations, with larger fluctuations in the gradient or field values leading to greater suppression. This connection with statistical mechanics also lends additional intuition for how correlation functions should behave in a quantum field theory.

General theories 

Most of the same principles of the scalar case hold for more general theories with additional fields. Each field requires the introduction of its own fictitious current, with antiparticle fields requiring their own separate currents. Acting on the partition function with a derivative of a current brings down its associated field from the exponential, allowing for the construction of arbitrary correlation functions. After differentiation, the currents are set to zero when correlation functions in a vacuum state are desired, but the currents can also be set to take on particular values to yield correlation functions in non-vanishing background fields. 

For partition functions with Grassmann valued fermion fields, the sources are also Grassmann valued. For example, a theory with a single Dirac fermion  requires the introduction of two Grassmann currents  and  so that the partition function is

Functional derivatives with respect to  give fermion fields while derivatives with respect to  give anti-fermion fields in the correlation functions.

Thermal field theories 

A thermal field theory at temperature  is equivalent in Euclidean formalism to a theory with a compactified temporal direction of length . Partition functions must be modified appropriately by imposing periodicity conditions on the fields and the Euclidean spacetime integrals

This partition function can be taken as the definition of the thermal field theory in imaginary time formalism. Correlation functions are acquired from the partition function through the usual functional derivatives with respect to currents

Free theories 

The partition function can be solved exactly in free theories by completing the square in terms of the fields. Since a shift by a constant does not affect the path integral measure, this allows for separating the partition function into a constant of proportionality  arising from the path integral, and a second term that only depends on the current. For the scalar theory this yields

where  is the position space Feynman propagator

This partition function fully determines the free field theory. 

In the case of a theory with a single free Dirac fermion, completing the square yields a partition function of the form

where  is the position space Dirac propagator

References

Further reading
 Ashok Das, Field Theory: A Path Integral Approach, 2nd edition, World Scientific (Singapore, 2006); paperback .
 Kleinert, Hagen, Path Integrals in Quantum Mechanics, Statistics, Polymer Physics, and Financial Markets, 4th edition, World Scientific (Singapore, 2004); paperback   (also available online: PDF-files).
    Jean Zinn-Justin (2009), Scholarpedia, 4(2): 8674.

Quantum field theory