transmon_resonator_levels: use eigh and check for nan values Since the Hamiltonian is Hermitian, eigh can be used to avoid numerical imaginary parts.
transmon_resonator_levels: use eigh and check for nan values
Since the Hamiltonian is Hermitian, eigh can be used to avoid numerical imaginary parts.

QudevETH/PycQED_py3