Programming Assignment I: Quantum Hello World on a Quantum Computer and Simulator with Qiskit
- Due 8 Dec 2023 by 17:00
- Points 1
- Submitting a file upload
- File types pdf
Objective
This assignment aims to have a first experience in programming a real quantum computer (the IBM Q) and use a simulator mimicking a quantum computer.
Background
To complete this assignment, you can follow the instructions at Tutorial - Colab and Qiskit. For the assignment, you can use your local Python installation (on your workstation or laptop) or use Google's Colab, as in the tutorial. To access the IBM Q and a quantum computer simulator, you need to install the IBM Qiskit framework.
As you know from the lecture and material on Canvas, programming a quantum computer consists of
1. Creating a circuit (comprising quantum gates that act on qubits)
2. Executing the circuit on the quantum computer (or on the simulator)
3. Measure one or several times the result of the circuit execution. We often plot the results of the measurement as a histogram.
In this assignment, we will run the quantum circuit corresponding to the Hello World code in quantum computing: the Bell circuit. This circuit takes as input two qubits (two qubits can represent four states 00, 01, 10, and 11) and showcases the quantum computing superposition and entanglement. We will describe in detail the circuit in the second module, and you do not need to understand it. You can follow the instructions at Tutorial - Colab and Qiskit for the assignment.
Tasks:
1.1 Install Qiskit either on your local machine or on Colab
1.2 Create an account on the IBM Quantum experience
1.3 Using Qiskit, create a two-qubit system to implement the Bell's circuit. For this, follow the instructions in the tutorial.
1.3.1 Plot the circuit diagram
1.4 Run the quantum circuit using the Qiskit Aer quantum simulator backend.
1.4.1 Plot the histogram with the (simulated) measurements
1.5 Check which IBM quantum computers are available via the cloud (see the code in the tutorial).
1.5.1 Which quantum technology IBM Quantum computers are based on? Find information about the IBM quantum computers and report the information you could find.
1.6. Run the quantum circuit on any IBM quantum machine you can easily run on. Report the name of the IBM quantum computer you used for your experiments.
1.6.1 Plot the histogram with the measurements
1.6.2 Compare the results with the simulated ones.