“…If the system contains the cross-Kerr nonlinearity with the term η 1ĉ † 1ĉ 1ĉ † 2ĉ 2 , then we will have e −iη 1ĉ † 1ĉ 1ĉ † 2ĉ 2 t |α,1 c 1 ,c 2 = |αe iη 1 t ,1 , the c 1 mode acquires a phase. When the phase equals to π , a two-photon controlled-phase gate is naturally implemented, from which a CNOT gate can also be easily constructed [31,32]. Performing quadrature operator x = c 1 + c † 1 measurement by the homodyne apparatus, we know x = 2α cos η 1 t. Employing the HamiltonianĤ I =Ĥ af 2 +Ĥ f o1 (temporarily ignoring the driving fields), we plot ĉ † 1ĉ 1 , ĉ † 2ĉ 2 , X c 1 and X c 2 in Fig.…”