triqs.lattice.utils.parse_hopping_from_wannier90_hr_dat

triqs.lattice.utils.parse_hopping_from_wannier90_hr_dat(filename)[source]

Wannier90 real space hopping parser of *_hr.dat files.

Returns a dictionary where the keys are the real-space hopping vectors, in terms of multiples of the lattice vectors, and the values are num_wann * num_wann numpy ndarrays with the hopping integrals.

Parameters:

filename (str) – Wannier90 *_hr.dat file to parse.

Returns:

  • hopp_dict (dict) – Dictionary of real space hoppings.

  • num_wann (int) – Total number of Wannier functions per unit-cell.