Skip to content

Commit

Permalink
Use static SE in GF calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
basilib committed Sep 26, 2023
1 parent d445a5d commit 6d38421
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vayesta/core/scmf/qpewdmet.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,8 @@ def get_greens_function(self):
vayesta.log.info('Final (shifted) auxiliaries: {} ({}o, {}v)'.format(se_shifted.naux, se_shifted.occupied().naux, se_shifted.virtual().naux))
self.se_shifted = se_shifted
# Find the Green's function
gf = Lehmann(*se_shifted.diagonalise_matrix_with_projection(self.emb.mf.get_fock()), chempot=se_shifted.chempot)
fock = self.sc_fock if self.with_static else self.emb.mf.get_fock()
gf = Lehmann(*se_shifted.diagonalise_matrix_with_projection(fock), chempot=se_shifted.chempot)
dm = gf.occupied().moment(0) * 2.0
nelec_gf = np.trace(dm)
if not np.isclose(nelec_gf, gf.occupied().weights(occupancy=2).sum()):
Expand Down

0 comments on commit 6d38421

Please sign in to comment.