triqs.gf.backwd_compat.gf_legendre.GfLegendre.density
-
GfLegendre.
density
(*args, **kwargs) 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.