Digital Coherent Optics