Hi Chagaan, kwant.continuum.discretize doesn't change the scale. Indeed, plotting the two dispersions on the same plot shows that they agree quite well. To confirm, try adding the code below after cell 7. As a note here, the Fermi momentum is around pi/2a, which is rather high, and if one wanted to make a more accurate approximation, reducing the lattice constant would be the way to go.
Best, Anton from matplotlib import pyplot as plt params = dict( B_x=0, mu=1, alpha=0.5, Delta=0 ) fig, ax = plt.subplots(figsize=(8, 6)) kwant.plotter.spectrum(h_cont, ('k_x', momenta), params=params, show=False, ax=ax) kwant.plotter.spectrum( infinite_wire, ('k_x', np.linspace(-np.pi, np.pi, 301)), params=params, ax=ax )