Dear Yue,
I think it would be useful to you if you visit Kwant frequently asked questions*. If you do so, I guess you would be able to solve your issue.
Best
Adel

*
https://kwant-project.org/doc/dev/tutorial/faq

Le jeu. 28 déc. 2023 à 12:57, <araya0sun@gmail.com> a écrit :
Dear Anton,

Thank you very much for your advice. As I am a novice, I am not familiar enough with using kwant, so I can't correct this mistake now. I would appreciate it if you could give me an example. This will be very helpful to understand the error. Best wishes.

Sincerely,
Yue Xiang