Let's say I have two unitary operations $U_1$ and $U_2$, which together give a rotation of the following form:
$$ U_1\cdot U_2 = \begin{pmatrix} e^{i\varphi} & 0 \\ 0&e^{-i\varphi} \end{pmatrix} $$
Now I want to insert a 3rd unitary matrix of the form $U_3=\begin{pmatrix} e^{i\varphi_1} & 0 \\ 0&e^{-i\varphi_1} \end{pmatrix}$ between them and chose $\varphi_1$, such that:
$$U_1 U_3 U_2 = \begin{pmatrix} 1 & 0 \\ 0 & 1 \\ \end{pmatrix}$$
I think this should not be possible, because just between these two matrices, the reference frame in which $\varphi_1$ acts might be completely different than whatever is the reference frame behind the two unitaries. What do you think?