A faster hafnian formula for complex matrices and its benchmarking on a supercomputer
Abstract
We introduce new and simple algorithms for the calculation of the number of perfect matchings of complex weighted, undirected graphs with and without loops. Our compact formulas for the hafnian and loop hafnian of complex matrices run in time, are embarrassingly parallelizable and, to the best of our knowledge, are the fastest exact algorithms to compute these quantities. Despite our highly optimized algorithm, numerical benchmarks on the Titan supercomputer with matrices up to size indicate that one would require the 288000 CPUs of this machine for about a month and a half to compute the hafnian of a matrix.
Keywords
Cite
@article{arxiv.1805.12498,
title = {A faster hafnian formula for complex matrices and its benchmarking on a supercomputer},
author = {Andreas Björklund and Brajesh Gupt and Nicolás Quesada},
journal= {arXiv preprint arXiv:1805.12498},
year = {2019}
}
Comments
11 pages, 7 figures. The source code of the library is available at https://github.com/XanaduAI/hafnian . Accepted for publication in Journal of Experimental Algorithmics