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.
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.