I have the following complex vector in $\mathbb{C}^2$:
Vec= [[ 0.89741876+0.j] [-0.33540402+0.28660724j]]
I'm trying to implement a $U_3$ gate to prepare this state. The general $U_3$ gate is defined as
$$
U_3(\gamma,\beta,\delta) =
\begin{bmatrix}
\cos\left(\frac{\gamma}{2}\right) & -e^{i\delta} \sin\left(\frac{\gamma}{2}\right) \\
e^{i\beta} \sin\left(\frac{\gamma}{2}\right) & e^{i(\delta + \beta)} \cos\left(\frac{\gamma}{2}\right)
\end{bmatrix}\\
$$
To solve for the parameters, I have
$$
\cos\left(\frac{\gamma'}{2}\right) = g_0\qquad e^{i\beta'}\sin\left(\frac{\gamma'}{2}\right) = g_1
$$
Where $g_0$ is the real entry of Vec
, and g_1
is the complex one. Then, I can get the solutions
$$
\gamma'=2\cos^{-1}(g_0),\qquad e^{i\beta'}=\pm\frac{g_1}{\sqrt{1-g_0^2}}\qquad\beta'=-i\log\frac{g_1}{\sqrt{1-g_0^2}}+k\pi,\ \text{where}\ k\in\mathbb{Z}$$
$\delta'$ could be any real value. With the values specified in Vec
, we can find that $\gamma' = 0.913825694123124 , \beta_1'= 2.434484141132717 , \beta_2'=5.5760767947225105$ (differ by $1*\pi$).
Therefore, they are two different vectors, as could be seen on the Bloch sphere: (the blue vector corresponds to $\beta_2'$, the purple one is $\beta_1'$)
The second solution doesn't quite work as I checked the values using Mathematica, but it looks like the blue vector might also contribute to the rotation as I tried to simulate the time-evolution of some arbitrary vector. Should I keep the blue vector, or how can I get rid of it? Thanks a lot for the help!!!