Correlated two-photon modulation based on nonlinear effects in a photonic synthetic lattice