Code Repository
Here is all the Qiskit code covered in our tutorials. Simply download and run!
Feel free to also explore our GitHub repository: https://github.com/mcoggins96/Quantum-Computing-UK-Repository
Basic Programs
Hadamard Gate Program
A simple program that puts one qubit in to superposition and measures its state
Tutorial: https://quantumcomputinguk.org/tutorials/hadamardgate
Bell States Program
A simple program that generates all four Bell states by maximally entangling 2 qubits
Tutorial: https://quantumcomputinguk.org/tutorials/introduction-to-bell-states
Controlled Hadamard Gate Program
A simple program that implements a Controlled Hadamard gate.
Tutorial: https://quantumcomputinguk.org/tutorials/controlled-hadamard-gates-in-qiskit-with-code
Controlled NOT Program
A simple program that applies a CNOT gate to 2 qubits.
Tutorial: https://quantumcomputinguk.org/tutorials/controlled-not-gate-program
N-Qubit Controlled NOT Program
A simple program that applies a CNOT gate with N target qubits.
Tutorial: https://quantumcomputinguk.org/tutorials/n-qubit-cnot-gate-in-qiskit-with-code
RX Gate Program
A simple program that applies the RX gate in Qiskit
Tutorial: https://quantumcomputinguk.org/tutorials/introduction-to-the-rx-gate-with-code
RY Gate Program
A simple program that applies the RY gate in Qiskit
Tutorial: https://quantumcomputinguk.org/tutorials/introduction-to-the-ry-gate-with-code
RZ Gate Program
A simple program that applies the RZ gate in Qiskit
Tutorial: https://quantumcomputinguk.org/tutorials/introduction-to-the-rz-gate-with-code
Toffoli Program
A simple program that applies a Toffoli gate to 3 qubits.
MCMT Gate Program
A simple program that applies the MCMT (Multiple Control Multiple Target) gate in Qiskit
Tutorial: https://quantumcomputinguk.org/tutorials/introduction-to-the-mcmt-gate-in-qiskit-with-code
Diagonal Gate Program
A simple program that applies the Diagonal gate in Qiskit
Tutorial: https://quantumcomputinguk.org/tutorials/introduction-to-the-diagonal-gate-with-code
Addition
A program that demonstrates addition on IBM’s Quantum computers
Tutorial: https://quantumcomputinguk.org/tutorials/performing-addition-on-ibms-quantum-computers
Multiplication using QFT
A program that demonstrates multiplication using the RGQFTMultiplier circuit on IBM’s Quantum computers
Tutorial: https://quantumcomputinguk.org/tutorials/multiplication-on-quantum-computers-with-qiskit
Getting Real Time Information on IBM’s Quantum Devices
A simple program that shows you how to get information on IBM’s quantum devices such as qubit count.
Tutorial: https://quantumcomputinguk.org/tutorials/getting-real-time-information-on-ibm-quantum-devices
Creating Qubit Permutations
This program demonstrates how to create qubit permutations either randomly or by entering a predefined map.
Tutorial: https://quantumcomputinguk.org/tutorials/creating-qubit-permutations-in-qiskit-with-code
Advanced
Shor’s Algorithm
A program showing you how to run Shor’s factorisation algorithm on IBM’s quantum computers with Qiskit.
Tutorial: https://quantumcomputinguk.org/tutorials/shors-algorithm-with-code
Grover’s Algorithm
A program that implements Grover’s algorithm on IBM’s quantum computers with Qiskit.
Tutorial: https://quantumcomputinguk.org/tutorials/grovers-algorithm-with-code
Satisfying Logical Expressions with Grover’s Search
A program that uses Grover’s Search Algorithm to satisfy logical expressions
Evaluating Truth Tables with Grover’s Search
A program that uses Grover’s Search Algorithm to evaluate truth tables
Tutorial: https://quantumcomputinguk.org/tutorials/truth-tables-with-grovers-search-in-qiskit
Phase Estimation
This program demonstrates phase estimation.
Tutorial: https://quantumcomputinguk.org/tutorials/quantum-phase-estimation-with-code
Quantum Fourier Transform
This program demonstrates how to implement the QFT as well as the inverse QFT.
Tutorial: https://quantumcomputinguk.org/tutorials/quantum-fourier-transform-in-qiskit
Modelling Probability Distributions
This program demonstrates how to model the Normal, Log-Normal and Uniform distributions on 5 qubits in Qiskit.
Tutorial: https://quantumcomputinguk.org/tutorials/modelling-probability-distributions-in-qiskit
Rabi Oscillations
This program demonstrates how to model Rabi oscillations using an RX gate in Qiskit.
Tutorial: https://quantumcomputinguk.org/tutorials/introduction-to-rabi-oscillations-in-qiskit-with-code
Machine Learning
Quantum Support Vector Machine
A program that implements a QSVM machine learning method
Quantum Error Correction
Quantum Error Correction: Bit flip code
This demonstrates the bit flip code which uses ancillary qubits to correct bit flips.
Tutorial: https://quantumcomputinguk.org/tutorials/quantum-error-correction-bit-flip-code-in-qiskit
Quantum Error Correction: Phase flip code
This demonstrates the phase flip code which uses ancillary qubits to correct phase flips.
Tutorial: https://quantumcomputinguk.org/tutorials/quantum-error-correction-phase-flip-code-in-qiskit
Quantum Error Correction: Shor code
This demonstrates the Shor code which uses ancillary qubits to correct both bit flips and phase flips
Tutorial: https://quantumcomputinguk.org/tutorials/quantum-error-correction-shor-code-in-qiskit