triqs.gfs.gf

Generic Green’s function container (Gf).

This module defines Gf, the canonical container for any TRIQS quantity indexed by a mesh and a target space (Green’s functions, self-energies, hybridization functions, …). The class inherits a set of C++-backed methods from triqs.gfs.gf_fnt via the AddMethod metaclass; pure-Python methods (arithmetic, slicing, lazy initialization) are defined directly here.

Functions

add_method_helper(a, cls)

Wrap a free function a(self, ...) as an unbound method.

bckwd(hdf_scheme)

Map a legacy GfXxx HDF5 scheme name to the constructor kwargs for the current Gf class.

call_factory_from_dict(cl, name, dic)

Factory used by HDF5 IO.

Classes

AddMethod(name, bases, dct)

Metaclass that injects every callable in triqs.gfs.gf_fnt as a Gf method.

CallProxyNone(*args)

Fallback for __call__() when no compiled C++ proxy fits the Gf.

Gf(**kw)

Container for Green's functions and related quantities.

Idx(*x)

Tag wrapping a mesh-point linear index for use in Gf [] access.