 approach is an extension of the previously reported SNAP operation for universal control of one cavity [@Krastanov2015; @Heeres2015] to two cavities. When combined with the single-cavity SNAP gates, our method can be used to realize arbitrary universal multi-cavity control. The experimental sequence is shown in Fig. \[fig:fig4\](a), where a conditional $2\pi$ rotation on qubit $Q_3$ is sandwiched in between two pairs of phase-space displacements of the cavities. With help of the two ancillary qubits, joint Wigner tomography of the two cavities is performed and two slice cuts of the measured two-mode Wigner function are shown in Figs. \[fig:fig4\](b-c). The density matrices of ${\ensuremath{\left|\Phi_{+}\right\rangle}}$ and ${\ensuremath{\left|\Phi_{-}\right\rangle}}$, reconstructed by mapping the state of the two cavities to qubits $Q_1$ and $Q_2$ and then jointly measuring the state of these qubits \[as in the tomography measurement of Fig. \[fig:fig3\](b)\], are displayed in Figs. \[fig:fig4\](d-e), with state fidelities of 0.957 and 0.930, respectively.

One distinct feature of our gate dynamics is that it is compatible with error correction schemes. For logic qubits whose basis states are encoded in even cat states, the photon-number parity can be used as an error syndrome of the single-photon loss [@LeghtasPRL2013; @Mirrahimi2014; @Ofek2016]. With this encoding, each of the two-qubit logic basis states is composed of four two-mode coherent state components, and a CZ gate can be realized by subsequently performing four conditional phase operations. Each operation inverts the phase of one of the four components forming a specific logic basis state, and can be realized by sandwiching a qubit $2\pi$ rotation conditional on the cavities’ vacuum state between two pairs of phase-space displacements of the cavities. For another kind of error-correctable logic qubits binomially encoded as $\{{\ensuremath{\left|0\right\rangle}}_L=({\ensuremath{\left|0\right\rangle}}+{\ensuremath{\left|4\right\rangle}})/\sqrt{2}, {\ensuremath{\left|1\right\rangle}}_L=~{\ensuremath{\left|2
approach is an extension of the previously reported SNAP operation for cosmopolitan restraint of one cavity   [ @Krastanov2015; @Heeres2015 ] to two cavities. When compound with the unmarried - cavity SNAP gates, our method acting can be used to realize arbitrary universal multi - cavity control condition. The experimental sequence is shown in Fig.   \[fig: fig4\](a), where a conditional $ 2\pi$ rotation on qubit $ Q_3 $ is sandwich in between two pairs of phase - space displacement of the cavity. With help of the two ancillary qubits, joint Wigner tomography of the two cavities is performed and two piece cuts of the measured two - mode Wigner routine are shown in Figs.   \[fig: fig4\](b - c). The density matrices of $ { \ensuremath{\left|\Phi_{+}\right\rangle}}$ and $ { \ensuremath{\left|\Phi_{-}\right\rangle}}$, reconstruct by mapping the state of the two cavities to qubits $ Q_1 $ and $ Q_2 $ and then jointly measuring the state of these qubits \[as in the imaging measurement of Fig.   \[fig: fig3\](b)\ ], are displayed in Figs.   \[fig: fig4\](d - e), with state fidelities of 0.957 and 0.930, respectively. 

 One distinct feature of our gate moral force is that it is compatible with mistake correction schemes. For logic qubits whose basis states are encoded in even cat states, the photon - number parity can be use as an error syndrome of the single - photon passing   [ @LeghtasPRL2013; @Mirrahimi2014; @Ofek2016 ]. With this encoding, each of the two - qubit logic footing department of state is composed of four two - mode coherent department of state components, and a CZ gate can be realized by subsequently performing four conditional phase operations. Each process inverts the phase of one of the four components forming a specific logic basis state, and can be realized by sandwich a qubit $ 2\pi$ rotation conditional on the cavities ’ vacuum state between two pairs of phase - quad displacements of the pit. For another kind of error - correctable logic qubits binomially encoded as $ \{{\ensuremath{\left|0\right\rangle}}_L=({\ensuremath{\left|0\right\rangle}}+{\ensuremath{\left|4\right\rangle}})/\sqrt{2 }, { \ensuremath{\left|1\right\rangle}}_L=~{\ensuremath{\left|2
 aporoach is an extension on the previously reportxd SNAP operatiun for universal control of lnw cavuty [@Krastanov2015; @Heeres2015] to two cavinies. When comuined with the smhgle-cavlcy SNZI gatzs, our method cak be used tm realize arbidrxrv universal multi-cavity control. The qxperimrnhal sequence if shprn ih Fig. \[fig:fig4\](a), where a conditional $2\pj$ rotatpon on qubit $Q_3$ is sandwiched in between two paigs of phase-space dlsplacementw of rhe cavities. With help of the two zncillary qubits, joint Wigner tumogrcphy of the tqo fdvities is 'erforied and two slice cuds of tne measured twp-move Wugner function are shmwn in Figs. \[fig:fig4\](b-s). The denvicy matrices of ${\ensurenarh{\lefj|\Phi_{+}\rhght\fqngue}}$ znv ${\ehsuremwth{\meft|\Phi_{-}\riggt\rangle}}$, rexonstructed by mappond the state of the tro cavities to qubits $Q_1$ and $Q_2$ and then jopntlg measuring the state od these qubits \[as in jhe tomogrwphy measurement of Fig. \[fig:fig3\](b)\], are displayed in Fhgs. \[fij:fkg4\](d-t), qith rrahe fidelities of 0.957 and 0.930, respectively.

One distinsf gesture of our gcte dynamics is yhwt yt is compaticle wicg srror correction sfhemes. Sor ligic qubius whpse basis states are encodee in even can stqtes, the photon-numyer parity ccn be osed ax an error syndrome of che sihgle-photon poss [@LeghtzrPRL2013; @Mirrahimi2014; @Owek2016]. Whth this encoding, each of ehe two-quuit lpgic baris xtates is composfd of four two-mode coherfnt sjate cmmponents, wnd a CZ gate can be realized bb subsequentli parfmrming fjur cpnditional phwse operations. Each o'eratiun inverts the phese of one os the four cokkonents formiig a specyfic loguc basir state, and can be realideb by sandqiching a qubit $2\pi$ rojafion conditionao ob the cavities’ facjum snatx betraen two pairv of phxxe-spaze displacendnts of the cavities. For anofher kind of error-vovrectable logic qtbits binomiakly encoded as $\{{\enskremavh{\left|0\cight\rsngje}}_L=({\ensuremath{\left|0\right\rangle}}+{\enauremath{\lfft|4\vight\rangle}})/\sqwt{2}, {\eksurgmath{\left|1\riyht\rangle}}_L=~{\ensuremath{\left|2
approach is an extension of the previously operation universal control one cavity [@Krastanov2015; combined the single-cavity SNAP our method can used to realize arbitrary universal multi-cavity The experimental sequence is shown in Fig. \[fig:fig4\](a), where a conditional $2\pi$ rotation qubit $Q_3$ is sandwiched in between two pairs of phase-space displacements of the With of two qubits, joint Wigner tomography of the two cavities is performed and two slice cuts of the two-mode Wigner function are shown in Figs. \[fig:fig4\](b-c). density matrices of ${\ensuremath{\left|\Phi_{+}\right\rangle}}$ ${\ensuremath{\left|\Phi_{-}\right\rangle}}$, reconstructed by mapping the of two cavities qubits and and then jointly the state of these qubits \[as in the tomography measurement of Fig. \[fig:fig3\](b)\], are displayed in Figs. with state 0.957 and respectively. distinct of our gate that it is compatible with error logic qubits whose basis states are encoded in cat states, photon-number parity can be used as error syndrome of the single-photon loss [@LeghtasPRL2013; @Mirrahimi2014; With this encoding, each of the two-qubit logic basis states is composed of four two-mode components, and a CZ can be realized subsequently four phase Each operation the phase of one of the four components forming a specific basis state, and can be realized by sandwiching a qubit conditional the cavities’ vacuum between two pairs of displacements the cavities. For another error-correctable qubits $\{{\ensuremath{\left|0\right\rangle}}_L=({\ensuremath{\left|0\right\rangle}}+{\ensuremath{\left|4\right\rangle}})/\sqrt{2},
 approach is an extension of thE previouslY repoRteD SNaP OperAtioN for universal cONtroL of one cavity [@Krastanov2015; @HEeres2015] To TWo caVItIes. WhEn combiNEd WITh tHe SiNglE-cAViTy SNAp gaTes, our mEthod can be UseD tO realize arbiTRaRy universaL muLti-cavity conTroL. The exPeRimENtal sEquEnce iS shown IN Fig. \[fiG:fig4\](a), wherE a COnditiONal $2\pi$ roTATiOn on Qubit $Q_3$ is sandwicheD In BEtween two pairs Of phasE-sPAcE DIspLacEments of thE cAvitiES. With heLP oF THE twO Ancillary qubiTs, joint WignER toMograpHy Of tHE two caVitieS iS PerFormed and twO sliCe cuts of tHe measURed two-mODe WigneR functIon Are ShowN In fiGs. \[fIg:FIg4\](b-C). thE deNSitY matriceS oF ${\eNsureMath{\LEFT|\phi_{+}\rIghT\ranGle}}$ anD ${\ensuremath{\leFt|\PHi_{-}\riGHt\rAngle}}$, ReconStruCtEd by mApping The stAtE of the two cavitiEs to Qubits $Q_1$ anD $Q_2$ aNd TheN jOintlY MeasurIng The State of These quBIts \[As IN THe Tomography measuremEnT OF FIg. \[fig:fig3\](B)\], are diSPlAyED in Figs. \[fIg:Fig4\](D-e), wiTH State FideLItIes of 0.957 and 0.930, RespecTIvElY.

One disTiNct feaTuRe oF ouR gate DYnamIcs is tHat it is cOmpatIBle with error coRRection schemeS. foR LOgIC qubIts Whose basis sTateS Are eNcodED iN evEN cat sTates, ThE PhOTon-number parity can bE uSed as aN erroR syndrome of thE single-phoTON Loss [@LeghTasPrl2013; @MIRrahimi2014; @Ofek2016]. WitH this Encoding, eaCH of the twO-qubiT logic baSis states IS Composed Of fOur Two-ModE COhErent state comPONentS, aNd a CZ gaTe cAn be reaLizEd bY suBseQuEntly perfOrming foUr CoNdItIonAl phaSE operatiOnS. EaCh OpeRatioN InvertS the pHase Of OnE Of tHe four cOMpONEnts FoRmIng a SpeCiFic loGic bASis State, anD can be reaLizED by sAnDwIching a Qubit $2\pi$ rotatiOn ConditionaL oN thE cavitIES’ vacuum sTate between two pairs of phASe-space DisPlaceMentS of the cavItiEs. For aNotHEr kind Of erroR-corrEcTabLE Logic QUBiTs bInOmially encODEd aS $\{{\ensuReMath{\Left|0\rigHt\rangle}}_L=({\ensurematH{\LefT|0\right\rangle}}+{\eNsuRemaTH{\LeFt|4\rIGhT\RanGlE}})/\SqrT{2}, {\ENsuremath{\left|1\riGht\rangle}}_L=~{\EnSUrEmath{\left|2
 approach is an extensionof the pre vious lyrep or tedSNAP  operation for univ ersal control of one c avity  [ @ Kras t an ov201 5; @Hee r es 2 0 15]  t otwo  c a vi ties.  Wh en comb ined withthe  s ingle-cavity SN AP gates,our  method canbeused t orea l ize a rbi trary  unive r sal mu lti-cavit yc ontrol .  The ex p e ri ment al sequence is sh o wn in Fig. \[fig: fig4\] (a ) ,w h ere  aconditiona l$2\pi $  rotati o no n qub i t $Q_3$ is sa ndwiched in bet ween t wo  pa i rs ofphase -s p ace  displaceme ntsof the ca vities .  With h e lp of t he two  an cil lary qu bi ts,  j o int Wi gne r  to mography  o fthe t wo c a v i t iesisperf ormed  and two slic e c utso f t he me asure d tw o- modeWigner  func ti on are shown in  Fig s. \[fig: fig 4\ ](b -c ). Th e  densi tymat rices o f ${\en s ure ma t h { \l eft|\Phi_{+}\right \r a n gl e}}$ and  ${\en s ur em a th{\left |\ Phi _{-} \ r ight\ rang l e} }$, reco nstruc t ed  b y mappi ng  the s ta teofthe t w o ca vities  to qubi ts $Q _ 1$ and $Q_2$ a n d then jointl y  m e a su r ingthe  state of t hese qubi ts \ [ as  in the t omogr ap h ym easurement of Fig.\[ fig:fi g3\]( b)\], are dis played inF i g s. \[fig :fig 4 \] ( d-e), with sta te fi delities o f  0.957 a nd 0. 930, res pectively . 
One dis tin ctfea tur e of  our gate dyn a m icsis  that i t i s compa tib lewit h e rr or correc tion sch em es .Fo r l ogicq ubits wh os e b as isstate s  are e ncode d in  e ve n  ca t state s ,t h e ph ot on -num ber  p arity  can beused as  an error  sy n drom eof  the si ngle-photon l os s [@Leghta sP RL2 013; @ M i rrahimi2 014; @Ofek2016]. With t h is enco din g, ea ch o f the two -qu bit lo gic basisstates  is c om pos e d  of f o u rtwo -m ode cohere n t  st ate c om pone nts, an d a CZ gate can be rea lized by subs equ entl y pe rfo r mi n g f ou r  co n d itional phase o perations.  E a ch  operation inv er ts thephase o f one of thefour comp onents fo rm inga spe cific logi c basisstate, an d  canb ereali zed  by sa nd wic hinga qubi t  $2 \pi$rotati on  condi tiona lon the c avities’ vacuum state b etween  twopai rs of pha se- s pac e displac emen ts of thecav iti es. F ora nothe r ki n dofe rror- corr e ctable lo g ic  qu b i ts  binomially e n cod ed as  $\ { {\ensu rema th{\left|0\right\ r angle}}_L=({\e nsur e m ath {\l e ft|0 \r ight\rangle}}+ {\e ns u r emath{\l ef t|4\right\r angle}}) /\ s qrt{2 }, {\e nsurem ath{\le f t |1 \ right\ rang le} }_L=~{\en sur em a th{\lef t| 2
 approach_is an_extension of the previously_reported SNAP_operation_for universal_control_of one cavity [@Krastanov2015;_@Heeres2015] to two_cavities. When combined with_the single-cavity SNAP_gates,_our method can be used to realize arbitrary universal multi-cavity control. The experimental sequence_is_shown in_Fig. \[fig:fig4\](a),_where_a conditional $2\pi$ rotation on_qubit $Q_3$ is sandwiched in_between two_pairs of phase-space displacements of the cavities. With_help_of the two_ancillary qubits, joint Wigner tomography of the two cavities_is performed and two slice cuts_of the measured_two-mode_Wigner_function are shown in_Figs. \[fig:fig4\](b-c). The density matrices of ${\ensuremath{\left|\Phi_{+}\right\rangle}}$_and ${\ensuremath{\left|\Phi_{-}\right\rangle}}$, reconstructed by mapping the_state of the two cavities to qubits_$Q_1$ and $Q_2$ and then jointly_measuring the state of these_qubits \[as_in the tomography measurement of_Fig. \[fig:fig3\](b)\], are displayed_in Figs. \[fig:fig4\](d-e),_with state fidelities_of 0.957 and 0.930, respectively.

One distinct_feature of our_gate dynamics is that it is_compatible_with error correction_schemes._For_logic qubits_whose basis states_are_encoded in_even_cat states, the photon-number parity can_be_used as an error syndrome of the_single-photon loss [@LeghtasPRL2013; @Mirrahimi2014; @Ofek2016]._With_this encoding, each of_the two-qubit logic basis states_is composed of four two-mode coherent_state components,_and a_CZ gate can be realized by subsequently performing four conditional phase_operations. Each operation inverts the phase_of one of the_four components_forming_a specific logic_basis_state, and_can be realized by sandwiching a qubit_$2\pi$ rotation_conditional on the cavities’ vacuum state_between two pairs of_phase-space_displacements of the cavities. For another_kind of error-correctable logic qubits binomially_encoded as $\{{\ensuremath{\left|0\right\rangle}}_L=({\ensuremath{\left|0\right\rangle}}+{\ensuremath{\left|4\right\rangle}})/\sqrt{2}, {\ensuremath{\left|1\right\rangle}}_L=~{\ensuremath{\left|2