triqs.gfs.gf.Gf.is_gf_real_in_tau

Gf.is_gf_real_in_tau(*args, **kw)

Dispatched C++ function(s).

[1] (g: Gf[MeshImFreq, 0], tolerance: float = 1e-12)
  -> bool

[2] (g: Gf[MeshImFreq, 2], tolerance: float = 1e-12)
  -> bool

[3] (g: BlockGf[MeshImFreq, 0], tolerance: float = 1e-12)
  -> bool

[4] (g: BlockGf[MeshImFreq, 2], tolerance: float = 1e-12)
  -> bool

Test whether a Matsubara Green’s function corresponds to a real imaginary-time Green’s function.

The criterion checked, up to tolerance \(\epsilon\), is \(G_{i,j,\dots}(i\omega) \approx G_{i,j,\dots}^*(-i\omega)\) for every element of the target space and for every Matsubara frequency.

For block Green’s functions, the check is applied block-wise.

Parameters:
gGf[MeshImFreq, 0], Gf[MeshImFreq, 2], BlockGf[MeshImFreq, 0], BlockGf[MeshImFreq, 2]

The Matsubara Green’s function to check.

tolerancefloat

Tolerance \(\epsilon\) for the check (default \(10^{-12}\)).

Returns:
bool

True if the property holds at every point of the mesh.