Warning

THIS IS BEING REWRITTEN.

# Basic notions¶

Green’s functions are among the most important objects when dealing with
many-body problems. TRIQS makes it easy for you to manipulate them. Before
starting with some example, let us readily emphasize the essential notion
that Green’s functions have a **block** structure:

Here, \(a\) labels a block, while \(\alpha_a, \beta_a\) are indices
**within** the block \(a\). In other words, there can be off-diagonal
elements within a block but not between blocks. Whenever possible, one should
take advantage of the symmetries of the problem under consideration and define
blocks for the Green’s functions.

## Types of Green’s functions¶

### Matsubara Green’s function in imaginary time <GfImTime>¶

This object stores a matrix-valued Green function in imaginary time in the Matsubara formalism:

### Matsubara Green’s function in imaginary frequencies <GfImFreq>¶

This object stores a matrix-valued Green function in imaginary frequencies in the Matsubara formalism:

where \(G(\tau)\) is the Matsubara Green function in imaginary time <GfImTime>.

### Matsubara Green’s function with Legendre polynomials <GfLegendre>¶

This object stores a matrix-valued Matsubara Green’s function in imaginary time using Legendre polynomials. It is connected to the usual imaginary-time Matsubara Green’s function through:

where \(x(\tau) = 2\tau/\beta -1\) and the \(P_l\) are the Legendre polynomials. \(G_{\alpha \beta}(\tau)\) is the Matsubara Green’s function in imaginary time <GfImTime>.

### Green function in real time <GfReTime>¶

This object stores a matrix-valued Green function in real time, for example a retarded GF:

### Retarded Green’s function in real frequencies <GfReFreq>¶

This object stores a matrix-valued Green function in real frequencies:

where \(G_{\alpha \beta}(t)\) is the Green function in real time <GfReTime>.

## Fourier and Legendre transforms¶

The Fourier transforms from real and imaginary frequencies to times, and inverse, are currently implemented, along with the analogous transformation from the Legendre expansion to imaginary time and frequencies.

For real time/frequency:

\[\tilde G(\omega)=\int_{-\infty}^\infty dt G(t)e^{i\omega t}\]\[G(t)=\int_{-\infty}^\infty \frac{d\omega}{2\pi} \tilde G(\omega)e^{-i\omega t}\]

For Matsubara (imaginary) time/frequency:

\[\tilde G(i\omega_n)=\int_{0}^\beta d\tau G(t)e^{i\omega_n \tau}\]\[G(\tau)=\sum_{n=-\infty}^\infty \frac{1}{\beta} \tilde G(i\omega_n)e^{-i\omega_n \tau}\]

The \(\omega_n\)’s are \(\frac{(2n+1)\pi}{\beta}\) for fermions, \(\frac{2n\pi}{\beta}\) for bosons (as \(G(\tau+\beta)=-G(\tau)\) for fermions, \(G(\tau)\) for bosons).

## High-frequency tail¶

The high-frequency behavior (or **tail**) of a Green’s function is of paramount importance in the context of Fourier transformations: since fermionic Green’s functions are slowly decaying functions of frequency,
special care has to be taken when Fourier-transforming them to time.

The “tail” of a Green’s function encodes the behavior of the Green’s function \(G\) at large Matsubara frequencies, namely

Generically, the tail is parametrized by matrix-valued coefficients \(\mathbf{a}_{i}\) (of size \(N_1\times N_2\))