Ising Machines for Diophantine Problems in Physics