triqs.gfs.backwd_compat.gf_imfreq.GfImFreq.total_density

GfImFreq.total_density(*args, **kwargs)

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.