Dear Naveen,
Once you have defined your lattice. You can find any neighbour hoppings of
the system.
Simply use the following commands
for i in lat.neighbors(1):
print(i)
for i in lat.neighbors(2):
print(i)
for i in lat.neighbors(3):
print(i)
All you have to do is to track the printed results and get neighbour
hoppings of the system
Best, Adel
Le lun. 2 mars 2020 à 17:47, Naveen Yadav <[email protected]> a
écrit :
> Dear Kwant developers,
>
> I want to add second neighbour hoppings to the system in the similar way
> as I did for the first nearest neighbour
>
>
> *syst = kwant.Builder() lat = kwant.lattice.cubic(a) syst[(lat(z, y,
> x) for z in range(H) for y in range(W) for x in range(L))] = onsite*
>
>
> *syst[kwant.builder.HoppingKind((1, 0, 0), lat, lat)] = hoppingx
> syst[kwant.builder.HoppingKind((0, 1, 0), lat, lat)] = hoppingy
> syst[kwant.builder.HoppingKind((0, 0, 1), lat, lat)] = hoppingz*
>
> Please suggest if there is a way to do that.
> Thank you.
>
> Naveen
>