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.
Asked
Active
Viewed 604 times
4
-
3You may refer to this link. – narip Jul 08 '21 at 00:07
-
possible duplicate: https://quantumcomputing.stackexchange.com/q/16651/55 – glS Jul 09 '21 at 15:29
-
1Hi @user16554! If the answer of forky40 answered your question, please mark it as accepted. – Adrien Suau Jul 13 '21 at 08:40
1 Answers
8
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)$.

forky40
- 6,678
- 2
- 9
- 30
-
1Nice answer! Just a quick addition: if you do care about the global phase then it is actually not possible – sheesymcdeezy Jul 08 '21 at 09:43