Build A Quantum Circuit Using Single-Qubit Quantum Gates With Qiskit
Learn to manipulate qubits using single-qubit quantum gates in this lesson.
In the last few weeks’ lessons, we learned all about single-qubit quantum gates.
If you missed these lessons, they can be found here:
This week’s lesson is a practical guide to using these single-qubit quantum gates to build a quantum circuit, using IBM Qiskit.
Building The Quantum Circuit
Our first Quantum circuit looks like this:
It’s a combination of the following two gates:
Hadamard gate (H): creates an equal superposition state between
|0⟩
and|1>
T gate: introduces a 45° phase difference between
|0⟩
and|1>
Let’s learn to do the calculations by hand before we program them.
We start with a qubit |0>
:
The H gate is as follows:
Step 1: Applying H Gate to |0>
This creates an equal superposition state of |0> and |1>.
Step 2: Applying the T Gate
The T gate is as follows:
When we apply this gate to the previous result, the following result is obtained:
Step 3: Applying the H gate again
When the Hadamard gate is applied to the previous result, we get the following:
Keep reading with a 7-day free trial
Subscribe to Into Quantum to keep reading this post and get 7 days of free access to the full post archives.