Skip to content

Commit

Permalink
lassi excitations config var: refovlp eigval tol
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewRHermes committed Oct 24, 2023
1 parent b21fbe7 commit 533a8b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion my_pyscf/lassi/excitations.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
from pyscf.lib import temporary_env
op = (op_o0, op_o1)

LOWEST_REFOVLP_EIGVAL_THRESH = getattr (__config__, 'lassi_excitations_refovlp_eigval_thresh', 1e-8)

def only_ground_states (ci0):
'''For a list of sequences of CI vectors in the same Hilbert space,
generate a list in which all but the first element of each sequence
Expand All @@ -24,7 +26,7 @@ def only_ground_states (ci0):
ci1.append (c)
return ci1

def lowest_refovlp_eigval (ham_pq, ovlp_thresh=1e-8):
def lowest_refovlp_eigval (ham_pq, ovlp_thresh=LOWEST_REFOVLP_EIGVAL_THRESH):
''' Return the lowest eigenvalue of the matrix ham_pq, whose corresponding
eigenvector has nonzero overlap with the first basis function. '''
e_all, u_all = linalg.eigh (ham_pq)
Expand Down

0 comments on commit 533a8b0

Please sign in to comment.