}
V_{0} & -V_{1}\\
V_{1} & V_{0}
\end{array}
\right)=\mathbbm{1}_{2}{\otimes}V_{0}-i\sigma_{y}{\otimes}V_{1}.$$ The unitarity of $U_{\mathcal{A}}$ follows from the fact that operators $V_{0}$ and $V_{1}$ commute. Due to the practical reasons instead of unitary operation representing POVM $\{V_{0},V_{1}\}$ we shall consider $$\label{Udet}
U^{\mathrm{det}}(\mathcal{A},U'_{\mathcal{H}})=\left(\mathbbm{1}_{2}
{\otimes}U_{\mathcal{H}}'\right)U_{\mathcal{A}}\left(\mathbbm{1}_{2}{\otimes}U_{\mathcal{H}}'\right)^{\dagger},$$ where $\mathbbm{1}_{2}$ is an identity operator on the one-qubit Hilbert space $\mathbb{C}^{2}$ and $U_{\mathcal{H}}'$ is an arbitrary unitary operation that acts on ${\cal H}$ and simplifies the decomposition of $U_{\mathcal{A}}$ into elementary gates. Now if we define a mean value of measurement of $\sigma_{z}$ on the first qubit after action of the network (which sometimes may be called visibility): $$v_{\mathcal{A}}={\mathrm{Tr}}\left[ \left(\sigma_{z}\otimes
\mathbbm{1}_{\mathcal{H}}\right) \left(\mathbbm{1}_{2} \otimes
U_{\mathcal{H}}'\right) U_{\mathcal{A}} \mathcal{P}_{0}{\otimes}\sigma
U^{\dagger}_{\mathcal{A}}\left(\mathbbm{1}_{2} \otimes
U_{\mathcal{H}}'\right)^{\dagger}\right], \label{vis}$$ where $\mathcal{P}_{0}$ is a projector onto state ${|0\rangle}$, i.e., $\mathcal{P}_{0}={{|0\rangle}{\langle0|}}$, then we have an easy formula for the mean value of the initial observable $\mathcal{A}$: $$\label{meanA}
\langle \mathcal{A}\rangle_{\sigma}=a^{(+)}_{\mathcal{A}}p_{0}-
a^{(-)}_{\mathcal{A}}=a^{(+)}_{\mathcal{A}}\frac{v_{\mathcal{A}}+1}{2}-a^{(-)}_{\
} 
 V_{0 } & -V_{1}\\ 
 V_{1 } & V_{0 } 
 \end{array } 
 \right)=\mathbbm{1}_{2}{\otimes}V_{0}-i\sigma_{y}{\otimes}V_{1}.$$ The unitarity of $ U_{\mathcal{A}}$ follows from the fact that operators $ V_{0}$ and $ V_{1}$ commute. Due to the practical reasons instead of one process representing POVM $ \{V_{0},V_{1}\}$ we shall consider $ $ \label{Udet } 
 U^{\mathrm{det}}(\mathcal{A},U'_{\mathcal{H}})=\left(\mathbbm{1}_{2 } 
 { \otimes}U_{\mathcal{H}}'\right)U_{\mathcal{A}}\left(\mathbbm{1}_{2}{\otimes}U_{\mathcal{H}}'\right)^{\dagger},$$ where $ \mathbbm{1}_{2}$ is an identity hustler on the one - qubit Hilbert space $ \mathbb{C}^{2}$ and $ U_{\mathcal{H}}'$ is an arbitrary one operation that acts on $ { \cal H}$ and simplify the decomposition of $ U_{\mathcal{A}}$ into elementary gates. Now if we specify a mean value of measurement of $ \sigma_{z}$ on the first qubit after legal action of the network (which sometimes may be called visibility ): $ $ v_{\mathcal{A}}={\mathrm{Tr}}\left [ \left(\sigma_{z}\otimes 
 \mathbbm{1}_{\mathcal{H}}\right) \left(\mathbbm{1}_{2 } \otimes 
 U_{\mathcal{H}}'\right) U_{\mathcal{A } } \mathcal{P}_{0}{\otimes}\sigma 
 U^{\dagger}_{\mathcal{A}}\left(\mathbbm{1}_{2 } \otimes 
 U_{\mathcal{H}}'\right)^{\dagger}\right ], \label{vis}$$ where $ \mathcal{P}_{0}$ is a projector onto department of state $ { |0\rangle}$, i.e., $ \mathcal{P}_{0}={{|0\rangle}{\langle0|}}$, then we have an easy formula for the mean value of the initial observable $ \mathcal{A}$: $ $ \label{meanA } 
 \langle \mathcal{A}\rangle_{\sigma}=a^{(+)}_{\mathcal{A}}p_{0}- 
 a^{(-)}_{\mathcal{A}}=a^{(+)}_{\mathcal{A}}\frac{v_{\mathcal{A}}+1}{2}-a^{(-)}_{\
}
V_{0} & -G_{1}\\
V_{1} & V_{0}
\end{array}
\right)=\mathbbo{1}_{2}{\otimes}V_{0}-i\sigma_{y}{\otimes}V_{1}.$$ The uhitarity of $U_{\mathcal{A}}$ follows from tie fqct tyat operators $V_{0}$ and $V_{1}$ zommute. Dle to the prartical reasons iiatead on unifwry m'eration represgnting POVM $\{E_{0},V_{1}\}$ we shall cotskdzr $$\label{Udet}
U^{\mathrm{det}}(\mathcal{A},U'_{\mathcwl{H}})=\left(\kahhbbm{1}_{2}
{\otimes}U_{\majhcal{N}}'\wighf)L_{\mcthcal{A}}\left(\mathbbm{1}_{2}{\otimes}U_{\mathcam{H}}'\right)^{\vagger},$$ where $\mayhbbm{1}_{2}$ is an identity operahor ln the one-qubit Hipbert space $\matrvb{C}^{2}$ and $U_{\matfcal{H}}'$ is an arbitrary onitary operation that acts on ${\cxl H}$ cnd simplifuew tjg decompositmon of $U_{\mathcal{A}}$ ikno elemantary bates. Now if wc defmne q mean value of measucement of $\sigma_{z}$ on jhe first xuyit after action of tye netwmrk (fhicf sooetjmxs jay be camled visibjlity): $$v_{\mathxal{A}}={\mathrm{Tr}}\left[ \legt(\fpbma_{z}\otimes
\mafhbbm{1}_{\mwtrcal{H}}\right) \left(\mathbbm{1}_{2} \otimes
U_{\mathcal{H}}'\rpght) U_{\mathcal{A}} \mathcal{P}_{0}{\otimws}\sigma
U^{\dagger}_{\mathcal{W}}\left(\mathfbm{1}_{2} \otimes
U_{\mathcal{H}}'\right)^{\dagger}\right], \label{vis}$$ whera $\maticxl{P}_{0}$ if q orojector onto state ${|0\rangle}$, i.e., $\mathcal{P}_{0}={{|0\rangle}{\jznblv0|}}$, then we have an easy formuka fpt the mean valoe of tks jnitial observable $\mathcaj{A}$: $$\lavel{meanA}
\lwnglr \mathcal{A}\rangle_{\sigma}=a^{(+)}_{\mathcql{A}}p_{0}-
a^{(-)}_{\mathcal{C}}=a^{(+)}_{\mqthcal{A}}\frac{v_{\mathcap{A}}+1}{2}-a^{(-)}_{\
} V_{0} & -V_{1}\\ V_{1} & V_{0} The of $U_{\mathcal{A}}$ from the fact commute. to the practical instead of unitary representing POVM $\{V_{0},V_{1}\}$ we shall consider U^{\mathrm{det}}(\mathcal{A},U'_{\mathcal{H}})=\left(\mathbbm{1}_{2} {\otimes}U_{\mathcal{H}}'\right)U_{\mathcal{A}}\left(\mathbbm{1}_{2}{\otimes}U_{\mathcal{H}}'\right)^{\dagger},$$ where $\mathbbm{1}_{2}$ is an identity operator on the one-qubit Hilbert space and $U_{\mathcal{H}}'$ is an arbitrary unitary operation that acts on ${\cal H}$ and the of into gates. Now if we define a mean value of measurement of $\sigma_{z}$ on the first qubit action of the network (which sometimes may be visibility): $$v_{\mathcal{A}}={\mathrm{Tr}}\left[ \left(\sigma_{z}\otimes \mathbbm{1}_{\mathcal{H}}\right) \otimes U_{\mathcal{H}}'\right) U_{\mathcal{A}} \mathcal{P}_{0}{\otimes}\sigma U^{\dagger}_{\mathcal{A}}\left(\mathbbm{1}_{2} U_{\mathcal{H}}'\right)^{\dagger}\right], where $\mathcal{P}_{0}$ a onto ${|0\rangle}$, i.e., $\mathcal{P}_{0}={{|0\rangle}{\langle0|}}$, we have an easy formula for the mean value of the initial observable $\mathcal{A}$: $$\label{meanA} \langle \mathcal{A}\rangle_{\sigma}=a^{(+)}_{\mathcal{A}}p_{0}-
}
V_{0} & -V_{1}\\
V_{1} & V_{0}
\end{array}
\right)=\mathbbm{1}_{2}{\oTimes}V_{0}-i\sigMa_{y}{\otImeS}V_{1}.$$ THe UnitAritY of $U_{\mathcal{A}}$ foLLows From the fact that operatoRs $V_{0}$ anD $V_{1}$ COmmuTE. DUe to tHe practICaL REasOnS iNstEaD Of UnitaRy oPeratioN representIng pOvM $\{V_{0},V_{1}\}$ we shall cONsIder $$\label{UDet}
u^{\mathrm{det}}(\maThcAl{A},U'_{\maThCal{h}})=\Left(\mAthBbm{1}_{2}
{\otImes}U_{\mAThcal{H}}'\Right)U_{\matHcAL{A}}\left(\MAthbbm{1}_{2}{\oTIMeS}U_{\maThcal{H}}'\right)^{\dagger},$$ WHeRE $\mathbbm{1}_{2}$ is an idEntity OpERaTOR on The One-qubit HiLbErt spACe $\mathbB{c}^{2}$ aND $u_{\MatHCal{H}}'$ is an arbitRary unitary OPerAtion tHaT acTS on ${\cal h}$ and sImPLifIes the decomPosiTion of $U_{\maThcal{A}}$ INto elemENtary gaTes. Now If wE deFine A MeAn ValUe OF meASuRemENt oF $\sigma_{z}$ oN tHe First QubiT AFTEr acTioN of tHe netWork (which someTimEs maY Be cAlled VisibIlitY): $$v_{\MathcAl{A}}={\matHrm{Tr}}\LeFt[ \left(\sigma_{z}\otiMes
\mAthbbm{1}_{\matHcaL{H}}\RigHt) \Left(\mAThbbm{1}_{2} \oTimEs
U_{\Mathcal{h}}'\right) U_{\MAthCaL{a}} \MAtHcal{P}_{0}{\otimes}\sigma
U^{\dAgGER}_{\mAthcal{A}}\lEft(\matHBbM{1}_{2} \oTImes
U_{\matHcAl{H}}'\RighT)^{\DAgger}\RighT], \LaBel{vis}$$ whEre $\matHCaL{P}_{0}$ Is a projEcTor ontO sTatE ${|0\raNgle}$, i.E., $\MathCal{P}_{0}={{|0\raNgle}{\langLe0|}}$, theN We have an easy foRMula for the meaN VaLUE oF The iNitIal observabLe $\maTHcal{a}$: $$\labEL{mEana}
\LanglE \mathCaL{a}\rANgle_{\sigma}=a^{(+)}_{\mathcal{A}}p_{0}-
A^{(-)}_{\mAthcal{a}}=a^{(+)}_{\matHcal{A}}\frac{v_{\matHcal{A}}+1}{2}-a^{(-)}_{\
}
V_{0} & -V_{1}\\
V_{1} &  V_{0}
\en d{arr ay} 
\r ig ht)= \mat hbbm{1}_{2}{\o t imes }V_{0}-i\sigma_{y}{\ot imes} V_ { 1}.$ $  T he un itarity of $ U_{ \m at hca l{ A }} $ fol low s fromthe fact t hat  o perators $V_ { 0} $ and $V_{ 1}$  commute. Du e t o thepr act i cal r eas ons i nstead of uni tary oper at i on rep r esentin g PO VM $ \{V_{0},V_{1}\}$w es hall consider$$\lab el { Ud e t }
U ^{\ mathrm{det }} (\mat h cal{A}, U '_ { \ m ath c al{H}})=\left (\mathbbm{1 } _{2 }
{\ot im es} U _{\mat hcal{ H} } '\r ight)U_{\ma thca l{A}}\lef t(\mat h bbm{1}_ { 2}{\oti mes}U_ {\m ath cal{ H }} '\ rig ht ) ^{\ d ag ger } ,$$  where $ \m at hbbm{ 1}_{ 2 } $ is a n i dent ity o perator on th e o ne-q u bit  Hilb ert s pace  $ \math bb{C}^ {2}$an d $U_{\mathcal{ H}}' $ is an a rbi tr ary  u nitar y  opera tio n t hat act s on ${ \ cal  H } $ an d simplifies the d ec o m po sition o f $U_{ \ ma th c al{A}}$in toelem e n tarygate s .Now if w e defi n eamean va lu e of m ea sur eme nt of $\si gma_{z }$ on th e fir s t qubit aftera ction of then et w o rk (whi chsometimes m ay b e  cal ledv is ibi l ity):  $$v_ {\ m at h cal{A}}={\mathrm{Tr }} \left[  \lef t(\sigma_{z}\ otimes
\ma t h b bm{1}_{\ math c al { H}}\right) \le ft(\m athbbm{1}_ { 2} \otim es
U_ {\mathca l{H}}'\ri g h t) U_{\m ath cal {A} } \ m a th cal{P}_{0}{\o t i mes} \s igma
U^ {\d agger}_ {\m ath cal {A} }\ left(\mat hbbm{1}_ {2 }\o ti mes 
U_{\ m athcal{H }} '\r ig ht) ^{\da g ger}\r ight] , \l ab el { vis }$$ whe r e$ \ math ca l{ P}_{ 0}$  i s a p roje c tor  onto s tate ${|0 \ra n gle} $,  i .e., $\ mathcal{P}_{0 }= {{|0\rangl e} {\l angle0 | } }$, then  we have an easy formul a  for th e m ean v alue  of the i nit ial ob ser v able $ \mathc al{A} $:  $$ \ l abel{ m e an A}\l angle \mat h c al{ A}\ra ng le_{ \sigma} =a^{(+)}_{\mathcal { A}} p_{0}-
a^{(-) }_{ \mat h c al {A} } =a ^ {(+ )} _ {\m a t hcal{A}}\frac{v _{\mathcal {A } }+ 1}{2}-a^{( - )}_ {\ 
}
V_{0} &_-V_{1}\\
V_{1} &_V_{0}
\end{array}
\right)=\mathbbm{1}_{2}{\otimes}V_{0}-i\sigma_{y}{\otimes}V_{1}.$$ The unitarity of_$U_{\mathcal{A}}$ follows_from_the fact_that_operators $V_{0}$ and_$V_{1}$ commute. Due_to the practical reasons_instead of unitary_operation_representing POVM $\{V_{0},V_{1}\}$ we shall consider $$\label{Udet}
U^{\mathrm{det}}(\mathcal{A},U'_{\mathcal{H}})=\left(\mathbbm{1}_{2}
{\otimes}U_{\mathcal{H}}'\right)U_{\mathcal{A}}\left(\mathbbm{1}_{2}{\otimes}U_{\mathcal{H}}'\right)^{\dagger},$$ where $\mathbbm{1}_{2}$ is an identity operator on_the_one-qubit Hilbert_space_$\mathbb{C}^{2}$_and $U_{\mathcal{H}}'$ is an arbitrary_unitary operation that acts on_${\cal H}$_and simplifies the decomposition of $U_{\mathcal{A}}$ into elementary_gates._Now if we_define a mean value of measurement of $\sigma_{z}$ on_the first qubit after action of_the network (which_sometimes_may_be called visibility): $$v_{\mathcal{A}}={\mathrm{Tr}}\left[_\left(\sigma_{z}\otimes
\mathbbm{1}_{\mathcal{H}}\right) \left(\mathbbm{1}_{2} \otimes
U_{\mathcal{H}}'\right) U_{\mathcal{A}} \mathcal{P}_{0}{\otimes}\sigma
U^{\dagger}_{\mathcal{A}}\left(\mathbbm{1}_{2} \otimes
U_{\mathcal{H}}'\right)^{\dagger}\right],_\label{vis}$$ where $\mathcal{P}_{0}$ is a projector_onto state ${|0\rangle}$, i.e., $\mathcal{P}_{0}={{|0\rangle}{\langle0|}}$, then we_have an easy formula for the_mean value of the initial_observable $\mathcal{A}$:_$$\label{meanA}
\langle \mathcal{A}\rangle_{\sigma}=a^{(+)}_{\mathcal{A}}p_{0}-
a^{(-)}_{\mathcal{A}}=a^{(+)}_{\mathcal{A}}\frac{v_{\mathcal{A}}+1}{2}-a^{(-)}_{\