Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

Commit

Permalink
separate E_core
Browse files Browse the repository at this point in the history
  • Loading branch information
hatemhelal committed Apr 17, 2024
1 parent 986a7d3 commit bcd6ff6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mess/hamiltonian.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,11 @@ def __init__(
self.xcfunc = build_xcfunc(xc_method, basis, self.two_electron)

def __call__(self, P: FloatNxN) -> float:
E_core = jnp.sum(self.H_core * P)
E_xc = self.xcfunc(P)
J = self.two_electron.coloumb(P)
E_es = 0.5 * jnp.sum(J * P)
E = jnp.sum(self.H_core * P) + E_xc + E_es
E = E_core + E_xc + E_es
return E


Expand Down

0 comments on commit bcd6ff6

Please sign in to comment.