Transfer Matrix 2D Ising

Attempt at a code.