pygsti.algorithms.germselection.compact_EVD_via_SVD#
- compact_EVD_via_SVD(mat, threshold=1e-10)#
Generate the compact eigenvalue decomposition of the input matrix. Assumes of course that the user has specified a diagonalizable matrix, there are no safety checks for that made a priori.
input:
- matndarray
input matrix we want the compact EVD for. Assumed to be diagonalizable.
- thresholdfloat, optional
threshold value for deciding if an eigenvalue is zero.
output:
- endarray
1-D numpy array of the non-zero eigenvalues of mat.
- Undarray
Matrix such that U@diag(s)@U.conj().T=mat.