Unitary groups
Weingarten functions are used for evaluating integrals over the unitary group Ud
of products of matrix coefficients.
Consider in general an integral of the form
It can be shown that the integral would be zero, unless
. Thus, consider only integrals of the form
where
denotes complex conjugation. Note that
where
is the conjugate transpose of
, so one can interpret the above expression as being for the
matrix element of
.
This integral is equal to
where
, and
is the Weingarten function, given by
where the sum is over all partitions λ of n (Collins 2003). Here χλ is the character of Sn corresponding to the partition λ and s is the Schur polynomial of λ, so that sλ,d(1) is the dimension of the representation of Ud corresponding to λ.
The Weingarten functions are rational functions in d. They can have poles for small values of d, which cancel out in the formula above. There is an alternative inequivalent definition of Weingarten functions, where one only sums over partitions with at most d parts. This is no longer a rational function of d, but is finite for all positive integers d. The two sorts of Weingarten functions coincide for d larger than n, and either can be used in the formula for the integral.
The integrals are called the link integrals in
lattice gauge theory. See for a graphical method for evaluating these integrals, inspired by quantum string diagrams.
Examples of Weingarten functions
The first few Weingarten functions
where permutations σ are denoted by their cycle shapes. For example, in
, the permutation is the trivial permutation on 0 elements. In
, the permutation is the permutation on 4 elements that preserves 2 elements, and exchanges 2 elements.
There exist computer algebra programs to produce these expressions.
Examples of link integrals

Asymptotics
Given a permutation
, there is a trivial part and a nontrivial part. The trivial part fixes elements, and the nontrivial part permutes the elements in cycles. This can be written out in the cycle notation for permutations. For example, the following permutation
has the nontrivial part
.
Given a fixed permutation
on
elements, as the size of the unitary group grows to
, we have the asymptotic formula
where
are the cycles of
,
is the length of cycle
,
is a Catalan number, and
is the smallest number of transpositions (pairwise exchange) that
is composed of. This formula can be used to prove that the algebra of the gaussian unitary ensemble converges to the free probability algebra.
Higher order expansions exist, of the form
where
is given above, and
are real numbers that depend on
but not
. The full expansion is:
where
is the number of weakly monotone walks on
from
to
of length
. To define weakly monotone walk, we construct the Cayley graph of
. Each directed edge is obtained by multiplying on the right by a transposition. Now, a weakly monotone walk on the Cayley graph is a path
such that
.
There exists a diagrammatic method to systematically calculate the integrals over the unitary group as a power series in 1/d.