Dear sir, 

Sorry to interrupt you, I have a query related to the discussion going here. Suppose if I have sin(2k_z) or cos(2k_z) term in the Hamiltonian which arises due to second neighbour hopping then how should I proceed? When I assign the factors which arise from these terms to the second neighbour hopping, I am getting wrong results.

Best Regards

On Fri, Aug 7, 2020, 22:06 <ousmane.ly@kaust.edu.sa> wrote:
Dear Khani,
Kwant only discretizes Polynomials. However, the Hamiltonian you have can be implemented easily. Just think of writing  the sin and cos functions as sum and difference of exponentials, and then take the factors as hoppings.
Regards,
Ousmane