I want to write the decompose the gate $W=(X+Y)/\sqrt{2}$ using only $H$ and $T$ (and all the derived Clifford gates basically). I know $H=(X+Z)/\sqrt{2}$ is it possible to obtain exactly $W$ from this set (no approximation)?


1 Answer 1


Try the sequence: $$ HT^6HT^2H. $$ What was my thinking? I'm used to doing a transformation that looks something like $$ S^\dagger H S. $$ The action is the $S$ is to preserve the $Z$ term inside $H$, but transforms the $X$ term into a $Y$. So, we take the $S=T^2$ and $S^\dagger=T^6$, and this gives $$ T^6HT^2=(Z-Y)/\sqrt{2}. $$ Now, conjugate with Hadamards to change $Z\mapsto X$ and $Y\mapsto -Y$.

  • $\begingroup$ Thanks that works! $\endgroup$
    – Mauricio
    May 23 at 11:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.