triqs.lattice.utils

Lattice utilities.

Helpers for building tight-binding models and momentum-space paths.

Functions

TB_from_pythTB(ptb)

Convert a PythTB model to a TBLattice object.

TB_from_wannier90(seed[, path, ...])

Read Wannier90 output and convert it to a TBLattice object.

TB_to_sympy(TBL[, analytical, precision])

Return the symbolic momentum-space Hamiltonian of a tight-binding model via a Fourier-series expansion.

extend_wannier90_to_spin(hopp_dict, num_wann)

Extend a Wannier90 hopping dictionary with a trivial spin index.

k_space_path(segments[, num, bz, ...])

Generate an array of k-vectors along a path defined by a list of pairs of k-vectors.

parse_hopping_from_wannier90_hr_dat(filename)

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

parse_lattice_vectors_from_wannier90_wout(...)

Parse the real-space lattice vectors from a Wannier90 *.wout file.