dmft_tools.greens_functions_mixer
- dmft_tools.greens_functions_mixer._bgf_to_vec(bgf, deg_shells=None)[source]
flattens a BlockGf to a 1d numpy array if deg_shells is given, only the first block of each degenerate shell is stored
- dmft_tools.greens_functions_mixer._broyden_update(broyler, general_params, deg_shells, G0_freq, G0_freq_previous, use_legendre=True)[source]
calculates the broyden update of G0 using the algorithm presented in: doi.org/10.1103/PhysRevB.80.125125 (Rok Zitko) & doi.org/10.1103/PhysRevB.38.12807 (D.D. Johnson)
optimize function to find roots: F(G0)=dmft_step(G0) - G0 = 0 where dmft_step gives back the normal defined G0=inverse(Gloc^-1 - Sigma)
- Parameters:
- broyler: dict
dict containing the broyden variables; an empty history starts a new Broyden sequence with a linear mixing step
- general_paramters: general params dict
- use_legendre: bool
compress with Legendre polynomials if general_params has n_l. Needs the unit discontinuity of a Green’s function, so it is off for the hybridization.
- Returns:
- dmft_tools.greens_functions_mixer._delta_from_g0(G0_freq)[source]
Hybridization of a Weiss field G0 = (iw - eps - Delta)^-1, i.e. iw - G0^-1 without its static part eps. The static part is taken from a fit of the high-frequency tail, so the local levels the Weiss field was built with need not be known (e.g. after a restart).
- dmft_tools.greens_functions_mixer._mixed_blocks(bgf, deg_shells)[source]
groups of block names whose first entry is stored in the Broyden vector; the other entries of a group are copies of the first. Blocks that are in no degenerate shell form a group of their own.
- dmft_tools.greens_functions_mixer.mix_delta(solver, general_params, icrsh, archive, G0_freq_previous, deg_shell)[source]
Mixing for solvers that take the hybridization Delta(tau) as input (ctseg, cthyb with delta_interface): mix solver.Delta_freq with the hybridization of the previous Weiss field, controlled by g0_mix / g0_mix_type as for the G0 mixing.
Mixing G0 itself is not suited for these solvers: the Weiss fields of two iterations are built with different local levels (the chemical potential changes), and Delta = iw - G0^-1 - eps with the current levels eps then keeps a static part, which the Fourier transform to Delta(tau) cannot represent. The resulting Delta(tau) oscillates and changes sign, i.e. the solver runs into a sign problem. The mixture of two hybridizations stays causal instead.