triqs.gfs.backwd_compat.gf_refreq.GfReFreq.fit_hermitian_tail_on_window

GfReFreq.fit_hermitian_tail_on_window(*args, **kw)

Dispatched C++ function(s).

[1] (g: Gf[MeshImFreq, 2],
     n_min: int,
     n_max: int,
     known_moments: ndarray[complex, 3],
     n_tail_max: int,
     expansion_order: int)
  -> tuple[ndarray[complex, 3], float]

Fit the high-frequency tail on a restricted window, imposing hermitian moment matrices.

Behaves like fit_tail_on_window but enforces the symmetry \(G_{i,j}(i\omega) = G_{j,i}^*(-i\omega)\) on the fitted moments.

Parameters:
gGf[MeshImFreq, 2]

The Matsubara Green’s function whose tail is to be fitted.

n_minint

Minimum Matsubara index of the fit window.

n_maxint

Maximum Matsubara index of the fit window (\(-1\) means use the last index of the mesh).

known_momentsndarray[complex, 3]

Array of known high-frequency moments to constrain the fit.

n_tail_maxint

Maximum frequency index used internally by the tail fitter.

expansion_orderint

Order of the tail expansion to fit.

Returns:
tuple[ndarray[complex, 3], float]

A pair containing the fitted tail moments and the fitting error.