triqs_modest.utils.dc.DcSolver.dc_energy

DcSolver.dc_energy()

Dispatched C++ function(s).

[1] (gimp: BlockGf[MeshImFreq, 2])
  -> float

[2] (density_matrix: ndarray[ndarray[complex, 2], 2])
  -> float

[1] Compute the double counting correction to the energy from a Green’s function.


[2] Compute the double counting correction to the energy from a density matrix.


Parameters:
gimpBlockGf[MeshImFreq, 2]

The impurity Green’s function which is used to calculate the orbital-resolved density matrices to evaluate the double counting formula.

density_matrixndarray[ndarray[complex, 2], 2]

Density matrix with shape [n_blocks, n_sigma].

Returns:
float

Double counting energy \(E_{DC}\).