phi_2\rangle_{AB}\!\!&=&\!\!\left[\beta(|HH\rangle+|VV\rangle)
+\sqrt{|\alpha|^2-|\beta|^2}|V'H\rangle\right]_{AB}
\nonumber\\
&&\otimes\gamma(|a_1b_1\rangle+|a_2b_2\rangle)+(\alpha|HH\rangle+\beta|VV\rangle)_{AB}
\nonumber\\
&&\otimes\sqrt{|\delta|^2-|\gamma|^2}\,|a_3b_2\rangle,\end{aligned}$$ where $\vert V'\rangle$ represents the vertical polarization of photon $A$ after an operation $R_\theta$. The wave plate $R_\theta$ is used to perform a rotate operation $\vert H\rangle\rightarrow {\rm cos}\theta
\vert H\rangle +  {\rm sin}\theta \vert V\rangle$ on the horizontal polarization $\vert H\rangle$.

Finally, Alice lets two spatial modes $a_1$ and $a_2$ pass through PBS$_3$, PBS$_4$, DL, PBS$_5$ and PBS$_6$, and the state of the photon pair $AB$ is transformed from $|\phi_2\rangle_{AB}$ to $|\phi_3\rangle_{AB}$. Here $$\begin{aligned}
                            % Eq.(5)    %  Eq. 26
|\phi_3\rangle_{AB}\!&=&\!\beta\gamma(|HH\rangle+|VV\rangle)_{AB}(|a_1b_1\rangle
+|a_2b_2\rangle)
\nonumber\\
\!&&+\gamma\sqrt{|\alpha|^2-|\beta|^2}|VH\rangle_{AB}(|a'_1b_1\rangle
+|a'_2b_2\rangle)
\nonumber\\
\!&&+\sqrt{|\delta|^2-|\gamma|^2}(\alpha|HH\rangle
+\beta|VV\rangle)_{AB}|a_3b_2\rangle.\nonumber\\
\label{HBSoutcome}\end{aligned}$$ If photon $A$ is not detected in one of the spatial modes $a'_1$ and $a'_2$, the polarization state of the photon pair $AB$ is transformed into a maximally entangled Bell state. That is, the maximally hyperentangled Bell state $|\phi\rangle_{AB}$ is
phi_2\rangle_{AB}\!\!&=&\!\!\left[\beta(|HH\rangle+|VV\rangle) 
 + \sqrt{|\alpha|^2-|\beta|^2}|V'H\rangle\right]_{AB } 
 \nonumber\\ 
 & & \otimes\gamma(|a_1b_1\rangle+|a_2b_2\rangle)+(\alpha|HH\rangle+\beta|VV\rangle)_{AB } 
 \nonumber\\ 
 & & \otimes\sqrt{|\delta|^2-|\gamma|^2}\,|a_3b_2\rangle,\end{aligned}$$ where $ \vert V'\rangle$ represents the vertical polarization of photon $ A$ after an operation $ R_\theta$. The wave plate $ R_\theta$ is use to do a rotate operation $ \vert H\rangle\rightarrow { \rm cos}\theta 
 \vert H\rangle +   { \rm sin}\theta \vert V\rangle$ on the horizontal polarization $ \vert H\rangle$. 

 Finally, Alice permit two spatial mode $ a_1 $ and $ a_2 $ pass through PBS$_3 $, PBS$_4 $, DL, PBS$_5 $ and PBS$_6 $, and the state of the photon couple $ AB$ is transformed from $ |\phi_2\rangle_{AB}$ to $ |\phi_3\rangle_{AB}$. Here $ $ \begin{aligned } 
                            % Eq.(5)    %   Eq. 26 
 |\phi_3\rangle_{AB}\!&=&\!\beta\gamma(|HH\rangle+|VV\rangle)_{AB}(|a_1b_1\rangle 
 + |a_2b_2\rangle) 
 \nonumber\\ 
 \!&&+\gamma\sqrt{|\alpha|^2-|\beta|^2}|VH\rangle_{AB}(|a'_1b_1\rangle 
 + |a'_2b_2\rangle) 
 \nonumber\\ 
 \!&&+\sqrt{|\delta|^2-|\gamma|^2}(\alpha|HH\rangle 
 + \beta|VV\rangle)_{AB}|a_3b_2\rangle.\nonumber\\ 
 \label{HBSoutcome}\end{aligned}$$ If photon $ A$ is not detected in one of the spatial modes $ a'_1 $ and $ a'_2 $, the polarization state of the photon couple $ AB$ is transform into a maximally entangled Bell department of state. That is, the maximally hyperentangled Bell state $ |\phi\rangle_{AB}$ is
phi_2\gangle_{AB}\!\!&=&\!\!\left[\beta(|HH\rangle+|YV\rangle)
+\sqrt{|\alphc|^2-|\veta|^2}|V'H\cangle\rjght]_{AB}
\novumber\\
&&\otimes\gamma(|a_1b_1\rangle+|a_2b_2\renglw)+(\alphq|HH\rangle+\beta|VV\rangle)_{AC}
\nonumber\\
&&\ltimes\sqet{|\deora|^2-|\gamma|^2}\,|a_3b_2\rehgle,\end{alignes}$$ whexe $\vert V'\rangle$ tepresents tve vertical ponafivation of photon $A$ after an operatiog $R_\thets$. Hhe wave plate $R_\thtta$ is hsed to perform a rotate operation $\vert H\gangle\rightarrow {\tm cos}\theta
\vert H\rangle +  {\gm sln}\theta \vert V\rangpe$ on the hirizjbtal polarizxtion $\vert H\rangle$.

Finamly, Alice lets two spatial moder $a_1$ aud $a_2$ pass tyriugj PBS$_3$, PBS$_4$, DL, PBS$_5$ wnd PBS$_6$, and bne stade of tne photon pair $AB$ is transformed from $|\phi_2\cangle_{AB}$ to $|\phi_3\ranglg_{AB}$. Here $$\bagnn{aligned}
                            % Eq.(5)    %  Es. 26
|\phi_3\rwngme_{AB}\!&=&\!\beta\gajma(|HH\rangle+|CV\rangle)_{AB}(|a_1b_1\rangle
+|a_2n_2\rwbgle)
\nonumber\\
\!&&+\gzmma\sqwt{|\wlpha|^2-|\beta|^2}|VH\rangle_{AB}(|a'_1b_1\rangle
+|a'_2b_2\rangle)
\nonukbed\\
\!&&+\sqrt{|\delta|^2-|\gamma|^2}(\alpha|HH\rqngle
+\beta|VV\rangle)_{AB}|a_3b_2\tangle.\nonuiber\\
\label{HBSoutcome}\end{aligned}$$ If photon $A$ is not getecvea iu one ud hhe spatial modes $a'_1$ and $a'_2$, the polarization stwfe on the photon paiv $AB$ is transformec lnyj a maximally entanymes Bell state. That ls, the iaximqlly hypewentsngled Bell state $|\phi\rangle_{QB}$ is
phi_2\rangle_{AB}\!\!&=&\!\!\left[\beta(|HH\rangle+|VV\rangle) +\sqrt{|\alpha|^2-|\beta|^2}|V'H\rangle\right]_{AB} \nonumber\\ &&\otimes\gamma(|a_1b_1\rangle+|a_2b_2\rangle)+(\alpha|HH\rangle+\beta|VV\rangle)_{AB} \nonumber\\ &&\otimes\sqrt{|\delta|^2-|\gamma|^2}\,|a_3b_2\rangle,\end{aligned}$$ where represents vertical polarization photon $A$ after plate is used to a rotate operation H\rangle\rightarrow {\rm cos}\theta \vert H\rangle + sin}\theta \vert V\rangle$ on the horizontal polarization $\vert H\rangle$. Finally, Alice lets two modes $a_1$ and $a_2$ pass through PBS$_3$, PBS$_4$, DL, PBS$_5$ and PBS$_6$, and state the pair is transformed from $|\phi_2\rangle_{AB}$ to $|\phi_3\rangle_{AB}$. Here $$\begin{aligned} % Eq.(5) % Eq. 26 |\phi_3\rangle_{AB}\!&=&\!\beta\gamma(|HH\rangle+|VV\rangle)_{AB}(|a_1b_1\rangle +|a_2b_2\rangle) \nonumber\\ +|a'_2b_2\rangle) \nonumber\\ \!&&+\sqrt{|\delta|^2-|\gamma|^2}(\alpha|HH\rangle +\beta|VV\rangle)_{AB}|a_3b_2\rangle.\nonumber\\ \label{HBSoutcome}\end{aligned}$$ If photon $A$ not detected in one the spatial modes $a'_1$ and the state of photon $AB$ transformed into a entangled Bell state. That is, the maximally hyperentangled Bell state $|\phi\rangle_{AB}$ is
phi_2\rangle_{AB}\!\!&=&\!\!\left[\beta(|HH\rangLe+|VV\rangle)
+\Sqrt{|\aLphA|^2-|\beTa|^2}|v'H\raNgle\Right]_{AB}
\nonumbeR\\
&&\OtimEs\gamma(|a_1b_1\rangle+|a_2b_2\ranglE)+(\alphA|Hh\RangLE+\bEta|VV\Rangle)_{Ab}
\NoNUMbeR\\
&&\oTiMes\SqRT{|\dElta|^2-|\gAmmA|^2}\,|a_3b_2\rangLe,\end{alignEd}$$ wHeRe $\vert V'\ranglE$ RePresents thE veRtical polariZatIon of pHoTon $a$ After An oPeratIon $R_\thETa$. The wAve plate $R_\ThETa$ is usED to perfORM a RotaTe operation $\vert H\rANgLE\rightarrow {\rm cOs}\thetA
\vERt h\RAngLe +  {\rM sin}\theta \vErT V\ranGLe$ on the HOrIZONtaL Polarization $\vErt H\rangle$.

FINalLy, AlicE lEts TWo spatIal moDeS $A_1$ anD $a_2$ pass throuGh PBs$_3$, PBS$_4$, DL, PBS$_5$ And PBS$_6$, ANd the stATe of the Photon PaiR $AB$ Is trANsFoRmeD fROm $|\pHI_2\rAngLE_{AB}$ To $|\phi_3\ranGlE_{Ab}$. Here $$\BegiN{ALIGned}
                            % eq.(5)    %  EQ. 26
|\phi_3\RanglE_{AB}\!&=&\!\beta\gamma(|Hh\raNgle+|vv\raNgle)_{Ab}(|a_1b_1\raNgle
+|A_2b_2\RanglE)
\nonumBer\\
\!&&+\gaMmA\sqrt{|\alpha|^2-|\beta|^2}|Vh\ranGle_{AB}(|a'_1b_1\raNglE
+|a'_2B_2\raNgLe)
\nonUMber\\
\!&&+\sqRt{|\dEltA|^2-|\gamma|^2}(\aLpha|HH\rANglE
+\bETA|vV\Rangle)_{AB}|a_3b_2\rangle.\noNuMBEr\\
\Label{HBSOutcomE}\EnD{aLIgned}$$ If pHoTon $a$ is nOT DetecTed iN OnE of the spAtial mODeS $a'_1$ And $a'_2$, the PoLarizaTiOn sTatE of thE PhotOn pair $aB$ is tranSformED into a maximallY Entangled Bell STaTE. thAT is, tHe mAximally hypErenTAnglEd BeLL sTatE $|\Phi\raNgle_{Ab}$ iS
phi_2\rangle_{AB}\!\!&=&\! \!\left[\b eta(| HH\ ran gl e+|V V\ra ngle)
+\sqrt{| \ alph a|^2-|\beta|^2}|V'H\ra ngle\ ri g ht]_ { AB }
\no number\ \ 
& & \ oti me s\ gam ma ( |a _1b_1 \ra ngle+|a _2b_2\rang le) +( \alpha|HH\ra n gl e+\beta|VV \ra ngle)_{AB}
\ non umber\ \&&\ o times \sq rt{|\ delta| ^ 2-|\ga mma|^2}\, |a _ 3b_2\r a ngle,\e n d {a lign ed}$$ where $\ver t  V ' \rangle$ repre sentsth e  v e r tic alpolarizati on  of p h oton $A $  a f t e r a n  operation $R _\theta$. T h e w ave pl at e $ R _\thet a$ is  u s edto performa ro tate oper ation$ \vert H \ rangle\ righta rro w { \rmc os }\ the ta \ve r tH\r a ngl e +  {\r msi n}\th eta\ v e r t V\ ran gle$  on t he horizontal  po lari z ati on $\ vertH\ra ng le$.
Final ly, A li ce lets two spa tial  modes $a _1$  a nd$a _2$ p a ss thr oug h P BS$_3$,  PBS$_4 $ , D L, P B S$ _5$ and PBS$_6$, a nd t he  state o f thep ho to n  pair $A B$  is  tra n s forme d fr o m$|\phi_2 \rangl e _{ AB }$ to $ |\ phi_3\ ra ngl e_{ AB}$. Here  $$\be gin{alig ned}                         % Eq . ( 5)    %   E q. 26
|\phi _3\r a ngle _{AB } \! &=& \ !\bet a\gam ma ( |H H \rangle+|VV\rangle) _{ AB}(|a _1b_1 \rangle
+|a_2 b_2\rangle ) \ nonumber \\
\ ! && + \gamma\sqrt{|\ alpha |^2-|\beta | ^2}|VH\r angle _{AB}(|a '_1b_1\ra n g le
+|a'_ 2b_ 2\r ang le) \ no number\\
\!&& + \ sqrt {| \delta| ^2- |\gamma |^2 }(\ alp ha| HH \rangle
+ \beta|VV \r an gl e) _{A B}|a_ 3 b_2\rang le .\n on umb er\\\ label{ HBSou tcom e} \e n d{a ligned} $ $I f  pho to n$A$isno t det ecte d  in  one of  the spat ial mode s$a '_1$ an d $a'_2$, the  p olarizatio nsta te oft h e photon  pair $AB$ is transform e d intoa m axima llyentangled  Be ll sta te. That i s, the  maxi ma lly h ypere n t an gle dBell state $ |\p hi\ra ng le_{ AB}$ is 
phi_2\rangle_{AB}\!\!&=&\!\!\left[\beta(|HH\rangle+|VV\rangle)
+\sqrt{|\alpha|^2-|\beta|^2}|V'H\rangle\right]_{AB}
\nonumber\\
&&\otimes\gamma(|a_1b_1\rangle+|a_2b_2\rangle)+(\alpha|HH\rangle+\beta|VV\rangle)_{AB}
\nonumber\\
&&\otimes\sqrt{|\delta|^2-|\gamma|^2}\,|a_3b_2\rangle,\end{aligned}$$ where_$\vert V'\rangle$_represents the vertical polarization_of photon_$A$_after an_operation_$R_\theta$. The wave_plate $R_\theta$ is_used to perform a_rotate operation $\vert_H\rangle\rightarrow_{\rm cos}\theta
\vert H\rangle +  {\rm sin}\theta \vert V\rangle$ on the horizontal polarization $\vert_H\rangle$.

Finally,_Alice lets_two_spatial_modes $a_1$ and $a_2$ pass_through PBS$_3$, PBS$_4$, DL, PBS$_5$_and PBS$_6$,_and the state of the photon pair $AB$_is_transformed from $|\phi_2\rangle_{AB}$_to $|\phi_3\rangle_{AB}$. Here $$\begin{aligned}
     _     _  ___   _     _ % Eq.(5)   _%  Eq. 26
|\phi_3\rangle_{AB}\!&=&\!\beta\gamma(|HH\rangle+|VV\rangle)_{AB}(|a_1b_1\rangle
+|a_2b_2\rangle)
\nonumber\\
\!&&+\gamma\sqrt{|\alpha|^2-|\beta|^2}|VH\rangle_{AB}(|a'_1b_1\rangle
+|a'_2b_2\rangle)
\nonumber\\
\!&&+\sqrt{|\delta|^2-|\gamma|^2}(\alpha|HH\rangle
+\beta|VV\rangle)_{AB}|a_3b_2\rangle.\nonumber\\
\label{HBSoutcome}\end{aligned}$$ If photon $A$_is not detected in one of_the spatial modes $a'_1$ and_$a'_2$, the_polarization state of the photon_pair $AB$ is_transformed into_a maximally entangled_Bell state. That is, the maximally_hyperentangled Bell state_$|\phi\rangle_{AB}$ is