So the code for the conductance was:

energies = []
data = []
for ie in range(100):
    energy = ie * 0.01
   
    smatrix = kwant.smatrix(syst, energy)

    energies.append(energy)
    data.append(smatrix.transmission(0,1)

which gave the error:

UserCodeError: Error occurred in user-supplied value function "onsite".
See the upper part of the above backtrace for more information.

Reply via email to