A faster hafnian formula for complex matrices and its benchmarking on the Titan supercomputer
@article{Bjrklund2018AFH, title={A faster hafnian formula for complex matrices and its benchmarking on the Titan supercomputer}, author={Andreas Bj{\"o}rklund and Brajesh Gupt and Nicol{\'a}s Quesada}, journal={ArXiv}, year={2018}, volume={abs/1805.12498} }
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 \times 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…
9 Citations
Hafnian of two-parameter matrices
- Mathematics
- 2021
The concept of the hafnian first appeared in the works on quantum field theory by E. R. Caianiello. However, it also has an important combinatorial property: the hafnian of the adjacency matrix of an…
Measuring the similarity of graphs with a Gaussian boson sampler
- Computer Science
- 2020
This work shows that Gaussian boson samplers have a potential practical application: samples from these devices can be used to construct a feature vector that embeds a graph in Euclidean space, where similarity measures between graphs---so-called graph kernels---can be naturally defined.
Graph isomorphism and Gaussian boson sampling
- Mathematics
- 2018
Abstract We introduce a connection between a near-term quantum computing device, specifically a Gaussian boson sampler, and the graph isomorphism problem. We propose a scheme where graphs are encoded…
A quantum hardware-induced graph kernel based on Gaussian Boson Sampling
- Computer Science
- 2019
A feature map and graph similarity measure or ‘graph kernel’ is constructed using samples from the Gaussian Boson Sampler, and it is shown that the kernel performs well compared to standard graph kernels on typical benchmark datasets.
The hafnian of Toeplitz matrices of a special type, perfect matchings and Bessel polynomials
- Mathematics
- 2019
We present a simple and convenient analytical formula for efficient exact computation of the hafnian of Toeplitz matrices of a special type. An interpretation of the obtained results is given in the…
Classical benchmarking of Gaussian Boson Sampling on the Titan supercomputer
- Physics, Computer ScienceQuantum Inf. Process.
- 2020
This work employs a recent exact sampling algorithm for GBS with threshold detectors to perform classical simulations on the Titan supercomputer and indicates that large losses can be tolerated and that the use of threshold detectors is preferable over using photon-number-resolving detectors postselected on collision-free outputs.
Quantum experiments and graphs II: Quantum interference, computation, and state generation
- PhysicsProceedings of the National Academy of Sciences
- 2019
It is shown that one can interpret quantum experiments composed of linear optics and probabilistic sources with graph theory, and an approach to describe state-of-the-art photonic quantum experiments using graph theory is presented, where the quantum states are given by the coherent superpositions of perfect matchings.
Strawberry Fields: A Software Platform for Photonic Quantum Computing
- Computer Science, PhysicsQuantum
- 2019
Strawberry Fields, an open-source quantum programming architecture for light-based quantum computers, is introduced, and its key features are detailed.
Linear multiport photonic interferometers: loss analysis of temporally-encoded architectures
- Computer Science
- 2018
It is concluded that implementing a chain of reconfigurable beamsplitters and delay loops on an integrated lithum niobate platform could outperform comparable architectures in the near future.
References
SHOWING 1-10 OF 32 REFERENCES
Counting perfect matchings as fast as Ryser
- Computer ScienceSODA
- 2012
This work shows that there is a polynomial space algorithm that counts the number of perfect matchings in an n-vertex graph in O*(2n/2) ⊂ O(1.415n) time, and presents it in the more general setting of computing the hafnian over an arbitrary ring analogously to Ryser's algorithm for permanent computation.
Polynomial Time Algorithms to Approximate Permanents and Mixed Discriminants Within a Simply Exponential Factor
- Mathematics, Computer ScienceRandom Struct. Algorithms
- 1999
We present real, complex, and quaternionic versions of a simple ran-domized polynomial time algorithm to approximate the permanent of a non-negative matrix and, more generally, the mixed discriminant…
Fast Polynomial-Space Algorithms Using Möbius Inversion: Improving on Steiner Tree and Related Problems
- Computer Science, MathematicsICALP
- 2009
The concept of branching walks is introduced and the Inclusion-Exclusion algorithm of Karp is extended for counting Hamiltonian paths and polynomial-space $\mathcal{O}^*(2^n)$ algorithms for several spanning tree and partition problems are obtained.
Hafnians, perfect matchings and Gaussian matrices
- Mathematics, Computer Science
- 2014
It is concluded that Barvinok's estimator gives a polynomial-time algorithm for the approximate (up to subexponential errors) evaluation of the number of perfect matchings.
Faster exponential-time algorithms in graphs of bounded average degree
- Mathematics, Computer ScienceInf. Comput.
- 2015
Exact Algorithms for Exact Satisfiability and Number of Perfect Matchings
- Computer Science, MathematicsAlgorithmica
- 2007
This work shows that the Exact Satisfiability problem of size l with m clauses can be solved in time 2mlO(1) and polynomial space, and shows how to count the number of perfect matchings in time O(1.732n) and exponential space.
Approximating permanents and hafnians
- Mathematics, Computer Science
- 2016
We prove that the logarithm of the permanent of an nxn real matrix A and the logarithm of the hafnian of a 2nx2n real symmetric matrix A can be approximated within an additive error 1 > epsilon > 0…
Computing Permanents for Boson Sampling on Tianhe-2 Supercomputer
- Computer ScienceNational Science Review
- 2018
The permanent of the largest matrix is computed using up to 312,000 CPU cores of Tianhe-2, and it is inferred from the current most efficient permanent-computing algorithms that an upper bound on the performance of Tiane-2 is one 50-photon sample per ~100 min.
Gaussian boson sampling for perfect matchings of arbitrary graphs
- Computer SciencePhysical Review A
- 2018
With the proposed method, a Gaussian Boson Sampling device can be used to estimate the number of perfect matchings significantly faster and with lower energy consumption compared to a classical computer.
Alternative Algorithms for Counting All Matchings in Graphs
- Computer Science, MathematicsSTACS
- 2003
Two new methods for counting all matchings in a graph are presented, one of which is a generalization of a Godman-Godsil estimator and the other uses importance sampling.