Coherent computation in degenerate optical parametric oscillators