# triqs.sumk.sumk_discrete_from_lattice.SumkDiscreteFromLattice¶

class triqs.sumk.sumk_discrete_from_lattice.SumkDiscreteFromLattice(lattice, patch=None, n_points=8, method='Riemann')[source]
• Computes
$G \leftarrow \sum_k (\omega + \mu - \epsilon_k - \Sigma(k,\omega))^{-1}$

for GF functions with blocks of the size of the matrix eps_k with a discrete sum.

• The object contains the discretized hoppings and points in the arrays hopping, bz_points,bz_weights,mu_pattern,overlap (IF non orthogonal) It can also generate a grid (ReComputeGrid) for a regular grid or a Gauss-Legendre sum for the whole Brillouin Zone or a patch of the BZ.

Methods

Recompute_Grid(n_points[, method, Q]) (Re)Computes the grid on the patch given at construction:
__init__(lattice[, patch, n_points, method])
param lattice: The underlying triqs.lattice or triqs.super_lattice provinding t(k)
n_kpts() Returns the number of k points
resize_arrays(nk) Just constructs the arrays, but without initializing them - nk: total number of k points

Attributes

 GFBlocIndices Returns the ONLY block indices accepted for the G and Sigma argument of the SumK function