kwant.lattice.
general
(prim_vecs, basis=None, name='', norbs=None)[source]¶Create a Bravais lattice of any dimensionality, with any number of sites.
The primitive vectors of the Bravais lattice
The coordinates of the basis sites inside the unit cell
Name of the lattice, or sequence of names of all of the sublattices. If the name of the lattice is given, the names of sublattices (if any) are obtained by appending their number to the name of the lattice.
The number of orbitals per site on the lattice, or a sequence of the number of orbitals of sites on each of the sublattices.
Monatomic
or Polyatomic
Resulting lattice.
Notes
This function is largely an alias to the constructors of corresponding lattices.