scqubits.utils.spectrum_utils.eigsh_safe#
- scqubits.utils.spectrum_utils.eigsh_safe(*args, **kwargs)[source]#
Wrapper method for scipy.sparse.linalg.eigsh which ensures the following.
Always use the same “random” starting vector v0. Otherwise, results show random behavior (small deviations between different runs, problem for pytests)
- Test for degenerate eigenvalues. If there are any, need to orthogonalize the
eigenvectors properly.