gem.fragment.Fragment.compute_energy

Fragment.compute_energy()[source]

Compute the energy contributions of the fragment using the density matrix and the Hamiltonian parameters.

Return:

E: float. Energy of the fragment.