I added tests for NSL:Linalg::inner_product which was failing with the new PyTorch version.
Adding chemical potential in NSL::FermionMatrix::HubbardExp caused some bugs with the call order (beta vs mu) so I refactored this putting mu as the last argument of the constructor.
I fixed some bugs appearing with PyTorch 2.x. The whole setup is backwards compatible with pytorch 1.11 and 1.12 - the tests run and pass.
test_FermionMatrix_hermitian
, is still failing. I don't understand why. When printing the differencethe largest error appears to be 1e-16 on multiple runs. But the checkup
still fails for various instances.
NSL:Linalg::inner_product
which was failing with the new PyTorch version.NSL::FermionMatrix::HubbardExp
caused some bugs with the call order (beta
vsmu
) so I refactored this puttingmu
as the last argument of the constructor.