Skip to content

Commit

Permalink
update walker ovlp before computing energy (#254)
Browse files Browse the repository at this point in the history
resolve #253
  • Loading branch information
linusjoonho authored Sep 19, 2023
2 parents b9973b6 + 85a3af5 commit 5f2a5c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ipie/estimators/energy.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def __init__(
self.ascii_filename = filename

def compute_estimator(self, system, walkers, hamiltonian, trial, istep=1):
trial.calc_greens_function(walkers)
walkers.ovlp = trial.calc_greens_function(walkers)
# Need to be able to dispatch here
energy = local_energy(system, hamiltonian, walkers, trial)
self._data["ENumer"] = xp.sum(walkers.weight * energy[:, 0].real)
Expand Down

0 comments on commit 5f2a5c9

Please sign in to comment.