triqs.gf.gf.Gf.density
- Gf.density(*args, **kwargs)[source]
Compute the density matrix of the Greens function
- Parameters:
beta (float, optional) – Used for finite temperature density calculation with
MeshReFreq.- Returns:
density_matrix – Single particle density matrix with shape
target_shape.- Return type:
ndarray
Notes
Only works for single mesh Greens functions with a, Matsubara, real-frequency, or Legendre mesh.