摘要:We propose deterministic schemes for controlled-NOT (CNOT), Toffoli, and Fredkin gates between flying photon qubits and the collective spin wave (magnon) of an atomic ensemble inside double-sided optical microcavities. All the gates can be accomplished with 100% success probability in principle and no additional qubit is required. Atomic ensemble is employed so that light-matter coupling is remarkably improved by collective enhancement. We qualified the performance of the gates and the results show that they can be faithfully constituted with current experimental techniques.