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