Hey Xiaoxiao,

Indeed, Kwant's conductance matrix [1] also subtracts the trace from
the diagonal, and it's also how the conductance matrix is
conventionally defined.

Best,
Anton

[1]: 
https://gitlab.kwant-project.org/kwant/kwant/-/blob/master/kwant/solvers/common.py#L742-758

On Sun, 12 Sept 2021 at 13:32, <xiaoxiao.zh...@riken.jp> wrote:
>
> Anton Akhmerov wrote:
> >     # Correct the reflection blocks, so that rows and columns sum to zero.
> >     cond -= np.diag(cond.sum(axis=0))
>
> Hello Anton (or anyone who reads this),
> Sorry for waking up this old thread. May I ask why this step is necessary to 
> calculate a Hall conductance? I don't immediately see this requirement in the 
> Buttiker formula or the code after it. Does it affect the result in general?
> In another kwant code of 6-terminal QHE, this step is not seen. Or is it 
> assumed in the kwant function conductance_matrix() ?
> https://github.com/topocm/topocm_content/blob/master/w3_pump_QHE/Laughlinargument.md
>
> Thank you.

Reply via email to