Hafnian: Difference between revisions

From testwiki
Jump to navigation Jump to search
imported>Vstephen B
mNo edit summary
 
(No difference)

Latest revision as of 23:54, 13 August 2024

Template:Confuse In mathematics, the hafnian is a scalar function of a symmetric matrix that generalizes the permanent.

The hafnian was named by Eduardo R. Caianiello "to mark the fruitful period of stay in Copenhagen (Hafnia in Latin)."[1]

Definition

The hafnian of a 2n×2n symmetric matrix A is defined as

haf(A)=ρP2n2{i,j}ρAi,j,

where P2n2 is the set of all partitions of the set {1,2,,2n} into subsets of size 2.[2][3]

This definition is similar to that of the Pfaffian, but differs in that the signatures of the permutations are not taken into account. Thus the relationship of the hafnian to the Pfaffian is the same as relationship of the permanent to the determinant.[4]

Basic properties

The hafnian may also be defined as

haf(A)=1n!2nσS2ni=1nAσ(2i1),σ(2i),

where S2n is the symmetric group on {1,2,...,2n}.[5] The two definitions are equivalent because if σS2n, then {{σ(2i1),σ(2i)}:i{1,...,n}} is a partition of {1,2,,2n} into subsets of size 2, and as σ ranges over S2n, each such partition is counted exactly n!2n times. Note that this argument relies on the symmetry of A, without which the original definition is not well-defined.

The hafnian of an adjacency matrix of a graph is the number of perfect matchings (also known as 1-factors) in the graph. This is because a partition of {1,2,,2n} into subsets of size 2 can also be thought of as a perfect matching in the complete graph K2n.

The hafnian can also be thought of as a generalization of the permanent, since the permanent can be expressed as

per(C)=haf(0CCT0).[2]

Just as the hafnian counts the number of perfect matchings in a graph given its adjacency matrix, the permanent counts the number of matchings in a bipartite graph given its biadjacency matrix.

The hafnian is also related to moments of multivariate Gaussian distributions. By Wick's probability theorem, the hafnian of a real 2n×2n symmetric matrix may expressed as

haf(A)=𝔼(X1,,X2n)𝒩(0,A+λI)[X1X2n],

where λ is any number large enough to make A+λI positive semi-definite. Note that the hafnian does not depend on the diagonal entries of the matrix, and the expectation on the right-hand side does not depend on λ.

Generating function

Let S=(ACCTB)=ST be an arbitrary complex symmetric 2m×2m matrix composed of four m×m blocks A=AT, B=BT, C and CT. Let z1,,zm be a set of m independent variables, and let Z=(0diag(z1,z2,,zm)diag(z1,z2,,zm)0) be an antidiagonal block matrix composed of entries zj (each one is presented twice, one time per nonzero block). Let I denote the identity matrix. Then the following identity holds:[4]

1det(IZS)={nk}hafS~({nk})k=1mzknknk!

where the right-hand side involves hafnians of (2knk)×(2knk) matrices S~({nk})=(A~({nk})C~({nk})C~T({nk})B~({nk})), whose blocks A~({nk}), B~({nk}), C~({nk}) and C~T({nk}) are built from the blocks A, B, C and CT respectively in the way introduced in MacMahon's Master theorem. In particular, A~({nk}) is a matrix built by replacing each entry Ak,t in the matrix A with a nk×nt block filled with Ak,t; the same scheme is applied to B, C and CT. The sum {nk} runs over all k-tuples of non-negative integers, and it is assumed that hafS~({nk=0|k=1m})=1.

The identity can be proved[4] by means of multivariate Gaussian integrals and Wick's probability theorem.

The expression in the left-hand side, 1/det(IZS), is in fact a multivariate generating function for a series of hafnians, and the right-hand side constitutes its multivariable Taylor expansion in the vicinity of the point z1==zm=0. As a consequence of the given relation, the hafnian of a symmetric 2m×2m matrix S can be represented as the following mixed derivative of the order m:

hafS=(k=1mzk)1det(IZS)|zj=0.

The hafnian generating function identity written above can be considered as a hafnian generalization of MacMahon's Master theorem, which introduces the generating function for matrix permanents and has the following form in terms of the introduced notation:

1det(Idiag(z1,z2,,zm)C)={nk}perC~({nk})k=1mzknknk!

Note that MacMahon's Master theorem comes as a simple corollary from the hafnian generating function identity due to the relation per(C)=haf(0CCT0).

Non-negativity

If C is a Hermitian positive semi-definite n×n matrix and B is a complex symmetric n×n matrix, then

haf(BCCB)0,

where C denotes the complex conjugate of C.[6]

A simple way to see this when (CBBC) is positive semi-definite is to observe that, by Wick's probability theorem, haf(BCCB)=𝔼[|X1Xn|2] when (X1,,Xn) is a complex normal random vector with mean 0, covariance matrix C and relation matrix B.

This result is a generalization of the fact that the permanent of a Hermitian positive semi-definite matrix is non-negative. This corresponds to the special case B=0 using the relation per(C)=haf(0CCT0).

Loop hafnian

The loop hafnian of an m×m symmetric matrix is defined as

lhaf(A)=ρ(i,j)ρAi,j

where is the set of all perfect matchings of the complete graph on m vertices with loops, i.e., the set of all ways to partition the set {1,2,,m} into pairs or singletons (treating a singleton (i) as the pair (i,i)).[7] Thus the loop hafnian depends on the diagonal entries of the matrix, unlike the hafnian.[7] Furthermore, the loop hafnian can be non-zero when m is odd.

The loop hafnian can be used to count the total number of matchings in a graph (perfect or non-perfect), also known as its Hosoya index. Specifically, if one takes the adjacency matrix of a graph and sets the diagonal elements to 1, then the loop hafnian of the resulting matrix is equal to the total number of matchings in the graph.[7]

The loop hafnian can also be thought of as incorporating a mean into the interpretation of the hafnian as a multivariate Gaussian moment. Specifically, by Wick's probability theorem again, the loop hafnian of a real m×m symmetric matrix can be expressed as

lhaf(A)=𝔼(X1,,Xm)𝒩(diag(A),A+λI)[X1Xm],

where λ is any number large enough to make A+λI positive semi-definite.

Computation

Computing the hafnian of a (0,1)-matrix is #P-complete, because computing the permanent of a (0,1)-matrix is #P-complete.[4][7]

The hafnian of a 2n×2n matrix can be computed in O(n32n) time.[7]

If the entries of a matrix are non-negative, then its hafnian can be approximated to within an exponential factor in polynomial time.[8]

See also

References

Template:Reflist

  1. F. Guerra, in Imagination and Rigor: Essays on Eduardo R. Caianiello's Scientific Heritage, edited by Settimo Termini, Springer Science & Business Media, 2006, page 98
  2. 2.0 2.1 Template:Cite book
  3. Template:Cite journal
  4. 4.0 4.1 4.2 4.3 Template:Cite journal
  5. Template:Cite journal
  6. Template:Cite journal
  7. 7.0 7.1 7.2 7.3 7.4 Template:Cite arXiv
  8. Template:Cite journal