kwant.continuum.
build_discretized
(tb_hamiltonian, coords, *, grid=None, locals=None, grid_spacing=None)[source]¶Create a template builder from a symbolic tightbinding Hamiltonian.
The provided symbolic tightbinding Hamiltonian is put on a (hyper) square
lattice and turned into Python functions. These functions are used to
create a Builder
instance that may be used with
fill
to construct a system of a desired shape.
The return values of discretize_symbolic
may be used
directly for the first two arguments of this function.
Warning
This function uses eval
(because it calls sympy.sympify
), and
thus should not be used on unsanitized input.
Parameters:  tb_hamiltonian : dict
coords : sequence of strings
grid : scalar or kwant.lattice.Monatomic instance, optional
locals : dict, optional
grid_spacing : int or float, optional


Returns:  model :
