2019
DOI: 10.1145/3325111
|View full text |Cite
|
Sign up to set email alerts
|

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 n × n complex matrices run in O(n 3 2 n/2 ) 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 56 × 56… Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
2
1
1
1

Citation Types

0
83
0
1

Year Published

2020
2020
2024
2024

Publication Types

Select...
6

Relationship

0
6

Authors

Journals

citations
Cited by 72 publications
(84 citation statements)
references
References 46 publications
0
83
0
1
Order By: Relevance
“…The Hafnian of a symmetric n × n matrix V is defined by (n must be even) Hafnian is permutation invariant from its definition, that is we can first interchange two columns of V , and then interchange the corresponding rows, and the Hafnian of the new matrix will remain the same. Similar to permanents, exact computation of matrix Hafnian is also #P -hard [31], which also implies GBS for the same squeezing parameters is also computational hard; the best classical algorithm takes time O(n 3 2 n/2 ) [5], which is closely related to the hardness of GBS [20]. Next, the matrix W s is constrcuted from another m × m matrix (here U refers to the m × m unitary acting on the single-photon subspace)…”
Section: Probability In Terms Of Hafnianmentioning
confidence: 99%
See 4 more Smart Citations
“…The Hafnian of a symmetric n × n matrix V is defined by (n must be even) Hafnian is permutation invariant from its definition, that is we can first interchange two columns of V , and then interchange the corresponding rows, and the Hafnian of the new matrix will remain the same. Similar to permanents, exact computation of matrix Hafnian is also #P -hard [31], which also implies GBS for the same squeezing parameters is also computational hard; the best classical algorithm takes time O(n 3 2 n/2 ) [5], which is closely related to the hardness of GBS [20]. Next, the matrix W s is constrcuted from another m × m matrix (here U refers to the m × m unitary acting on the single-photon subspace)…”
Section: Probability In Terms Of Hafnianmentioning
confidence: 99%
“…According to Ref. [5], the time complexity of computing the Hafnian of a n × n matrix is O(n 3 2 n/2 ), so computing q n (x 1 , · · · , x k ) by directly computing m n−k Haf(W x ) is of course costly. However, we shall show that one can eliminate many terms by breaking each Hafnian | Haf(W x )| 2 into many pieces of smaller sub-Hafnians.…”
Section: Step 3: Sampling From Marginal Distributionmentioning
confidence: 99%
See 3 more Smart Citations