• kth.se
  • Student web
  • Intranet
  • kth.se
  • Student web
  • Intranet
Login
FDD3280 HT23
Programming Assignment I: Quantum Hello World on a Quantum Computer and Simulator with Qiskit
Skip to content
Dashboard
  • Login
  • Dashboard
  • Calendar
  • Inbox
  • History
  • Help
Close
  • Min översikt
  • FDD3280 HT23
  • Assignments
  • Programming Assignment I: Quantum Hello World on a Quantum Computer and Simulator with Qiskit
2023 HT
  • Home
  • Syllabus
  • Modules
  • Assignments
  • Quizzes
  • Course Evaluation

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.

1702051200 12/08/2023 05:00pm
Please include a description
Additional comments:
Rating max score to > Pts
Please include a rating title

Rubric

Find rubric
Please include a title
Find a rubric
Title
You've already rated students with this rubric. Any major changes could affect their assessment results.
 
 
 
 
 
 
 
     
Can't change a rubric once you've started using it.  
Title
Criteria Ratings Pts
This criterion is linked to a learning outcome Description of criterion
threshold: 5 pts
Edit criterion description Delete criterion row
5 to >0 Pts Full marks blank
0 to >0 Pts No marks blank_2
This area will be used by the assessor to leave comments related to this criterion.
pts
  / 5 pts
--
Additional comments
This criterion is linked to a learning outcome Description of criterion
threshold: 5 pts
Edit criterion description Delete criterion row
5 to >0 Pts Full marks blank
0 to >0 Pts No marks blank_2
This area will be used by the assessor to leave comments related to this criterion.
pts
  / 5 pts
--
Additional comments
Total points: 5 out of 5
Previous
Next
Discussion - Introduction to Quantum ComputingNext Module:
Module I - QPU Instructions & Gates