kwant.continuum.lambdify(expr, locals=None)[source]¶Return a callable object for computing a continuum Hamiltonian.
Warning
This function uses eval (because it calls sympy.sympify), and
thus should not be used on unsanitized input.
If necessary, the given expression is sympified using
kwant.continuum.sympify. It is then converted into a callable object.
| Parameters: | expr : str or SymPy expression
locals : dict or
|
|---|