triqs.lattice.utils.parse_hopping_from_wannier90_hr_dat

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

Parse the real-space hoppings from a Wannier90 *_hr.dat file.

Returns a dictionary whose keys are the real-space hopping vectors, in multiples of the lattice vectors, and whose values are (num_wann, num_wann) numpy arrays of hopping integrals.

Parameters:
filenamestr

Wannier90 *_hr.dat file to parse.

Returns:
hopp_dictdict

Dictionary of real-space hoppings.

num_wannint

Total number of Wannier functions per unit cell.