gem.solvers.solver_template.SolverTemplate.compute_E2loc

SolverTemplate.compute_E2loc()[source]

Compute the local two-body energy from a given set of thermal states. Works also at zero temperature for ground states. Takes no argument: eloc, D and Lambda_c are the ones stored by build_Hemb.

Return:

E2loc: float. Local two-body energy.