Hafnian
   HOME

TheInfoList



OR:

In
mathematics Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
, the hafnian is a
scalar Scalar may refer to: *Scalar (mathematics), an element of a field, which is used to define a vector space, usually the field of real numbers *Scalar (physics), a physical quantity that can be described by a single element of a number field such a ...
function of a
symmetric matrix In linear algebra, a symmetric matrix is a square matrix that is equal to its transpose. Formally, Because equal matrices have equal dimensions, only square matrices can be symmetric. The entries of a symmetric matrix are symmetric with ...
that generalizes the permanent. The hafnian was named by
Eduardo R. Caianiello Eduardo Renato Caianiello (June 25, 1921 – October 22, 1993) was an Italian physicist. He contributed to scientific research, especially in quantum theory and cybernetics. He was also a pioneer in the theory of neural networks. His Caianiello's ...
"to mark the fruitful period of stay in
Copenhagen Copenhagen ( ) is the capital and most populous city of Denmark, with a population of 1.4 million in the Urban area of Copenhagen, urban area. The city is situated on the islands of Zealand and Amager, separated from Malmö, Sweden, by the ...
(Hafnia in Latin)."


Definition

The hafnian of a 2n\times 2n symmetric matrix A is defined as : \operatorname(A) = \sum_ \prod_ A_, where P_^2 is the set of all partitions of the set \ into subsets of size 2. This definition is similar to that of the
Pfaffian In mathematics, the determinant of an ''m''-by-''m'' skew-symmetric matrix can always be written as the square of a polynomial in the matrix entries, a polynomial with integer coefficients that only depends on ''m''. When ''m'' is odd, the polyno ...
, but differs in that the
signature A signature (; from , "to sign") is a depiction of someone's name, nickname, or even a simple "X" or other mark that a person writes on documents as a proof of identity and intent. Signatures are often, but not always, Handwriting, handwritt ...
s 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 In mathematics, the determinant is a Scalar (mathematics), scalar-valued function (mathematics), function of the entries of a square matrix. The determinant of a matrix is commonly denoted , , or . Its value characterizes some properties of the ...
.


Basic properties

The hafnian may also be defined as : \operatorname(A) = \frac \sum_ \prod_^n A_, where S_ is the
symmetric group In abstract algebra, the symmetric group defined over any set is the group whose elements are all the bijections from the set to itself, and whose group operation is the composition of functions. In particular, the finite symmetric grou ...
on \. The two definitions are equivalent because if \sigma\in S_, then \ is a partition of \ into subsets of size 2, and as \sigma ranges over S_, each such partition is counted exactly n!2^n 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 In graph theory and computer science, an adjacency matrix is a square matrix used to represent a finite graph (discrete mathematics), graph. The elements of the matrix (mathematics), matrix indicate whether pairs of Vertex (graph theory), vertices ...
of a graph is the number of
perfect matching In graph theory, a perfect matching in a graph is a matching that covers every vertex of the graph. More formally, given a graph with edges and vertices , a perfect matching in is a subset of , such that every vertex in is adjacent to exact ...
s (also known as 1-factors) in the graph. This is because a partition of \ into subsets of size 2 can also be thought of as a perfect matching in the
complete graph In the mathematical field of graph theory, a complete graph is a simple undirected graph in which every pair of distinct vertices is connected by a unique edge. A complete digraph is a directed graph in which every pair of distinct vertices i ...
K_. The hafnian can also be thought of as a generalization of the permanent, since the permanent can be expressed as : \operatorname(C)=\operatorname\begin 0 & C \\ C^\mathsf & 0 \end. 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 In the mathematics, mathematical field of graph theory, a bipartite graph (or bigraph) is a Graph (discrete mathematics), graph whose vertex (graph theory), vertices can be divided into two disjoint sets, disjoint and Independent set (graph theo ...
given its
biadjacency matrix In graph theory and computer science, an adjacency matrix is a square matrix used to represent a finite graph. The elements of the matrix indicate whether pairs of vertices are adjacent or not in the graph. In the special case of a finite simp ...
. The hafnian is also related to moments of
multivariate Gaussian distribution In probability theory and statistics, the multivariate normal distribution, multivariate Gaussian distribution, or joint normal distribution is a generalization of the one-dimensional (univariate) normal distribution to higher dimensions. One de ...
s. By Wick's probability theorem, the hafnian of a
real Real may refer to: Currencies * Argentine real * Brazilian real (R$) * Central American Republic real * Mexican real * Portuguese real * Spanish real * Spanish colonial real Nature and science * Reality, the state of things as they exist, rathe ...
2n \times 2n symmetric matrix may expressed as : \operatorname(A) = \mathbb E_\left _1\dots X_\right where \lambda is any number large enough to make A + \lambda I positive semi-definite. Note that the hafnian does not depend on the diagonal entries of the
matrix Matrix (: matrices or matrixes) or MATRIX may refer to: Science and mathematics * Matrix (mathematics), a rectangular array of numbers, symbols or expressions * Matrix (logic), part of a formula in prenex normal form * Matrix (biology), the m ...
, and the expectation on the right-hand side does not depend on \lambda.


Generating function

Let S = \begin A & C \\ C^\mathsf & B \end = S^\mathsf be an arbitrary
complex Complex commonly refers to: * Complexity, the behaviour of a system whose components interact in multiple ways so possible interactions are difficult to describe ** Complex system, a system composed of many components which may interact with each ...
symmetric 2m \times 2m matrix composed of four m \times m blocks A = A^\mathsf, B = B^\mathsf, C and C^\mathsf. Let z_1, \ldots, z_m be a set of m independent variables, and let Z = \begin 0 & \textrm(z_1,z_2,\ldots,z_m) \\ \textrm(z_1,z_2,\ldots,z_m) & 0 \end be an antidiagonal block matrix composed of entries z_j (each one is presented twice, one time per nonzero block). Let I denote the
identity matrix In linear algebra, the identity matrix of size n is the n\times n square matrix with ones on the main diagonal and zeros elsewhere. It has unique properties, for example when the identity matrix represents a geometric transformation, the obje ...
. Then the following identity holds: : \frac = \sum_ \operatorname \tilde(\) \prod_^m \frac where the right-hand side involves hafnians of \Big(2\sum_k n_k\Big)\times\Big(2\sum_k n_k\Big) matrices \tilde(\) = \begin \tilde(\) & \tilde(\) \\ \tilde^\mathsf(\) & \tilde(\) \\ \end, whose blocks \tilde(\), \tilde(\), \tilde(\) and \tilde^\mathsf(\) are built from the blocks A, B, C and C^\mathsf respectively in the way introduced in
MacMahon's Master theorem In mathematics, MacMahon's master theorem (MMT) is a result in enumerative combinatorics and linear algebra. It was discovered by Percy MacMahon and proved in his monograph ''Combinatory analysis'' (1916). It is often used to derive binomial ide ...
. In particular, \tilde(\) is a matrix built by replacing each entry A_ in the matrix A with a n_k \times n_t block filled with A_; the same scheme is applied to B, C and C^\mathsf. The sum \sum_ runs over all k-tuples of non-negative
integer An integer is the number zero (0), a positive natural number (1, 2, 3, ...), or the negation of a positive natural number (−1, −2, −3, ...). The negations or additive inverses of the positive natural numbers are referred to as negative in ...
s, and it is assumed that \operatorname \tilde(\) = 1. The identity can be proved by means of multivariate
Gaussian integral The Gaussian integral, also known as the Euler–Poisson integral, is the integral of the Gaussian function f(x) = e^ over the entire real line. Named after the German mathematician Carl Friedrich Gauss, the integral is \int_^\infty e^\,dx = \s ...
s and Wick's probability theorem. The expression in the left-hand side, 1 \Big/ \sqrt \Big. , is in fact a multivariate
generating function In mathematics, a generating function is a representation of an infinite sequence of numbers as the coefficients of a formal power series. Generating functions are often expressed in closed form (rather than as a series), by some expression invo ...
for a series of hafnians, and the right-hand side constitutes its multivariable
Taylor expansion In mathematics, the Taylor series or Taylor expansion of a function is an infinite sum of terms that are expressed in terms of the function's derivatives at a single point. For most common functions, the function and the sum of its Taylor ser ...
in the vicinity of the point z_1 = \ldots = z_m = 0. As a consequence of the given relation, the hafnian of a symmetric 2m \times 2m matrix S can be represented as the following mixed
derivative In mathematics, the derivative is a fundamental tool that quantifies the sensitivity to change of a function's output with respect to its input. The derivative of a function of a single variable at a chosen input value, when it exists, is t ...
of the order m: : \operatornameS = \bigg(\prod_^m \frac \bigg) \Bigg.\frac \Bigg\vert_. The hafnian generating function identity written above can be considered as a hafnian generalization of
MacMahon's Master theorem In mathematics, MacMahon's master theorem (MMT) is a result in enumerative combinatorics and linear algebra. It was discovered by Percy MacMahon and proved in his monograph ''Combinatory analysis'' (1916). It is often used to derive binomial ide ...
, which introduces the generating function for matrix permanents and has the following form in terms of the introduced notation: : \frac = \sum_ \operatorname \tilde(\) \prod_^m \frac Note that MacMahon's Master theorem comes as a simple
corollary In mathematics and logic, a corollary ( , ) is a theorem of less importance which can be readily deduced from a previous, more notable statement. A corollary could, for instance, be a proposition which is incidentally proved while proving another ...
from the hafnian generating function identity due to the relation \operatorname (C) = \operatorname \begin 0 & C \\ C^\mathsf & 0 \end.


Non-negativity

If C is a Hermitian positive semi-definite n\times n matrix and B is a complex symmetric n\times n matrix, then : \operatorname\begin B & C \\ \overline & \overline \end\geq 0, where \overline denotes the
complex conjugate In mathematics, the complex conjugate of a complex number is the number with an equal real part and an imaginary part equal in magnitude but opposite in sign. That is, if a and b are real numbers, then the complex conjugate of a + bi is a - ...
of C. A simple way to see this when \begin C & B \\ \overline & \overline \\ \end is positive semi-definite is to observe that, by Wick's probability theorem, \operatorname\begin B & C \\ \overline & \overline \\ \end=\mathbb E\left X_1\dots X_n\^2\right/math> when \left(X_1,\dots,X_n\right) 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 \operatorname (C) = \operatorname \begin 0 & C \\ C^\mathsf & 0 \end.


Loop hafnian

The loop hafnian of an m\times m symmetric matrix is defined as : \operatorname(A) = \sum_ \prod_ A_ where \mathcal 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 \ into pairs or singletons (treating a singleton (i) as the pair (i, i)). Thus the loop hafnian depends on the diagonal entries of the matrix, unlike the hafnian. 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 The Hosoya index, also known as the Z index, of a graph is the total number of matchings in it. The Hosoya index is always at least one, because the empty set of edges is counted as a matching for this purpose. Equivalently, the Hosoya index is t ...
. Specifically, if one takes the
adjacency matrix In graph theory and computer science, an adjacency matrix is a square matrix used to represent a finite graph (discrete mathematics), graph. The elements of the matrix (mathematics), matrix indicate whether pairs of Vertex (graph theory), vertices ...
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. 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\times m symmetric matrix can be expressed as : \operatorname(A) = \mathbb E_\left _1\dots X_m\right where \lambda is any number large enough to make A+\lambda 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. The hafnian of a 2n\times 2n matrix can be computed in O(n^3 2^n) time. If the entries of a matrix are non-negative, then its hafnian can be approximated to within an exponential factor in polynomial time.


See also

* Permanent *
Pfaffian In mathematics, the determinant of an ''m''-by-''m'' skew-symmetric matrix can always be written as the square of a polynomial in the matrix entries, a polynomial with integer coefficients that only depends on ''m''. When ''m'' is odd, the polyno ...
*
Boson sampling Boson sampling is a restricted model of non-universal quantum computation introduced by Scott Aaronson and Alex Arkhipov after the original work of Lidror Troyansky and Naftali Tishby, that explored possible use of boson scattering to evaluate exp ...


References

{{reflist Algebraic graph theory Matching (graph theory) Combinatorics