Skip to content

Commit

Permalink
Merge branch 'issue34_laslayer' into issue34
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewRHermes committed Mar 21, 2024
2 parents 03f3f24 + 608aa6a commit b56e5dd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion my_pyscf/mcscf/lasci.py
Original file line number Diff line number Diff line change
Expand Up @@ -779,8 +779,11 @@ def run_lasci (las, mo_coeff=None, ci0=None, lroots=None, lweights=None, verbose
ci0_i = [c[state] for c in ci0]
solver = ImpureProductStateFCISolver (fcisolvers, stdout=las.stdout,
lweights=[l[state] for l in lweights], verbose=verbose)
# TODO: better handling of CSF symmetry quantum numbers in general
for ix, s in enumerate (solver.fcisolvers):
# Set the calling las objects local bottom-layer fcisolvers to the
# locally-state-averaged ones I just made so that I can more easily get
# locally-state-averaged density matrices after this function exits
las.fciboxes[ix].fcisolvers[state] = s
i = sum (ncas_sub[:ix])
j = i + ncas_sub[ix]
if orbsym is not None: s.orbsym = orbsym[i:j]
Expand Down

0 comments on commit b56e5dd

Please sign in to comment.