On 05/22/2018 03:06 PM, alexandre.bernard1@u-psud.fr wrote:
Then, thanks to both of you, I think it is safe to say that the case is solved :

the hermicity of the hamiltonian is 'ensured' by Kwant by recalling the same function (and taking the complex conjugate) for i--->j and for j--->i, but in the case of a RNG in the function, this yields to different values.
But using a table of random numbers generated with a hash function 'kwant.digest.uniform()' works fine !

Thank you very much for your help !

Alexandre

Ah yes, I understand now. I had read Adel's answer but did not believe it at first. He was indeed correct.

Happy Kwanting,

Joe