Confusion with first problem of I.7 I.7 Universal gate sets


i’m a bit confused about the 1.7.1 problem. i find the values of the euler angles that are necessary to get the hadamard gate from multiplying Rx and Rz but the codebook keep telling me that my output is not correct. not sure i know how to proceed.

any help will be greatly appreciated.


I remember spending a lot of time myself on this question. I might be able to help if you’re willing to share some details of your answer and steps. One of my mistakes was forgetting to multiply the angle I got by 2, since the matrices uses angle/2 but the functions take angle as input.

Hi @ogopogo,

Notice that you’re multiplying RZ, RX and again RZ. The issue may be with what @Kamal_Mohamed mentioned or it may also be that you’re not multiplying by RZ again. I hope this helps you!

Hi Kamal and Catalina,

Thank you for your feedback! I was making the mistake of thinking about the angles without the factor of two. that took care of the problem.



Glad to see your question answered :smiley: !

1 Like