triqs.gfs.gf.Gf.total_density

Gf.total_density(*args, **kwargs)[source]

Compute the total density (trace of the density matrix).

Parameters:
betafloat, optional

Inverse temperature, required only for a MeshReFreq mesh.

Returns:
float

Total density of the Green’s function.

Notes

Only implemented for single-mesh Green’s functions on a Matsubara, real-frequency or Legendre mesh.