Quantum simulation of φ theories in qudit systems