I'm looking for a representation of Hadamard gate that uses only $R_x(x)$ and $R_y(y)$ gates. The values $x$ and $y$ may be the same, but they don't necessarily need to be.
-
3$\begingroup$ You may refer to this link. $\endgroup$– naripJul 8, 2021 at 0:07
-
$\begingroup$ possible duplicate: quantumcomputing.stackexchange.com/q/16651/55 $\endgroup$– glS ♦Jul 9, 2021 at 15:29
-
1$\begingroup$ Hi @user16554! If the answer of forky40 answered your question, please mark it as accepted. $\endgroup$– Adrien SuauJul 13, 2021 at 8:40
1 Answer
If you're not concerned with global phase then the following works using only two rotation gates: \begin{align} R_y\left(-\frac{\pi}{2}\right) R_x\left(\pi\right) &= \exp \left(i\frac{\pi}{4}Y\right) \exp \left(-i\frac{\pi}{2}X\right) \\&= \left(\cos \frac{\pi}{4} I + i\sin \frac{\pi}{4} Y\right) \left(-iX\right) \\&=\begin{pmatrix} \cos \frac{\pi}{4} & \sin\frac{\pi}{4} \\ -\sin \frac{\pi}{4} & \cos \frac{\pi}{4} \end{pmatrix} \begin{pmatrix} 0 & -i \\ -i & 0 \end{pmatrix} \\&= -\frac{i}{\sqrt{2}}\begin{pmatrix} 1 & 1 \\ 1 & -1 \end{pmatrix} \\&= -iH \end{align} where $R_x(\theta) = \exp(-i\theta X/2)$ and $R_y(\theta) = \exp(-i\theta Y/2)$.
-
1$\begingroup$ Nice answer! Just a quick addition: if you do care about the global phase then it is actually not possible $\endgroup$ Jul 8, 2021 at 9:43