Function libwalrus::powtrace(vec_complex&, int, int)¶
Defined in File eigenvalue_hafnian.hpp
Function Documentation¶
-
vec_complex
libwalrus
::
powtrace
(vec_complex &z, int n, int l) Given a complex matrix \(z\) of dimensions \(n\times n\), it calculates \(Tr(z^j)~\forall~1\leq j\leq l\).
- Return
a vector containing the power traces of matrix
z
to power \(1\leq j \leq l\).- Parameters
z
: a flattened complex vector of size \(n^2\), representing an \(n\times n\) row-ordered matrix.n
: size of the matrixz
.l
: maximum matrix power when calculating the power trace.
libwalrus_cpp_api/function_namespacelibwalrus_1ae2340eb5e1f9cf1ebd592a7c79ed6878
Download Python script
Download Notebook
View on GitHub
Contents
Downloads