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.

  1. Always use the same “random” starting vector v0. Otherwise, results show random behavior (small deviations between different runs, problem for pytests)

  2. Test for degenerate eigenvalues. If there are any, need to orthogonalize the

    eigenvectors properly.