triqs.gfs.tools

Pure-Python utilities operating on Gf and BlockGf.

Functions

conjugate(x)

Complex conjugate with lazy-expression support.

delta(g)

Hybridization function \(\Delta(i\omega_n)\) extracted from a non-interacting Green's function.

discretize_bath(delta_in, Nb[, eps0, V0, ...])

Fit a hybridization function with Nb discrete bath sites.

dyson(**kwargs)

Solve Dyson's equation for the missing quantity.

fit_legendre(g_t[, order])

Fit a (possibly noisy) imaginary-time Green's function to a Legendre expansion.

inverse(x)

Element-wise inverse with lazy-expression support.

make_delta(V, eps, mesh[, block_names])

Hybridization function built from bath hoppings and energies.

make_zero_tail(g[, n_moments])

Container for high-frequency tail coefficients, initialized to zero.

map_block(fun, G)

Apply fun to every block of G and return the result.

read_gf_from_txt(block_txtfiles, block_name)

Read a real-frequency Green's function block from text files.

transpose(x)

Transpose in target space with lazy-expression support.

write_gf_to_txt(g)

Write a frequency Green's function to text files.