pygsti.tools.matrixtools.sorted_eig#
- sorted_eig(mx)#
Similar to numpy.eig, but returns sorted output.
In particular, the eigenvalues and vectors sorted by eigenvalue, where sorting is done according to (real_part, imaginary_part) tuple.
- Parameters:
mx (numpy.ndarray) – Matrix to act on.
- Returns:
eigenvalues (numpy.ndarray)
eigenvectors (numpy.ndarray)