kwant.qsymm
– Integration with Qsymm¶kwant.qsymm.
builder_to_model
(syst, momenta=None, real_space=True, params=None)[source]¶Make a qsymm.BlochModel out of a Builder
.
Parameters:  syst :
momenta : list of strings or None
real_space : bool (default True)
params : dict, optional


Returns:  model : qsymm.BlochModel

Notes
The sites in the the builder are in lexicographical order, i.e. ordered first by their family and then by their tag. This is the same ordering that is used in finalized kwant systems.
kwant.qsymm.
model_to_builder
(model, norbs, lat_vecs, atom_coords, *, coeffs=None)[source]¶Make a Builder
out of qsymm.Models or qsymm.BlochModels.
Parameters:  model : qsymm.Model, qsymm.BlochModel, or an iterable thereof
norbs : OrderedDict or sequence of pairs
lat_vecs : list of arrays
atom_coords : list of arrays
coeffs : list of sympy.Symbol, default None.


Returns:  syst :

Notes
Onsite terms that are not provided in the input model are set to zero by default.
The input model(s) representing the tight binding Hamiltonian in Bloch form should follow the convention where the difference in the real space atomic positions appear in the Bloch factors.
kwant.qsymm.
find_builder_symmetries
(builder, momenta=None, params=None, spatial_symmetries=True, prettify=True, sparse=None)[source]¶Finds the symmetries of a Kwant system using qsymm.
Parameters:  builder : momenta : list of strings or None
params : dict, optional
spatial_symmetries : bool (default True)
prettify : bool (default True)
sparse : bool, or None (default None)


Returns:  symmetries : list of qsymm.PointGroupElements and/or qsymm.ContinuousGroupElement
