[GfImTime] Matsubara Green’s function in imaginary time

Reference

class pytriqs.gf.GfImTime(**kw)[source]
mesh: MeshImTime, optional
The mesh of the Green function If not present, it will be constructed from the parameters beta, indices, [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.
indices: GfIndices or list of str or list of list of str, Optional
Optional string indices for the target space, to allow e.g g[‘eg’, ‘eg’] list of list of str: the list of indices for each dimension. list of str: all indices are assumed to be the same for all dimensions.
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_legendre(*args, **kw)

Fills self with the legendre transform of gl

Signature : (gf_view<imfreq,scalar_valued> gw, gf_view<triqs::gfs::legendre,scalar_valued> gl) -> None
Fills self with the legendre transform of gl
Signature : (gf_view<imtime,scalar_valued> gt, gf_view<triqs::gfs::legendre,scalar_valued> gl) -> None
Fills self with the legendre transform of gl
Signature : (gf_view<imfreq,matrix_valued> gw, gf_view<triqs::gfs::legendre,matrix_valued> gl) -> None
Fills self with the legendre transform of gl
Signature : (gf_view<imtime,matrix_valued> gt, gf_view<triqs::gfs::legendre,matrix_valued> gl) -> None
Fills self with the legendre transform of gl
Signature : (gf_view<imfreq,tensor_valued<3>> gw, gf_view<triqs::gfs::legendre,tensor_valued<3>> gl) -> None
Fills self with the legendre transform of gl
Signature : (gf_view<imtime,tensor_valued<3>> gt, gf_view<triqs::gfs::legendre,tensor_valued<3>> gl) -> None
Fills self with the legendre transform of gl
Signature : (gf_view<imfreq,tensor_valued<4>> gw, gf_view<triqs::gfs::legendre,tensor_valued<4>> gl) -> None
Fills self with the legendre transform of gl
Signature : (gf_view<imtime,tensor_valued<4>> gt, gf_view<triqs::gfs::legendre,tensor_valued<4>> 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 (TRIQS_HDF5_data_scheme = “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 pytriqs.gf import *
from pytriqs.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, '-')

(Source code, png, hires.png, pdf)

../../../../../../_images/green_imtime.png