So far following works
expr = kwant.continuum.sympify("k_x**2 * exp(k_x)") tb = kwant.continuum.discretize(expr)
whereas following fails
expr = sympy.sympify("k_x**2 * exp(k_x)") tb = kwant.continuum.discretize(expr)
exp is now
sympy.exp and is not properly processed.
Discretizer should properly detect and process all kind of sympy functions.
Bottom line: I don't think it is an actual bug as it works if one pass
directly string to
kwant.continuum.discretize all first to
It is still a case that I believe should be handled properly.