A reformulation of Hilbert's tenth problem through quantum mechanics