Single Qubit Gates
Discussion some of simple single qubit gates
Last updated
Discussion some of simple single qubit gates
Last updated
Over the course of this tutorial, we won't be able to go through all possible quantum gates. We will however take time to go through the most important ones, especially ones that we'll use when learning to code later on.
A very simple gate, which doesn't change anything at all. It preserves the state of the system as it is - it gives us the identity of the qubit.
The Pauli X gate is exactly the classical NOT gate as we described earlier:
And here is how the X gate will be represented on our circuit diagram:
We can track the result on the Bloch sphere:
The Pauli Y gate is an interesting machine - we get the same result as the Pauli X gate, but instead of moving through real space we move through imaginary space instead.
The Pauli Z gate changes the state of our qubit along the plane formed by the vectors represented by our two states. This means that no change will occur if we're fully in one state or the other - only if we're somewhere between the two.
The Hadamard gate imposes the uniform superposition on our system. This gate is very important, because often we need to scramble our initial state before we can start computation. The Hadamard gate does this for us in a predictable way.
The Phase gate is often referred to as the "Z90" gate or the "S" gate. We can see that it's half of our Z gate - instead of going half way around the Bloch sphere, we only go a quarter (a 90 degree turn).
We said before that all of our quantum gates need to be reversible. For most of these gates (in fact all of them except the phase gate and T gate) they reverse themselves.
That is to say that if you apply the Pauli X gate twice, for example, it undoes what it did. This makes intuitive sense when we look at the diagram. If we make a 180 degree turn the first time, we would make the same turn when we go the second time, resulting in ending up where we started.
These gates work by changing the direction of the vector in either the , or direction.
The T gate preforms a turn on the sphere. It's a quarter of our Z gate, and half of our S gate. You might think that there's a relationship between the T gate and the S gate, and you'd be right - one S gate amounts two the T gate squared:
This notation just means to take the constant to the power of whatever is in the brackets - i.e. . You'll see this notation used often, so I've left it unconverted here for you.
The phase gate requires an extra step - we need to do some math to it to find the matrix that reverses it's operations. We denote reverse matrices using the symbol, so this would be the gate.