June 12, 2024
3:57 p.m.
Dear Kim: My previous response is not correct. You have attached the leads, the error is telling you that the SelfEnergyLead has no attribute `kwant`. You should either call `H = syst.hamiltonian_submatrix()` or call `syst.leads[0].selfenergy(0)` to get rid of the error. Bests, Wilson