The equations that govern the temporal evolution of two photons in the Schrödinger picture are derived, taking into account the effects of loss, group-velocity dispersion, temporal phase modulation, linear coupling among different optical modes, and four-wave mixing. Inspired by the formalism, we propose the concept of quantum temporal imaging, which uses dispersive elements and temporal phase modulators to manipulate the temporal correlation of two entangled photons. We also present the exact solution of a two-photon vector soliton, in order to demonstrate the ease of use and intuitiveness of the proposed formulation. © 2006 The American Physical Society.