I've noticed that for a few basis sets, NaN gradients are appearing again when trained using the DIIS SCF loops but not the linear mixing loops.
I think this is likely because degenerate eigenvectors/eigenvalues are being encountered in the calls to jnp.linalg.eigh routines. We can try switching these out for our custom safe_eigh which will hopefully fix the bug.
I've noticed that for a few basis sets, NaN gradients are appearing again when trained using the DIIS SCF loops but not the linear mixing loops.
I think this is likely because degenerate eigenvectors/eigenvalues are being encountered in the calls to
jnp.linalg.eighroutines. We can try switching these out for our customsafe_eighwhich will hopefully fix the bug.