Skip to content

Commit

Permalink
lassis charge hop ci vector fiddle
Browse files Browse the repository at this point in the history
Use spin excitations as charge hop reference ONLY if those are
ALSO connected by a single excitation
  • Loading branch information
MatthewRHermes committed Oct 27, 2023
1 parent 373f316 commit cf58b76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion my_pyscf/lassi/lassis.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ def single_excitations_ci (lsi, las2, las1, ncharge=1, sa_heff=True, deactivate_
nref_pure = len (psref)
psref = _spin_halfexcitation_products (psref, spin_halfexcs, nroots_ref=len(psref),
frozen_frags=(~excfrags))
psref = [space for space in psref if spaces[i].is_single_excitation_of (space)]
if auto_singles:
lr = spaces[i].compute_single_excitation_lroots (psref)
lroots[:,i] = np.minimum (lroots[:,i], lr)
Expand All @@ -101,7 +102,7 @@ def single_excitations_ci (lsi, las2, las1, ncharge=1, sa_heff=True, deactivate_
log.info ("as well as spin-excited spaces:")
for space in psref[nref_pure:]:
space.table_printlog ()
#log.info ('by hop %s', spaces[i].single_excitation_description_string (space))
log.info ('by hop %s', spaces[i].single_excitation_description_string (space))
# throat-clearing into ExcitationPSFCISolver
ciref = [[] for j in range (nfrags)]
for k in range (nfrags):
Expand Down

0 comments on commit cf58b76

Please sign in to comment.