pygsti.algorithms.germselection.compact_EVD

Contents

pygsti.algorithms.germselection.compact_EVD#

compact_EVD(mat, threshold=1e-10, assume_hermitian=False)#

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.

assume_hermitianbool, optional

If True, forcefully symmetrizes the matrix to guarantee it is evaluated as Hermitian, improving numerical stability against complex floating-point noise.

output:

endarray

1-D numpy array of the non-zero eigenvalues of mat.

Undarray

Matrix such that U@diag(s)@U.conj().T=mat.