Quantum Computing Asked by Devymex on March 3, 2021
Applying the Hadamard gate twice in a row, it restores the original input:
https://algassert.com/quirk#circuit={%22cols%22:[[%22H%22],[%22H%22]]}
However, if a CNOT control is added between the two Hadamard gates, the output of the second Hadamard gate changes:
I can’t understand the behavior of the second Hadamard gate: the input has remaining $frac{|0rangle+|1rangle}{sqrt{2}}$ and the gate does not seem to have any effect.
This is because the CNOT gate created an an entangled state and the system after the CNOT gate can't be written individually. That is, you can't stay that your first qubit is in the state $dfrac{|0rangle + |1rangle}{sqrt{2}}$ anymore.
That is consider the circuit:
Here $q_0 $ and $q_1$ both start in the state $|0rangle$. So you start with the initial state $|psirangle_{init} = |0rangle otimes |0rangle = |00rangle$.
This is the reason why you see that you have $50%$ probability of measuring the first qubit $q_0$ in the state $|0rangle$ and $50%$ probability of measuring it in the state $|1rangle$.
Correct answer by KAJ226 on March 3, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP