A fourier based quantum simulation of optical systems