1D Ising model using the Kronecker sum and Kronecker product. (1st May 2022)