  Cavity-mediated two-qubit gates, for example between solid-state spins, are
attractive for quantum network applications. We propose three schemes to
implement a controlled phase-flip gate mediated by a cavity. The main advantage
of all these schemes is the possibility to perform them using a cavity with
high cooperativity, but not in the strong coupling regime. We calculate the
fidelity of each scheme in detail, taking into account the most important
realistic imperfections, and compare them to highlight the optimal conditions
for each scheme. Using these results, we discuss which quantum system
characteristics might favor one scheme over another.
