triqs.experimental.lattice.lattice.read_wannier90_tb_data
- triqs.experimental.lattice.lattice.read_wannier90_tb_data()
Dispatched C++ function(s).
[1] (w90_path_and_seedname: str) -> tuple[[[int, len = 3]], [ndarray[complex, 2]], [ndarray[complex, 3]], ndarray[float, 2]]
Read a Wannier90 *_tb.dat file and return the lattice vectors, hopping matrices, position operators and unit-cell vectors.
The file is located by appending _tb.dat to the given path and seedname. All quantities are returned in the units used by Wannier90: hoppings in eV, lattice vectors \(\mathbf{R}\) in crystal (lattice) coordinates, position operators in Angstrom and unit-cell vectors in Angstrom.
- Parameters:
- w90_path_and_seednamestr
Path to the Wannier90 files including the seedname, such that the file to read is <w90_path_and_seedname>_tb.dat.
- Returns:
- tuple[[[int, len = 3]], [ndarray[complex, 2]], [ndarray[complex, 3]], ndarray[float, 2]]
Tuple containing the lattice vectors \(\mathbf{R}\) (shape [nR, 3]), the hopping matrices (shape [nR, nOrb, nOrb]), the position operators in the real-space Wannier basis (shape [nR, nOrb, nOrb, 3]) and the unit-cell vectors (shape [3, 3]).