Dear all, I'm trying out Kwant, and I've encountered a problem when investigating 1D leads. The simplest minimal example would be to take your file "quantum_wire_revisited.py", set W=1 there, and change the energy window to energies=[0.01 * i for i in xrange(1000)] The lattice is plotted correctly, but the conductance calculation yields a "ValueError: expected square matrix". Changing "kwant.lattice.square" to "kwant.lattice.chain" does not solve the problem. Can you reproduce the error, or could there be a problem with my Kwant installation? Thanks! Regards, Thomas -- ----------------------------------------------------------- Dr. Thomas Schmidt Department of Physics Klingelbergstrasse 82 Phone: +41 61 267 3751 CH-4056 Basel Email: Thomas.L.Schmidt@gmx.de Switzerland http://www.thoschmidt.de ----------------------------------------------------------- --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com