Hi, > When I plot the system, I see the hoppings have been added successfully, > but the band structure calculation returns the following error: > > ValueError: Further-than-nearest-neighbor cells are connected by hopping > > > Can you please give me some advice on how to fix this error?
Currently Kwant cannot finalize a system that has hoppings that are
longer-range than 1 unit cell because of a restriction in the underlying
system format. This is a restriction that we are going to lift in a
future version of Kwant.
For the moment you can simply extend your translational symmetry:
> zigzag_ribbon = kwant.Builder(kwant.TranslationalSymmetry([1, 0]))
to something like
zigzag_ribbon = kwant.Builder(kwant.TranslationalSymmetry([2, 0]))
so that hoppings only connect nearest-neighbor unit cells in your lead.
Happy kwanting,
Joe
signature.asc
Description: PGP signature
