  We propose a scheme to realize the conditional phase gate (CPG) and quantum
state transfer (QST) between two qubits (acted by nitrogen-vacancy (NV)
centers) based on off-resonant quantum Zeno dynamics. We also consider the
entanglement dynamics of two qubits in this system. Since no cavity photons or
excited levels of the NV center is populated during the whole process, the
scheme is immune to the decay of cavity and spontaneous emission of the NV
center. The strictly numerical simulation shows that the fidelities of QST and
CPG are high even in the presence of realistic imperfections.
