Weiyuan Tong wrote:
Thanks for your code. Can I run it on kwant 1.0 ? When I run your code on my computer I get some error message:
The code will work with Kwant 1.0 as well. The test fails because the convention for the sign of momentum of kwant.physics.Bands changed in Kwant 1.1 [1]. "wraparound" uses the new convention and hence the test did not consider that. I just fixed the test in "wraparound": it should no longer fail. But bear in mind that wraparound keeps using the new convention. If you find this too confusing, just replace all 1j by -1j in wraparound.py... But the best would be if you would upgrade to 1.1. It should be easy. May I ask what is holding you back? Let me know if there are any other problems, Christoph [1] http://kwant-project.org/doc/1.1/pre/whatsnew/1.1#harmonize-bands-with-modes