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.
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.
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 @ogopogo@ogopogo@Kamal_Mohamed
i also get the wright teta angle but i am really stuck at finding omega and phi. is there some hint?
Thank you:
Horacio
You will need to do the matrix multiplication for RZ(omega)*RX(theta)*RZ(theta) and compare it with the matrix for H. Now, consider that the exercise says “up to a global phase”. This means that you should multiply your RZ RX RZ side of the equation by e^{i\gamma} where \gamma can be any value so you have to solve for it too.