If you're interested in HMC, we showed how to apply it to the Ising model in https://arxiv.org/abs/1912.03278 with code available in https://github.com/HISKP-LQCD/ising_hmc