[GfReTime] Retarded Green’s function in real time

Reference

class triqs.gf.GfReTime(**kw)[source]

Parameters (KEYWORD argument ONLY)

mesh: MeshReTime, optional

The mesh of the Green function If not present, it will be constructed from the parameters beta, [n_points], [statistic]

data: numpy.array, optional

The data of the Gf. Must be of dimension mesh.rank + target_rank. Incompatible with target_shape

target_shape: list of int, optional

Shape of the target space. Incompatible with data

is_real: bool

Is the Green function real valued ? If true, and target_shape is set, the data will be real. No effect with the parameter data.

name: str

The name of the Green function. For plotting.

conjugate()

Conjugate of the Greens function.

Returns:

G – Conjugate of the Greens function.

Return type:

Gf (copy)

set_from_fourier(*args, **kw)

Signature : (gf_view<imtime,scalar_valued> g_out, gf_view<imfreq,scalar_valued> g_in) -> None Fills self with the Fourier transform of g_in

transpose()

Take the transpose of a matrix valued Greens function.

Returns:

G – The transpose of the Greens function.

Return type:

Gf (copy)

Notes

Only implemented for single mesh matrix valued Greens functions.

Warning

Arguments of __init__() must be documented.

HDF5 data scheme

The GfReTime (Format = “GfReTime”) is decomposed in the following objects:

Name

Type

Meaning

Mesh

MeshGf

The mesh

Data

3d numpy of complex

Data[n,i1,i2] is the element of the Green function where:
  • n is the index of the time slice

  • i1, i2 are the indices

IndicesL,IndicesR

string

The Python repr of the indices, e.g. (1,2), or (1,) repr(this_string) reproduces the indices

Name

string

Name of the Green function block

Note

string

Note

Example

from math import pi
from triqs.gf import *

gw = GfReFreq(indices = [1], window = (-5, 5), n_points = 1001, name = "egBlock")
gw << SemiCircular(2.0)

gt = GfReTime(indices = [1], mesh = make_adjoint_mesh(gw.mesh), name = "egBlock")
gt << Fourier(gw)

from triqs.plot.mpl_interface import oplot
oplot(gt.imag, '-o')
../../../../../../_images/green_retime.png