[GfImTime] Matsubara Green’s function in imaginary time

Reference

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

Parameters (KEYWORD argument ONLY)

mesh: MeshImTime, 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

set_from_legendre(*args, **kw)

Signature : (gf_view<imfreq,scalar_valued> gw, gf_view<triqs::gfs::legendre,scalar_valued> gl) -> None Fills self with the legendre transform of gl

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 GfImTime (Format = “GfImTime”) is decomposed in the following objects:

Name

Type

Meaning

Mesh

MeshGf

The mesh

Tail

TailGf

The tail

Data

3d numpy of double

Data[n,i1,i2] is the element of the Green function where:
  • n is the index of the time slice, starting at tau=0

  • 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 triqs.gf import *
from triqs.plot.mpl_interface import oplot

# A Green's function on the Matsubara axis set to a semicircular
gw = GfImFreq(indices = [1], beta = 50)
gw << SemiCircular(half_bandwidth = 1)

# Create an imaginary-time Green's function
gt = GfImTime(indices = [1], beta = 50)
gt << Fourier(gw)

# Plot the Legendre Green's function
oplot(gt, '-')
../../../../../../_images/green_imtime.png