  Spectral and temporal mode matching are required for the efficient
interaction of photons and quantum memories. In our previous work, we proposed
a new route to spectrally compress broadband photons to achieve spectral mode
matching with narrowband memories, using a linear, time-variant optical cavity
based on rapid switching of input coupling. In this work, we extend our
approach to attain temporal mode matching as well by exploiting the
time-variation of output coupling of the cavity. We numerically analyze the
mode matching and loss performance of our time-varying cavity and present a
possible implementation in integrated photonics.
