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
46 stars 11 forks source link

Bbq bugfix #63

Closed TsuyoshiOkubo closed 1 year ago

TsuyoshiOkubo commented 1 year ago

I found a bug in tenes_simple when we consider the biquadratic interaction. The tenes_simple incorrectly creates the biquadratic interaction through SS**2, where SS is a ndarray representing the bilinear Heisenberg coupling. In Python, SS**2 means element-wise multiplication, while the correct biquadratic term should be created by matrix-matrix multiplication. Please review this update.