issp-center-dev / TeNeS

Massively parallel tensor network solver
http://www.pasums.issp.u-tokyo.ac.jp/tenes/en
GNU General Public License v3.0
49 stars 11 forks source link

tenes_simple fails to treat longer interaction and field simultaneously unless using `--use-site-hamiltonian` option #66

Closed yomichi closed 1 year ago

yomichi commented 1 year ago

Unless --use-site-hamiltonian option is passed, tenes_simple treats the site Hamiltonians as the bond Hamiltonians. For example, the Zeeman term $h_zS^z$ is considered as $(h_z/z) ( S^z_1 I_2 + I_1 S^z_2 )$, where $I_i$ is the identity operator at the site $i$ and $z$ is the coordination number (the number of bonds connected with the site). However, only the nearest neighbor bonds are counted as the coordination number (moreover, all the nearest neighbor bonds are counted even if non-interacted). This PR fixes this.