triqs.gfs

Green’s function containers, descriptors and utilities for TRIQS.

This package gathers the user-facing API for working with Green’s functions in TRIQS. It is imported with:

>>> from triqs.gfs import *

The main classes provided by the package are:

Gf

Generic Green’s function: a numpy array indexed by a mesh and an optional target space.

BlockGf

Block-diagonal Green’s function: a named collection of Gf blocks (e.g. spin-up / spin-down).

Block2Gf

Two-index block-diagonal Green’s function, indexed by a pair of block names.

It also re-exports the mesh classes from triqs.mesh.

In addition, the package provides

  • lazy initializers used on the right-hand side of g << ... (frequency placeholders, semicircular and flat DOS, Fourier and Legendre transforms),

  • utilities for inverting Green’s functions, solving Dyson’s equation and computing hybridization functions,

  • block-wise mapping over BlockGf / Block2Gf,

  • high-frequency tail fitting and replacement,

  • enforcement of Hermiticity and time-reversal symmetries,

  • transforms between meshes, and

  • DLR representation factories.

Modules

backwd_compat

Backward-compatibility aliases for legacy Green's function type names.

block2_gf

Two-index block-diagonal Green's function container (Block2Gf).

block_gf

Block-diagonal Green's function container (BlockGf).

descriptor_base

Protocol classes for Green's function descriptors.

descriptors

Concrete Green's function descriptors used with the << operator.

dlr_crm_dyson_solver

Constrained-residual minimization (CRM) Dyson solver for DLR Green's functions.

gf

Generic Green's function container (Gf).

gf_factories

Factory functions that build a new Gf or BlockGf.

gf_fnt

Free functions operating on a Gf or BlockGf.

lazy_expressions

Small expression-tree library used by Green's-function descriptors.

plot

Plot-protocol back-end for Green's functions.

semicirc

Green's function for a semi-circular density of states.

tools

Pure-Python utilities operating on Gf and BlockGf.

wrapped_aux

Internal C++ dispatchers backing Gf.