A faster hafnian formula for complex matrices and its benchmarking on a supercomputer
Andreas Bj\"orklund, Brajesh Gupt, Nicol\'as Quesada

TL;DR
This paper presents new, highly efficient algorithms for computing the hafnian of complex matrices, significantly improving speed and parallelizability, with practical benchmarks on supercomputers demonstrating their capabilities and limitations.
Contribution
The authors introduce the fastest known algorithms for hafnian and loop hafnian calculations of complex matrices, optimized for parallel computing environments.
Findings
Algorithms run in $O(n^3 2^{n/2})$ time
Benchmarks on Titan supercomputer up to 56x56 matrices
Computing 100x100 hafnian would require 288,000 CPUs for 1.5 months
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.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
