I've been studying Quantum Computing and one thing that intrigued me is:
given a qubit q1 with an initial value x, when I apply a Hadamard gate on it, then it goes to superposition, so the probability of it collapsing to 1 or 0 is 50%.
So, does it mean that I just don't care about the previous value x at all anymore? Also, if that's in the middle of a circuit, that kind of cancels everything that happened before... For example, in the circuit for teleportation, we have a H gate on Qubit one before measuring it:
In this case, the first qubit goes to superposition, meaning that now it has a 50/50 chance of being 0 or 1. Is this the right interpretation of this concept?
Same thing happens for Deutsch-Jozsa:
We measure on the "H basis", as explained in the example. So, both qubits go in superposition, making their outcome depend on a probability. I didn't get it how these gates help on the calculation.