QML4AFRICA
Welcome to the QML4Africa workshop at Deep Learning Indaba in Rwanda, Kigali! This hands‑on series will introduce you to quantum computing, and quantum machine learning (QML) concepts and practical coding exercises using Qiskit and related quantum tools.
Install / Use
/learn @QML4Africa/QML4AFRICAREADME
QML4Africa Workshop
Welcome to the QML4Africa workshop at Deep Learning Indaba in Rwanda, Kigali! This hands‑on series will introduce you to quantum computing, and quantum machine learning (QML) concepts and practical coding exercises using Qiskit and related quantum tools. Please start with the getting started notebook.
Hosts: Ndivhuwo Nyase, Yoursa Farhani, Stephanie Muller, Nouhaila Innan, Muna Said, Lebohang Mashatola, Aviwe Kohlakola, Walid El Maouaki Date: 21 August 2025, Friday Time: 10:00 - 14:00 Place: Deep Learning Indaba 2025 Rwanda, Kigali (Deep Learning Indaba Rwanda, Kigali) Room: Kivu Tents

Table of Contents
- Introduction
- Prerequisites
- Setup & Installation
- Workshop Structure
- Exercise 1: Getting Started
- Exercise 3: Quantum Machine Learning
Introduction
Quantum Computing harnesses quantum mechanics including superposition, entanglement, and interference to perform computations beyond classical limits. Quantum Machine Learning (QML) blends these quantum computing principles with machine learning to tackle problems that are intractable on classical systems. Over this workshop, you'll learn how to build, simulate, and run simple quantum circuits using Qiskit, culminating in basic QML models.
Prerequisites
- Python <=3.11+ installed
- Conda or virtualenv recommended
- Git for cloning repos
- Basic familiarity with Python programming
Setup & Installation
- Clone the workshop repository:
git clone #need to complete cd QML4Africa - Create and activate a virtual environment:
conda create -n qml4africa python=3.12 conda activate qml4africa - Install required packages:
pip install -r requirements.txt - Open
getting_started.ipynbto begin.
First you must check that the version of python you are using in your environment is python>=3.9.6, to make sure that it will be compatible with the latest Qiskit version we will use
Furthermore, you can also find many useful resources on IBM's new page of quantum education IBM Quantum Learning.
This notebook will guide you through the setup process on the IBM Quantum Platform where you will be granted 10 mins a month to utilize and code on actual quantum hardware.
If that is not your case, you can upgrade it using your preferred tool. If you are unsure about how to do it, some recommended options are:
- MacOS: Homebrew
- Windows: Chocolatey
- Linux:
sudo apt-get update
A detailed guide on how to do it depending on your OS is detailed here: How to update python
Troubleshooting <a id="troubleshooting"></a>
If the previous cell raised any error, you can opt to install Qiskit in a virtual environment. Otherwise, you can ignore this cell and proceed to the next one.
Here we propose two different methods to set up a virtual environment to install Qiskit.
- Using venv, as explained in the Qiskit installation guide.
- Using conda, as explained in this video of Coding with Qiskit.
Both methods are respectively detailed in the Qiskit links provided.
Workshop Structure
In this workshop You will:
- Understand basic quantum concepts like superposition
- Explore fundamental quantum gates, circuits and explore the bloch sphere.
- Simulate on Aer simulators and run on IBM Quantum hardware
- Progress to simple QML models using the IRIS dataset by the end of the series
Exercise 1: Getting Started
In this first exercise, you will build foundational quantum circuits:
1.1 Superposition
- Objective: Prepare a single qubit in an equal superposition of |0⟩ and |1⟩.
- Steps:
- Create a 1-qubit circuit with 1 classical bit.
- Apply the Hadamard gate (
H) to qubit 0. - Measure the qubit into the classical bit.
- Simulate with 1024 shots and plot the histogram of outcomes (expect ~50% 0 and 50% 1).
1.2 Bell State
- Objective: Entangle two qubits to form a Bell (EPR) pair.
- Steps:
- Create a 2-qubit circuit with 2 classical bits.
- Apply
Hto qubit 0. - Apply
CX(CNOT) from qubit 0 → qubit 1. - Measure both qubits and visualize the histogram (expect
00and11only).
1.3 GHZ State
- Objective: Extend entanglement to three qubits, creating a GHZ state.
- Steps:
- Create a 3-qubit circuit with 3 classical bits.
- Apply
Hto qubit 0. - Apply
CXfrom qubit 0 → qubit 1, thenCXfrom qubit 1 → qubit 2. - Measure all qubits and plot (expect
000and111).
Exercise 2: Introduction to the QML using IRIS dataset
In this exercise, we will demonstrate quantum computing and machine learning (ML) concepts explored during conference and help participants to consolodate their knowledge of QML. Using a quantum machine learning model we will predict the iris dataset.
3.1 Loading Classical Data onto a Quantum Circuit 3.2 Apply the Quantum Neural Network or Ansatz
- Resources:
- Qiskit Documentation: https://qiskit.org/documentation
- IBM Quantum Experience: https://quantum-computing.ibm.com
Happy quantum computing! 🚀
Related Skills
proje
Interactive vocabulary learning platform with smart flashcards and spaced repetition for effective language acquisition.
best-practices-researcher
The most comprehensive Claude Code skills registry | Web Search: https://skills-registry-web.vercel.app
fullstack-developer
Full-Stack Developer Role Role Definition CONCEPT: Full-stack developer expertise ARCHITECTURE: Covers both frontend and backend development BEST_PRACTICE: Comprehensive web applicat
last30days-skill
18.5kAI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary
