WONG, Sheung Chuen wrote:
I am just a beginner on Kwant and downloaded Kwant 1.4.
It is quite frustrated on getting syntax errors using full sample code from Kwan paper or APS tutorial
which themselves provide very good introduction.
For example, in Kwant paper Appendix D.5,
smatrix = kwant.smatrix(sys, energy, args=[phi, ""]) doesn’t work.
Dear Clement, what kind of (syntax) error do you get with this example (qhe.py) and Kwant 1.4.0? I tried all examples from the Kwant paper [1], and they all except "molecule.py" do work with 1.4.0. (We might be able to fix the regression for molecule.py.) Note that these examples were written for Python 2, so for two of them I had to change 'print ...' to 'print(...)', but that was all. Could it be that you are simply not waiting long enough until the qhe.py finishes? It takes about two minutes on my machine. You may ignore the KwantRegressionWarning messages, these are not errors. Christoph [1] https://downloads.kwant-project.org/examples/kwant-examples-njp.zip