Skip to content

Commit

Permalink
tighten lassi op_o1 identity checking tol
Browse files Browse the repository at this point in the history
hopefully make tests work
  • Loading branch information
MatthewRHermes committed Apr 24, 2024
1 parent fec6f8a commit 2e461f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion my_pyscf/lassi/op_o1.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,8 @@ def _init_crunch_(self):
ci_i = ci[i].reshape (lroots[i],-1)
ci_j = ci[j].reshape (lroots[j],-1)
ovlp = ci_i.conj () @ ci_j.T
isequal = np.allclose (ovlp.diagonal (), 1)
isequal = np.allclose (ovlp.diagonal (), 1,
rtol=1e-8, atol=1e-8)
if isequal:
self.root_unique[j] = False
self.unique_root[j] = i
Expand Down

0 comments on commit 2e461f1

Please sign in to comment.