On-demand photonic Ising machine with simplified Hamiltonian calculation by phase encoding and intensity detection - Communications Physics