pytriqs.gf.Gf

class pytriqs.gf.Gf(**kw)[source]

TRIQS Greens function container class

Parameters:
  • mesh (TRIQS Greens function mesh) – One of the meshes of the module ‘meshes’.
  • data (numpy.array, optional) – The data of the Greens function. Must be of dimension mesh.rank + target_rank.
  • target_shape (list of int, optional) – Shape of the target space.
  • is_real (bool) – Is the Greens function real valued? If true, and target_shape is set, the data will be real. Mutually exclusive with argument 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. ['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 Greens function for plotting.

Notes

One of target_shape or data must be set, and the other must be None. If passing data and indices the data.shape needs to be compatible with the shape of indices.

conjugate()[source]

Conjugate of the Greens function.

Returns:G – Conjugate of the Greens function.
Return type:Gf (copy)
copy()[source]

Deep copy of the Greens function.

Returns:G – Copy of self.
Return type:Gf
copy_from(another)[source]

Copy the data of another Greens function into self.

data

ndarray – Raw data of the Greens function.

Storage convention is self.data[x,y,z, ..., n0,n1,n2] where x,y,z correspond to the mesh variables (the mesh) and n0, n1, n2 to the target_space.

density(*args, **kwargs)[source]

Compute the density matrix of the Greens function

Parameters:beta (float, optional) – Used for finite temperature density calculation with MeshReFreq.
Returns:density_matrix – Single particle density matrix with shape target_shape.
Return type:ndarray

Notes

Only works for single mesh Greens functions with a, Matsubara, real-frequency, or Legendre mesh.

enforce_discontinuity(*args, **kw)

Signature : (gf_view<triqs::gfs::legendre,matrix_valued> gl, matrix_view<double> disc) -> None Modify the coefficient to adjust discontinuity

fit_hermitian_tail(*args, **kw)

tail

Signature : (gf_view<imfreq,matrix_valued> g, array_view<dcomplex,3> known_moments = {}) -> std::pair<array<dcomplex,3>, double>
tail
Signature : (gf_view<imfreq,scalar_valued> g, array_view<dcomplex,1> known_moments = {}) -> std::pair<array<dcomplex,1>, double>
tail
Signature : (block_gf_view<imfreq,matrix_valued> g, list[array_view<dcomplex,3>] known_moments = {}) -> std::pair<std::vector<array<dcomplex,3>>, double>
tail
Signature : (block_gf_view<imfreq,scalar_valued> g, list[array_view<dcomplex,1>] known_moments = {}) -> std::pair<std::vector<array<dcomplex,1>>, double>
tail
fit_hermitian_tail_on_window(*args, **kw)

Signature : (gf_const_view<imfreq,matrix_valued> g, int n_min, int n_max, array_const_view<dcomplex,3> known_moments, int n_tail_max, int expansion_order) -> std::pair<array<dcomplex,3>, double> Fits the tail on the [n_min, n_max] window + negative counter part with the contraint of hermitian moment matrices

fit_tail(*args, **kw)

tail

Signature : (gf_view<imfreq,matrix_valued> g, array_view<dcomplex,3> known_moments = {}) -> std::pair<array<dcomplex,3>, double>
tail
Signature : (gf_view<imfreq,scalar_valued> g, array_view<dcomplex,1> known_moments = {}) -> std::pair<array<dcomplex,1>, double>
tail
Signature : (block_gf_view<imfreq,matrix_valued> g, list[array_view<dcomplex,3>] known_moments = {}) -> std::pair<std::vector<array<dcomplex,3>>, double>
tail
Signature : (block_gf_view<imfreq,scalar_valued> g, list[array_view<dcomplex,1>] known_moments = {}) -> std::pair<std::vector<array<dcomplex,1>>, double>
tail
fit_tail_on_window(*args, **kw)

Signature : (gf_const_view<imfreq,matrix_valued> g, int n_min, int n_max, array_const_view<dcomplex,3> known_moments, int n_tail_max, int expansion_order) -> std::pair<array<dcomplex,3>, double> Fits the tail on the [n_min, n_max] window + negative counter part

from_L_G_R(L, G, R)[source]

Matrix transform of the target space of a matrix valued Greens function.

Sets the current Greens function \(g_{ab}\) to the matrix transform of \(G_{cd}\) using the left and right transform matrices \(L_{ac}\) and \(R_{db}\).

\[g_{ab} = \sum_{cd} L_{ac} G_{cd} R_{db}\]
Parameters:
  • L ((a, c) ndarray) – Left side transform matrix.
  • G (Gf matrix valued target_shape == (c, d)) – Greens function to transform.
  • R ((d, b) ndarray) – Right side transform matrix.

Notes

Only implemented for Greens functions with a single mesh.

imag

Gf – A Greens function with a view of the imaginary part.

indices

GfIndices – The index object of the taret space.

inverse()[source]

Computes the inverse of the Greens function.

Returns:G – The matrix/scalar inverse of the Greens function.
Return type:Gf (copy)
invert()[source]

Inverts the Greens function (in place).

is_gf_hermitian(*args, **kw)

Signature : (gf<imfreq,scalar_valued> g, float tolerance = 1.e-13) -> bool

Signature : (gf<imfreq,matrix_valued> g, float tolerance = 1.e-13) -> bool

Signature : (gf<imfreq,tensor_valued<4>> g, float tolerance = 1.e-13) -> bool

Signature : (gf<imtime,scalar_valued> g, float tolerance = 1.e-13) -> bool

Signature : (gf<imtime,matrix_valued> g, float tolerance = 1.e-13) -> bool

Signature : (gf<imtime,tensor_valued<4>> g, float tolerance = 1.e-13) -> bool

Signature : (block_gf<imfreq,scalar_valued> g, float tolerance = 1.e-13) -> bool

Signature : (block_gf<imfreq,matrix_valued> g, float tolerance = 1.e-13) -> bool

Signature : (block_gf<imfreq,tensor_valued<4>> g, float tolerance = 1.e-13) -> bool

Signature : (block_gf<imtime,scalar_valued> g, float tolerance = 1.e-13) -> bool

Signature : (block_gf<imtime,matrix_valued> g, float tolerance = 1.e-13) -> bool

Signature : (block_gf<imtime,tensor_valued<4>> g, float tolerance = 1.e-13) -> bool

Signature : (block2_gf<imfreq,scalar_valued> g, float tolerance = 1.e-13) -> bool

Signature : (block2_gf<imfreq,matrix_valued> g, float tolerance = 1.e-13) -> bool

Signature : (block2_gf<imfreq,tensor_valued<4>> g, float tolerance = 1.e-13) -> bool

Signature : (block2_gf<imtime,scalar_valued> g, float tolerance = 1.e-13) -> bool

Signature : (block2_gf<imtime,matrix_valued> g, float tolerance = 1.e-13) -> bool

Signature : (block2_gf<imtime,tensor_valued<4>> g, float tolerance = 1.e-13) -> bool

is_gf_real_in_tau(*args, **kw)

Signature : (gf<imfreq,scalar_valued> g, float tolerance = 1.e-13) -> bool

Signature : (gf<imfreq,matrix_valued> g, float tolerance = 1.e-13) -> bool

Signature : (block_gf<imfreq,scalar_valued> g, float tolerance = 1.e-13) -> bool

Signature : (block_gf<imfreq,matrix_valued> g, float tolerance = 1.e-13) -> bool

Signature : (block2_gf<imfreq,scalar_valued> g, float tolerance = 1.e-13) -> bool

Signature : (block2_gf<imfreq,matrix_valued> g, float tolerance = 1.e-13) -> bool

mesh

gf_mesh – The mesh of the Greens function.

rank

int – The mesh rank (number of meshes).

real

Gf – A Greens function with a view of the real part.

rebinning_tau(*args, **kw)

Signature : (gf_view<imtime,matrix_valued> g, int new_n_tau) -> gf<imtime, matrix_valued> Rebins the data of a GfImTime on a sparser mesh

replace_by_tail(*args, **kw)

Signature : (gf_view<imfreq,matrix_valued> g, array_const_view<dcomplex,3> tail, int n_min) -> None Replace the function by the evaluation of the tail for |n| > n_min

replace_by_tail_in_fit_window(*args, **kw)

Signature : (gf_view<imfreq,matrix_valued> g, array_const_view<dcomplex,3> tail) -> None Replace the function by the evaluation of the tail for |n| > n_min

set_from_fourier(*args, **kw)

Fills self with the Fourier transform of g_in

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
Signature : (block_gf_view<imtime,scalar_valued> g_out, block_gf_view<imfreq,scalar_valued> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (block2_gf_view<imtime,scalar_valued> g_out, block2_gf_view<imfreq,scalar_valued> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (gf_view<imtime,scalar_valued> g_out, gf_view<imfreq,scalar_valued> g_in, array_const_view<dcomplex,1+scalar_valued::rank> known_moments) -> None
Fills self with the Fourier transform of g_in with known high-frequency moments
Signature : (gf_view<imfreq,scalar_valued> g_out, gf_view<imtime,scalar_valued> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (block_gf_view<imfreq,scalar_valued> g_out, block_gf_view<imtime,scalar_valued> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (block2_gf_view<imfreq,scalar_valued> g_out, block2_gf_view<imtime,scalar_valued> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (gf_view<imfreq,scalar_valued> g_out, gf_view<imtime,scalar_valued> g_in, array_const_view<dcomplex,1+scalar_valued::rank> known_moments) -> None
Fills self with the Fourier transform of g_in with known high-frequency moments
Signature : (gf_view<retime,scalar_valued> g_out, gf_view<refreq,scalar_valued> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (block_gf_view<retime,scalar_valued> g_out, block_gf_view<refreq,scalar_valued> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (block2_gf_view<retime,scalar_valued> g_out, block2_gf_view<refreq,scalar_valued> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (gf_view<retime,scalar_valued> g_out, gf_view<refreq,scalar_valued> g_in, array_const_view<dcomplex,1+scalar_valued::rank> known_moments) -> None
Fills self with the Fourier transform of g_in with known high-frequency moments
Signature : (gf_view<refreq,scalar_valued> g_out, gf_view<retime,scalar_valued> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (block_gf_view<refreq,scalar_valued> g_out, block_gf_view<retime,scalar_valued> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (block2_gf_view<refreq,scalar_valued> g_out, block2_gf_view<retime,scalar_valued> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (gf_view<refreq,scalar_valued> g_out, gf_view<retime,scalar_valued> g_in, array_const_view<dcomplex,1+scalar_valued::rank> known_moments) -> None
Fills self with the Fourier transform of g_in with known high-frequency moments
Signature : (gf_view<cyclic_lattice,scalar_valued> g_out, gf_view<brillouin_zone,scalar_valued> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (block_gf_view<cyclic_lattice,scalar_valued> g_out, block_gf_view<brillouin_zone,scalar_valued> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (block2_gf_view<cyclic_lattice,scalar_valued> g_out, block2_gf_view<brillouin_zone,scalar_valued> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (gf_view<brillouin_zone,scalar_valued> g_out, gf_view<cyclic_lattice,scalar_valued> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (block_gf_view<brillouin_zone,scalar_valued> g_out, block_gf_view<cyclic_lattice,scalar_valued> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (block2_gf_view<brillouin_zone,scalar_valued> g_out, block2_gf_view<cyclic_lattice,scalar_valued> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (gf_view<imtime,matrix_valued> g_out, gf_view<imfreq,matrix_valued> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (block_gf_view<imtime,matrix_valued> g_out, block_gf_view<imfreq,matrix_valued> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (block2_gf_view<imtime,matrix_valued> g_out, block2_gf_view<imfreq,matrix_valued> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (gf_view<imtime,matrix_valued> g_out, gf_view<imfreq,matrix_valued> g_in, array_const_view<dcomplex,1+matrix_valued::rank> known_moments) -> None
Fills self with the Fourier transform of g_in with known high-frequency moments
Signature : (gf_view<imfreq,matrix_valued> g_out, gf_view<imtime,matrix_valued> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (block_gf_view<imfreq,matrix_valued> g_out, block_gf_view<imtime,matrix_valued> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (block2_gf_view<imfreq,matrix_valued> g_out, block2_gf_view<imtime,matrix_valued> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (gf_view<imfreq,matrix_valued> g_out, gf_view<imtime,matrix_valued> g_in, array_const_view<dcomplex,1+matrix_valued::rank> known_moments) -> None
Fills self with the Fourier transform of g_in with known high-frequency moments
Signature : (gf_view<retime,matrix_valued> g_out, gf_view<refreq,matrix_valued> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (block_gf_view<retime,matrix_valued> g_out, block_gf_view<refreq,matrix_valued> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (block2_gf_view<retime,matrix_valued> g_out, block2_gf_view<refreq,matrix_valued> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (gf_view<retime,matrix_valued> g_out, gf_view<refreq,matrix_valued> g_in, array_const_view<dcomplex,1+matrix_valued::rank> known_moments) -> None
Fills self with the Fourier transform of g_in with known high-frequency moments
Signature : (gf_view<refreq,matrix_valued> g_out, gf_view<retime,matrix_valued> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (block_gf_view<refreq,matrix_valued> g_out, block_gf_view<retime,matrix_valued> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (block2_gf_view<refreq,matrix_valued> g_out, block2_gf_view<retime,matrix_valued> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (gf_view<refreq,matrix_valued> g_out, gf_view<retime,matrix_valued> g_in, array_const_view<dcomplex,1+matrix_valued::rank> known_moments) -> None
Fills self with the Fourier transform of g_in with known high-frequency moments
Signature : (gf_view<cyclic_lattice,matrix_valued> g_out, gf_view<brillouin_zone,matrix_valued> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (block_gf_view<cyclic_lattice,matrix_valued> g_out, block_gf_view<brillouin_zone,matrix_valued> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (block2_gf_view<cyclic_lattice,matrix_valued> g_out, block2_gf_view<brillouin_zone,matrix_valued> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (gf_view<brillouin_zone,matrix_valued> g_out, gf_view<cyclic_lattice,matrix_valued> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (block_gf_view<brillouin_zone,matrix_valued> g_out, block_gf_view<cyclic_lattice,matrix_valued> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (block2_gf_view<brillouin_zone,matrix_valued> g_out, block2_gf_view<cyclic_lattice,matrix_valued> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (gf_view<imtime,tensor_valued<3>> g_out, gf_view<imfreq,tensor_valued<3>> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (block_gf_view<imtime,tensor_valued<3>> g_out, block_gf_view<imfreq,tensor_valued<3>> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (block2_gf_view<imtime,tensor_valued<3>> g_out, block2_gf_view<imfreq,tensor_valued<3>> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (gf_view<imtime,tensor_valued<3>> g_out, gf_view<imfreq,tensor_valued<3>> g_in, array_const_view<dcomplex,1+tensor_valued<3>::rank> known_moments) -> None
Fills self with the Fourier transform of g_in with known high-frequency moments
Signature : (gf_view<imfreq,tensor_valued<3>> g_out, gf_view<imtime,tensor_valued<3>> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (block_gf_view<imfreq,tensor_valued<3>> g_out, block_gf_view<imtime,tensor_valued<3>> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (block2_gf_view<imfreq,tensor_valued<3>> g_out, block2_gf_view<imtime,tensor_valued<3>> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (gf_view<imfreq,tensor_valued<3>> g_out, gf_view<imtime,tensor_valued<3>> g_in, array_const_view<dcomplex,1+tensor_valued<3>::rank> known_moments) -> None
Fills self with the Fourier transform of g_in with known high-frequency moments
Signature : (gf_view<retime,tensor_valued<3>> g_out, gf_view<refreq,tensor_valued<3>> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (block_gf_view<retime,tensor_valued<3>> g_out, block_gf_view<refreq,tensor_valued<3>> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (block2_gf_view<retime,tensor_valued<3>> g_out, block2_gf_view<refreq,tensor_valued<3>> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (gf_view<retime,tensor_valued<3>> g_out, gf_view<refreq,tensor_valued<3>> g_in, array_const_view<dcomplex,1+tensor_valued<3>::rank> known_moments) -> None
Fills self with the Fourier transform of g_in with known high-frequency moments
Signature : (gf_view<refreq,tensor_valued<3>> g_out, gf_view<retime,tensor_valued<3>> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (block_gf_view<refreq,tensor_valued<3>> g_out, block_gf_view<retime,tensor_valued<3>> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (block2_gf_view<refreq,tensor_valued<3>> g_out, block2_gf_view<retime,tensor_valued<3>> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (gf_view<refreq,tensor_valued<3>> g_out, gf_view<retime,tensor_valued<3>> g_in, array_const_view<dcomplex,1+tensor_valued<3>::rank> known_moments) -> None
Fills self with the Fourier transform of g_in with known high-frequency moments
Signature : (gf_view<cyclic_lattice,tensor_valued<3>> g_out, gf_view<brillouin_zone,tensor_valued<3>> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (block_gf_view<cyclic_lattice,tensor_valued<3>> g_out, block_gf_view<brillouin_zone,tensor_valued<3>> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (block2_gf_view<cyclic_lattice,tensor_valued<3>> g_out, block2_gf_view<brillouin_zone,tensor_valued<3>> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (gf_view<brillouin_zone,tensor_valued<3>> g_out, gf_view<cyclic_lattice,tensor_valued<3>> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (block_gf_view<brillouin_zone,tensor_valued<3>> g_out, block_gf_view<cyclic_lattice,tensor_valued<3>> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (block2_gf_view<brillouin_zone,tensor_valued<3>> g_out, block2_gf_view<cyclic_lattice,tensor_valued<3>> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (gf_view<imtime,tensor_valued<4>> g_out, gf_view<imfreq,tensor_valued<4>> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (block_gf_view<imtime,tensor_valued<4>> g_out, block_gf_view<imfreq,tensor_valued<4>> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (block2_gf_view<imtime,tensor_valued<4>> g_out, block2_gf_view<imfreq,tensor_valued<4>> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (gf_view<imtime,tensor_valued<4>> g_out, gf_view<imfreq,tensor_valued<4>> g_in, array_const_view<dcomplex,1+tensor_valued<4>::rank> known_moments) -> None
Fills self with the Fourier transform of g_in with known high-frequency moments
Signature : (gf_view<imfreq,tensor_valued<4>> g_out, gf_view<imtime,tensor_valued<4>> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (block_gf_view<imfreq,tensor_valued<4>> g_out, block_gf_view<imtime,tensor_valued<4>> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (block2_gf_view<imfreq,tensor_valued<4>> g_out, block2_gf_view<imtime,tensor_valued<4>> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (gf_view<imfreq,tensor_valued<4>> g_out, gf_view<imtime,tensor_valued<4>> g_in, array_const_view<dcomplex,1+tensor_valued<4>::rank> known_moments) -> None
Fills self with the Fourier transform of g_in with known high-frequency moments
Signature : (gf_view<retime,tensor_valued<4>> g_out, gf_view<refreq,tensor_valued<4>> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (block_gf_view<retime,tensor_valued<4>> g_out, block_gf_view<refreq,tensor_valued<4>> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (block2_gf_view<retime,tensor_valued<4>> g_out, block2_gf_view<refreq,tensor_valued<4>> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (gf_view<retime,tensor_valued<4>> g_out, gf_view<refreq,tensor_valued<4>> g_in, array_const_view<dcomplex,1+tensor_valued<4>::rank> known_moments) -> None
Fills self with the Fourier transform of g_in with known high-frequency moments
Signature : (gf_view<refreq,tensor_valued<4>> g_out, gf_view<retime,tensor_valued<4>> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (block_gf_view<refreq,tensor_valued<4>> g_out, block_gf_view<retime,tensor_valued<4>> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (block2_gf_view<refreq,tensor_valued<4>> g_out, block2_gf_view<retime,tensor_valued<4>> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (gf_view<refreq,tensor_valued<4>> g_out, gf_view<retime,tensor_valued<4>> g_in, array_const_view<dcomplex,1+tensor_valued<4>::rank> known_moments) -> None
Fills self with the Fourier transform of g_in with known high-frequency moments
Signature : (gf_view<cyclic_lattice,tensor_valued<4>> g_out, gf_view<brillouin_zone,tensor_valued<4>> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (block_gf_view<cyclic_lattice,tensor_valued<4>> g_out, block_gf_view<brillouin_zone,tensor_valued<4>> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (block2_gf_view<cyclic_lattice,tensor_valued<4>> g_out, block2_gf_view<brillouin_zone,tensor_valued<4>> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (gf_view<brillouin_zone,tensor_valued<4>> g_out, gf_view<cyclic_lattice,tensor_valued<4>> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (block_gf_view<brillouin_zone,tensor_valued<4>> g_out, block_gf_view<cyclic_lattice,tensor_valued<4>> g_in) -> None
Fills self with the Fourier transform of g_in
Signature : (block2_gf_view<brillouin_zone,tensor_valued<4>> g_out, block2_gf_view<cyclic_lattice,tensor_valued<4>> g_in) -> None
Fills self with the Fourier transform of g_in
set_from_imfreq(*args, **kw)

Fills self with the legendre transform of gw

Signature : (gf_view<triqs::gfs::legendre,scalar_valued> gl, gf_view<imfreq,scalar_valued> gw) -> None
Fills self with the legendre transform of gw
Signature : (gf_view<triqs::gfs::legendre,matrix_valued> gl, gf_view<imfreq,matrix_valued> gw) -> None
Fills self with the legendre transform of gw
Signature : (gf_view<triqs::gfs::legendre,tensor_valued<3>> gl, gf_view<imfreq,tensor_valued<3>> gw) -> None
Fills self with the legendre transform of gw
Signature : (gf_view<triqs::gfs::legendre,tensor_valued<4>> gl, gf_view<imfreq,tensor_valued<4>> gw) -> None
Fills self with the legendre transform of gw
set_from_imtime(*args, **kw)

Fills self with the legendre transform of gt

Signature : (gf_view<triqs::gfs::legendre,scalar_valued> gl, gf_view<imtime,scalar_valued> gt) -> None
Fills self with the legendre transform of gt
Signature : (gf_view<triqs::gfs::legendre,matrix_valued> gl, gf_view<imtime,matrix_valued> gt) -> None
Fills self with the legendre transform of gt
Signature : (gf_view<triqs::gfs::legendre,tensor_valued<3>> gl, gf_view<imtime,tensor_valued<3>> gt) -> None
Fills self with the legendre transform of gt
Signature : (gf_view<triqs::gfs::legendre,tensor_valued<4>> gl, gf_view<imtime,tensor_valued<4>> gt) -> None
Fills self with the legendre transform of gt
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
set_from_pade(*args, **kw)

Signature : (gf_view<refreq,matrix_valued> gw, gf_view<imfreq,matrix_valued> giw, int n_points = 100, float freq_offset = 0.0) -> None

Signature : (gf_view<refreq,matrix_valued> gw, gf_view<imfreq,matrix_valued> giw, int n_points = 100, float freq_offset = 0.0) -> None

Signature : (gf_view<refreq,matrix_valued> gw, gf_view<imfreq,matrix_valued> giw, int n_points = 100, float freq_offset = 0.0) -> None

Signature : (gf_view<refreq,matrix_valued> gw, gf_view<imfreq,matrix_valued> giw, int n_points = 100, float freq_offset = 0.0) -> None

target_rank

int – The rank of the target space.

target_shape

(int, …) – The shape of the target space.

total_density(*args, **kwargs)[source]

Compute total density.

Returns:density – Total density of the Greens function.
Return type:float

Notes

Only implemented for single mesh Greens function with a, Matsubara, real-frequency, or Legendre mesh.

transpose()[source]

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.

x_data_view(x_window=None, flatten_y=False)[source]

Helper method for getting a view of the data.

Parameters:
  • x_window (optional) – The window of x variable (omega/omega_n/t/tau) for which data is requested.
  • flatten_y (bool, optional) – If the Greens function is of size (1, 1) flatten the array as a 1d array.
Returns:

(X, data) – X is a 1d numpy array of the x variable inside the window requested. data is a 3d numpy array of dim (:,:, len(X)), the corresponding slice of data. If flatten_y is True and dim is (1, 1, *) it returns a 1d numpy array.

Return type:

tuple

zero()[source]

Set all values to zero.