I have an extension to the following question: How to get the relative phase of a qubit? How do I get the relative phase of a pair of entangled qubits such as $$\frac{1}{\sqrt{2}}(|00\rangle+e^{i\theta}|11\rangle)$$

in which I want to find theta. I tried to use a similar methodology as the answer in the linked question above, but with no success.

  • $\begingroup$ In the thread that was mentioned in the question, there was a mistake in this answer, that is corrected now. $\endgroup$ – Davit Khachatryan Jul 27 at 11:27
  1. Apply a CNOT gate with one of the qubits as control and the other as target. You'll get

$$\frac{1}{\sqrt{2}}(|0\rangle+e^{i\theta}|1\rangle) \otimes |0\rangle$$

  1. Use the methodology from How to get the relative phase of a qubit? for the first qubit :-)
| improve this answer | |
  • $\begingroup$ Hmm I tried that in the simulator but for some reason it didn't work. Then most likely its just a silly-mistake type issue with the way I wrote it. Thanks $\endgroup$ – Rehaan Ahmad Jul 22 at 5:36
  • 1
    $\begingroup$ Shouldn't it be the state after CNOT $\frac{1}{\sqrt{2}}(|0\rangle + e^{i\theta}|1\rangle)\otimes |0\rangle$? $\endgroup$ – Martin Vesely Jul 22 at 6:49
  • $\begingroup$ @MartinVesely Fixed, thank you - a typical off-by-one error :-) $\endgroup$ – Mariia Mykhailova Jul 22 at 9:21

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.