Template Function libwalrus::loop_hafnian¶
Defined in File eigenvalue_hafnian.hpp
Function Documentation¶
-
template<typename
T
>
Tlibwalrus
::
loop_hafnian
(std::vector<T> &mat)¶ Returns the loop hafnian of a matrix using the algorithm described in A faster hafnian formula for complex matrices and its benchmarking on the Titan supercomputer, arxiv:1805.12498.
- Return
hafnian of the input matrix
- Parameters
mat
: a flattened vector of size \(n^2\), representing an \(n\times n\) row-ordered symmetric matrix.
libwalrus_cpp_api/function_namespacelibwalrus_1a078c25f83be5223236b197c613a6ef33
Download Python script
Download Notebook
View on GitHub
Contents
Downloads