Quantum Computing & Machine Learning ยท Dr. (Mrs.) Ufoma Ophori
Course Material ยท Part A

Introduction to Quantum Computing

A step-by-step, picture-first course โ€” from the very first idea of quantum computing all the way to how it joins hands with machine learning.

Who this is for This material is written so that anybody can follow it โ€” a 100-level student meeting the idea for the first time, a 400-level student preparing for the practical classes, and the lecturer preparing to teach. No engineering background is needed. If you can use a phone and a laptop, you can follow this course.

How to use this material

๐Ÿ“– Read in order

The pages on the left-hand menu are arranged like a story. Each page builds on the one before it. Start from Page 1 and move down. Use the Next page button at the bottom of each page.

๐Ÿ–๏ธ Touch the pictures

Many of the pictures in this course are alive โ€” you can click buttons, drag sliders, and toss coins. Please play with them! You will understand ten times faster by doing than by reading.

โœ๏ธ Answer the quizzes

Every page ends with short Check Yourself questions. Click an answer and it tells you immediately if you are correct, and why. Nothing is hidden; nothing needs the internet.

๐Ÿ–จ๏ธ Print if you like

This whole material can be printed (Ctrl+P / Cmd+P). The interactive parts become still pictures, but all the text and tables print well as handouts for students.

The journey ahead

Idea What & why History How we got here Qubits The building block Powers Superposition & more Q + ML The destination
A promise By the end of Part A you will be able to explain quantum computing to someone else in plain English โ€” which is the real test of understanding, and exactly what a teacher needs.
Topic 1

Basic Concepts of Quantum Computing

Before any big grammar, let us build the picture in our heads with things we already know.

Start from the computer you already know

Every computer you have ever used โ€” your phone, your laptop, the ATM โ€” thinks using bits. A bit is the smallest piece of information, and it can only ever be one of two things:

Interactive ยท The light switch (a classical bit)

A classical bit is like a light switch. It is either OFF (0) or ON (1) โ€” never both, never in between. Click the switch.

0
The bit is 0 (OFF). A classical computer is millions of these switches flipping very fast.

Now the quantum idea โ€” in one sentence

The big idea A quantum computer uses special switches (called qubits) that, while they are working, can be 0 and 1 at the same time โ€” and only "settle" into one answer when you look at them.

That sounds strange, so here is the everyday picture that carries the whole course:

Interactive ยท The spinning coin (a quantum bit)

A coin lying on the table is Heads OR Tails โ€” like a classical bit. But a coin spinning on the table is, in a real sense, both at once. It only becomes one of them when you slap your hand on it (that is a measurement). Press "Spin" first, then "Slap" โ€” and repeat several times:

H
Lying flat: Heads (1) โ€” not yet spun

Why should anybody care?

Because of a simple mathematics of counting. One spinning coin holds 2 possibilities at once. Two spinning coins hold 4 possibilities at once (HH, HT, TH, TT). Ten coins hold 1,024. The number doubles every time you add one coin.

Interactive ยท The doubling machine

Drag the slider to add qubits and watch how many possibilities the machine can hold at the same time.

3 qubits โ†’ 8 possibilities at once

At 50 qubits, the machine is holding over a quadrillion possibilities at once โ€” that is a 1 followed by 15 zeros, more than a million times a thousand million. No ordinary computer can line up that many options simultaneously โ€” it would have to check them one after the other. This is the source of quantum computing's power: for certain problems, it explores a huge space of answers in parallel, then uses clever tricks to make the right answer the one you see when you "slap the coin".

Honest truth (important for teaching) A quantum computer is not simply "a faster computer". It will not open Microsoft Word faster. It is a different kind of computer that is dramatically better at a specific family of problems โ€” searching, simulating molecules, optimisation, and some mathematics behind cryptography. For everything else, your laptop remains champion.

The three words to carry forward

Qubit

The quantum version of a bit. The spinning coin. Covered fully on Page 5.

Superposition

Being in a blend of 0 and 1 at once โ€” the spin itself. Page 6.

Measurement

Slapping the coin. The act of looking, which forces one definite answer out.

โ˜• Pause & Think ยท Class discussion
"Who is better โ€” the computer, or the human being?"

When Dr. Ophori โ€” the lecturer of this very course โ€” asked a class this question, every single hand said "the computer โ€” it is faster!" Her reply: "How can you say it is better, when YOU are the one that developed it? You wrote the algorithm. If you remove the human, the computer cannot process anything again. You are the author โ€” it is only the pen." Before we build these powerful quantum machines together, settle this question in your own heart. Turn to the person beside you and argue it out for two minutes.

Alan Turing (1950) opened his famous paper with the question "Can machines think?" โ€” and then argued the question itself was too vague to answer directly. Seventy years later, we still debate it.
Garry Kasparov, world chess champion, lost to IBM's Deep Blue in 1997 โ€” then spent the following decades arguing that human + machine together beat either one alone. He calls it "augmented intelligence", not artificial.
Ada Lovelace (1843), the first programmer, wrote that the machine "can do whatever we know how to order it to perform" โ€” it originates nothing. Turing named this "Lady Lovelace's objection" and took it seriously.
There is no "correct" answer to collect marks on โ€” the thinking itself is the lesson. A student who can defend either side with reasons has already learned more than one who memorises a definition.
Check yourself ยท 1
Q1. A classical bit can be 0 or 1. While a quantum computer is working, what can a qubit be?
โœ” Correct answer: a qubit can be in a superposition โ€” a blend of 0 and 1 at once, like a spinning coin โ€” and only gives one definite answer when measured.
Check yourself ยท 2
Q2. If 3 qubits can hold 8 possibilities at once, how many can 4 qubits hold?
โœ” Each new qubit doubles the possibilities: 2 โ†’ 4 โ†’ 8 โ†’ 16. The pattern is 2โฟ for n qubits. This doubling is called exponential growth, and it is why quantum computers excite scientists.
Topic 2

Definitions of Quantum Computing

One idea, defined at four levels โ€” from the market square to the examination hall. All four are correct; they differ only in formality.

1 ยท Everyday "A computer that can try many answers at the same time." For anyone at all 2 ยท Student "A computer that uses qubits instead of bits, gaining power from superposition." 100โ€“200 level 3 ยท Technical "Computation using superposition, entanglement and interference to solve certain problems faster." 300โ€“400 level 4 ยท Formal "A model of computation manipulating quantum states with unitary operations (quantum gates)." Exams & papers

The definitions, written out fully

๐Ÿ—ฃ๏ธ Level 1 โ€” The everyday definition

"A quantum computer is a new kind of computer that can consider very many possible answers at the same time, instead of checking them one by one."

๐ŸŽ“ Level 2 โ€” The student definition (recommended for class)

"Quantum computing is a type of computing that uses qubits instead of ordinary bits. Because a qubit can exist as a mixture of 0 and 1 at the same time (superposition), a quantum computer can process many possibilities in parallel, which makes it far more powerful than a classical computer for certain kinds of problems."

๐Ÿ”ฌ Level 3 โ€” The technical definition

"Quantum computing is the use of quantum-mechanical phenomena โ€” superposition, entanglement, and interference โ€” to perform computation. Devices that perform such computation are called quantum computers."

You will not just memorise this definition โ€” you will run every word of it as code: superposition in Lab 1, entanglement in Lab 2, and interference beating a classical computer in Lab 2.5 (Deutsch's algorithm), all in Part B.

๐Ÿ“œ Level 4 โ€” The formal definition

"Quantum computation is a model of computation in which information is stored in quantum states (qubits) and processed by unitary transformations called quantum gates, with results extracted by measurement."

Key terms that live inside the definitions

TermPlain meaningPicture to hold
Quantum mechanicsThe physics of very small things (atoms, electrons, light particles), where objects behave in surprising ways.The rulebook nature uses at the smallest scale.
QubitQuantum bit โ€” the basic unit of quantum information.The spinning coin.
SuperpositionA qubit being in a blend of 0 and 1 at once.The spin itself.
EntanglementTwo or more qubits linked so that they behave as one system, even far apart.Twin coins that always agree.
InterferencePossibilities can add up (louder) or cancel out (silent), like ripples meeting on water. Quantum algorithms use this to cancel wrong answers.Two ripples meeting on a calm river.
MeasurementReading the qubit โ€” which forces it to pick 0 or 1.Slapping the spinning coin flat.
Quantum gateAn operation that changes a qubit's state โ€” the quantum version of AND, OR, NOT.A hand that flicks or re-spins the coin in a controlled way.

Lock the terms in โ€” play the matching game

Interactive ยท Match the term to its picture (works offline)

Tap a term on the left, then tap the picture that belongs to it on the right. Correct pairs lock in green. Can you clear the board without a single miss?

Teaching tip When teaching, give students Level 1 first and let them repeat it back in their own words. Only after they own the plain idea should Levels 2 and 3 be introduced. A definition memorised before it is understood is quickly forgotten.
โ˜• Pause & Think ยท Class discussion
Can we use something we do not fully understand?

You have just read four definitions of quantum computing. Here is an uncomfortable secret: even the professors who write these definitions admit the deep "why" of quantum mechanics is still mysterious. So โ€” is it honest to build billion-dollar machines on it? Before you answer, think: do you fully understand electricity? Your own brain? Yet you use both every day.

Richard Feynman, Nobel laureate, famously said: "I think I can safely say that nobody understands quantum mechanics." He did not mean the mathematics โ€” that is precise and tested โ€” he meant the deep why underneath it.
The engineers' answer: a working motto in the field was long "shut up and calculate" โ€” the equations predict perfectly, so build with them, and let the philosophy catch up later. Aeroplanes flew before we fully understood turbulence; medicine healed before we understood every cell.
The teachers' answer: a definition is not the end of understanding โ€” it is a handle for carrying an idea while your understanding grows. That is why this course gives you four handles, not one.
Good discussion direction: ask students for other things humanity used before understanding (fire? fermentation? gravity?). Science is not finished knowledge โ€” it is honest work in progress.
Check yourself
Which three quantum phenomena appear in the technical definition of quantum computing?
โœ” The three pillars are superposition (many states at once), entanglement (linked qubits), and interference (cancelling wrong answers, boosting right ones). We will meet each one with its own visual on Page 6.
Topic 3

Historical Development

Not a history lesson โ€” a short relay race. Each runner passed the baton to the next. ๐Ÿ‘‰ Click any event to open its story.

1900โ€“1930s ยท The physics era
Planck, Einstein, Bohr, Heisenberg & Schrรถdinger discover quantum mechanics
Scientists studying heat, light and atoms found that nature at the smallest scale does not follow everyday rules. Energy comes in packets ("quanta"), particles behave like waves, and a particle can be in a mixture of states. This strange rulebook โ€” quantum mechanics โ€” became the most accurate theory in all of physics. No computers yet; just the raw physics.
1981โ€“82 ยท The spark
Richard Feynman asks the founding question
The famous physicist Richard Feynman observed that ordinary computers struggle badly to simulate molecules and atoms (quantum systems), because the possibilities multiply too fast. His proposal: "Nature isn't classicalโ€ฆ if you want to simulate nature, you'd better make it quantum mechanical." In other words โ€” build a computer out of quantum parts. This moment is widely taken as the birth of quantum computing. Paul Benioff had also shown, around 1980, that a quantum-mechanical model of a computer was theoretically possible.
1985 ยท The blueprint
David Deutsch defines the universal quantum computer
At Oxford, David Deutsch worked out the mathematics of a universal quantum computer โ€” a machine that could, in principle, perform any computation. This gave the field its formal foundation, the quantum version of what Alan Turing did for classical computing.
1994 ยท The alarm bell
Peter Shor's algorithm threatens world cryptography
Peter Shor (AT&T Bell Labs) discovered a quantum algorithm that could factor huge numbers exponentially faster than any known classical method. Why it mattered: internet security (RSA encryption, used by banks everywhere) depends on factoring being hard. Suddenly governments and companies worldwide started funding quantum computing seriously. This single algorithm turned a physics curiosity into a global race.
1996 ยท The search trick
Lov Grover's search algorithm
Grover showed a quantum computer can search an unsorted list of N items in roughly โˆšN steps instead of N. Searching 1,000,000 items takes about 1,000 quantum steps. A second major proof that quantum machines beat classical ones on real tasks.
1998โ€“2010s ยท First baby hardware
From 2 qubits in a lab to working chips
The first tiny quantum computers (2โ€“7 qubits) were demonstrated using molecules and trapped atoms. In 1999โ€“2011, companies entered: D-Wave sold the first commercial quantum annealer in 2011 (a specialist optimisation machine โ€” fully explained on the next page), and superconducting qubit chips (the technology IBM and Google use today) matured rapidly.
2016 ยท Quantum for everybody
IBM puts a quantum computer on the internet
IBM launched the IBM Quantum Experience โ€” free access to a real quantum computer over the cloud, and later the open-source Qiskit Python library. This is the single most important event for this course: it means our students in Nigeria can run programs on a real quantum computer in America using only a laptop and internet. The practical part of this course (Part B) is built on Qiskit.
2019 ยท The milestone
Google claims "quantum supremacy"
Google's 53-qubit Sycamore chip performed a (very specialised) sampling task in about 200 seconds that they argued would take the best supercomputer thousands of years. IBM disputed the exact numbers, but the moment stands as the first public claim that a quantum machine did something practically impossible classically. The term for this is quantum supremacy (also called quantum advantage) โ€” defined fully on Page 6.
2020s โ†’ today ยท The engineering era
Bigger chips, fewer errors, early usefulness
IBM crossed 1,000+ physical qubits (Condor, 2023) and shifted focus to error correction โ€” making qubits reliable, which is today's central challenge. Google's Willow chip (2024) showed errors can be driven down as systems scale, a key milestone. China, the EU, and startups (IonQ, Quantinuum, PsiQuantum, Rigetti) are all racing. We are in the NISQ era โ€” "Noisy Intermediate-Scale Quantum" โ€” machines big enough to be interesting, still too noisy to be perfect.
The story in one paragraph (for exams) Quantum mechanics was developed in the early 1900s. In 1981โ€“82, Feynman (building on Benioff) proposed computing with quantum systems. Deutsch formalised the universal quantum computer in 1985. Shor (1994) and Grover (1996) provided killer algorithms that proved quantum computers would matter. Hardware followed: first lab qubits (late 1990s), first commercial machine (D-Wave, 2011), cloud access for everyone (IBM, 2016), Google's supremacy experiment (2019), and today's race toward error-corrected machines.
โ˜• Pause & Think ยท Class discussion
Einstein doubted quantum mechanics all his life โ€” and his doubt became a gift. Can being "wrong" be valuable in science?

The greatest scientist of the 20th century never accepted that nature is random at the bottom. He fought Bohr about it for decades. And here is the beautiful twist: Einstein's sharpest attack (the 1935 EPR paper) forced physicists to study entanglement so carefully that it became the experiments that won the 2022 Nobel Prize โ€” and the technology inside quantum computers. His doubt built the field he doubted.

Albert Einstein: "God does not play dice with the universe" โ€” his way of saying a true theory should describe reality itself, not just probabilities of what we will see.
Niels Bohr is said to have replied: "Einstein, stop telling God what to do." (A famous anecdote โ€” historians note the exact words are uncertain, a good lesson in checking sources!) Bohr held that you cannot separate reality from the act of measuring it.
The verdict of experiment: Bell's theorem (1964) turned the philosophy into a measurable test; Aspect, Clauser and Zeilinger ran the tests โ€” nature sided with Bohr. The dice are real. Yet Einstein's questions sharpened the field more than easy agreement ever could.
For the classroom: ask students when a respectful disagreement last taught them something. Science moves forward on good questions, not just right answers โ€” a student who disagrees with the lecturer and gives reasons should be celebrated, not silenced.
Check yourself ยท 1
Who is generally credited with proposing the idea of a quantum computer in 1981โ€“82?
โœ” Feynman proposed simulating nature with quantum machines; Benioff had shown it was theoretically possible. Shor came later (1994) with the factoring algorithm; Turing founded classical computing theory.
Check yourself ยท 2
Why did Shor's 1994 algorithm cause governments to take quantum computing seriously?
โœ” Shor's algorithm factors large numbers quickly โ€” and internet security (RSA) depends on factoring being slow. The threat to cryptography unlocked massive funding worldwide.
Topic 4

Examples of Quantum Computers

Real machines exist today. They differ mainly in what they build their qubits out of โ€” and each choice has a trade-off.

The key insight A qubit can be made from anything that obeys quantum rules and has two states we can control: a tiny superconducting circuit, a single trapped atom, a particle of light, an electron's spin. Different companies bet on different materials โ€” like different car makers betting on petrol, diesel, or electric.

๐ŸงŠ Superconducting qubits โ€” IBM & Google

Machines: IBM Quantum (Eagle 127 qubits, Osprey 433, Condor 1,121; now the Heron series), Google Sycamore (53) and Willow (105).

How: Tiny electric circuits cooled to about โˆ’273 ยฐC (colder than outer space) so current flows without resistance and behaves quantum-mechanically.

Fast gatesEasy to manufacture like chipsNeeds giant fridgeShort memory (microseconds)

โš›๏ธ Trapped-ion qubits โ€” IonQ & Quantinuum

Machines: IonQ Forte, Quantinuum H2.

How: Individual charged atoms (ions) held floating in a vacuum by electric fields, controlled with laser beams. Each atom is one qubit.

Very accurateLong memoryIdentical qubits (atoms are perfect)Slower gatesHard to scale to thousands

๐Ÿ’ก Photonic qubits โ€” PsiQuantum & Xanadu

Machines: Xanadu Borealis; PsiQuantum (building toward a million qubits).

How: Particles of light (photons) carry the quantum information through optical chips.

Works at room temperatureLight travels โ€” good for quantum networksPhotons are hard to make interact

๐Ÿงฒ Quantum annealers โ€” D-Wave

Machines: D-Wave Advantage (5,000+ qubits โ€” but a different, weaker kind).

How: Not a general-purpose quantum computer. It is a specialist machine that only solves optimisation problems (finding the best arrangement โ€” e.g., cheapest delivery routes, best schedule).

Available commercially since 2011Many qubitsOnly one problem typeCannot run Shor/Grover

Comparing them at a glance

TechnologyWhoQubit made fromTemperatureMain strengthMain weakness
SuperconductingIBM, Google, RigettiTiny cold electric circuitโ‰ˆ โˆ’273 ยฐCFast, chip-like manufacturingNoisy, giant fridges
Trapped ionIonQ, QuantinuumA single floating atomRoom-temp trap (lasers do the work)Highest accuracySlow, hard to scale
PhotonicXanadu, PsiQuantumA particle of lightMostly room temperatureNetworking, no fridgePhotons barely interact
AnnealerD-WaveSuperconducting loopsโ‰ˆ โˆ’273 ยฐCOptimisation problems nowNot general-purpose
Neutral atoms / spin qubitsQuEra, Pasqal, IntelUncharged atoms / electrons in siliconVariesPromising scaling pathsYounger technology

Test your eye โ€” "Which machine am I?"

Interactive ยท Guess the technology from its clue (works offline)

Each clue describes one of the four machine families above. Tap your answer โ€” then get a fresh clue.

Which one will our students touch? IBM's superconducting machines โ€” because IBM gives free cloud access and the open-source Qiskit Python library. In Part B (practicals), students will write Python on their laptops in Nigeria and run it on a real IBM quantum computer abroad. No fridge required on our side!
Check yourself ยท 1
Why do IBM's and Google's quantum chips need to be cooled to about โˆ’273 ยฐC?
โœ” Heat is random jiggling โ€” and random jiggling destroys delicate quantum states (we call this decoherence). Near absolute zero, the circuit loses electrical resistance and the qubit's quantum state survives long enough to compute.
Check yourself ยท 2
D-Wave's machines have over 5,000 qubits โ€” far more than IBM's. Why is D-Wave still not "ahead"?
โœ” Qubit count alone doesn't decide power. An annealer's qubits solve one family of problems (optimisation). A universal gate-based machine (IBM, Google, IonQ) can run any quantum algorithm. Lesson for students: always ask what kind of qubits, not just how many.
Topic 5 ยท The building block

Qubits

Everything in quantum computing stands on this one object. Take this page slowly โ€” once qubits are clear, every other topic becomes easy.

One idea only: the LEAN

A bit is a pole lying flat against a wall โ€” fully on the "0" side or fully on the "1" side. Finished. Certain. Nothing more to say.

A qubit is that pole stood up and spinning โ€” and here is this entire page in one sentence: a qubit is a spin that can LEAN. Lean it toward one side, and when you slap it, it falls to that side more often โ€” in exact proportion to the lean. That is the whole idea. Everything below is just this one picture, practiced with your own hands.

Interactive ยท The spinning coin that LEANS โ€” your first real qubit

Drag the slider = set the lean. Slap = one toss. The big numbers on the floor are not decoration โ€” they ARE the answer: a 60% lean means 60 out of every 100 slaps land on "1". That is the whole machine. Play:

"But what MAKES it fall 60/40 โ€” where is the machinery?" There is none hidden. The lean IS the whole story โ€” the same way nothing extra "makes" a leaning pole fall the way it leans. That the fall-shares match the lean exactly is the measured law of nature (physicists call it the Born rule) that every quantum computer stands on. The qubit's secret is not machinery; it is geometry.

What you just learned by playing One slap tells you almost nothing. Many slaps, counted, reveal the lean. And that counting is exactly how real quantum computers are used every day: run the same circuit hundreds of times (engineers call the runs "shots"), count the results, read the shares. You will do precisely this, with real code, in Part B.
โ“ "It looks like the qubit is learning to match my sliderโ€ฆ" โ€” it is not. Read this slowly once

Nothing in this demo learns. Nothing improves. Nothing changes. You set a lean with the slider. Then you slapped the pole, many times, and counted the falls. A leaning pole falls the way it leans โ€” slap it 10 times and the tally is rough, slap it 1,000 times and the tally clearly shows the lean. The lean stayed the same from the first slap to the last. Only your COUNT grew.

Picture a woman selling puff-puff who drops one in ten on a bad day. Watch her for 10 customers and maybe she drops none โ€” you'd wrongly think she never drops any. Watch her for 500 customers and you will count very close to one-in-ten drops. She did not change. You just watched long enough to see the truth. That is ALL the right chart is doing: watching long enough.

So when IS something actually learning? Learning would be if the pole re-leaned itself after every slap to please you. That never happens here โ€” but machines that genuinely re-adjust themselves after every mistake DO exist, and you will build one in Part B (Lab 6). When you get there, remember this page: counting tosses (here) and a machine re-adjusting itself (there) look similar on a chart, but they are completely different things.

The two particles, side by side

Interactive ยท BIT vs QUBIT โ€” same floor, different physics

Left โ€” the classical bit: a coin lying flat. Certain. Flip it to change it; read it a thousand times โ€” same answer, no damage. Right โ€” the qubit: spinning with a 60% lean. Reading it is an EVENT: one slap, one forced fall, one answer โ€” then it must be re-spun. Try both sides:

stored value: 1 โ€” not read yet
spinning (60% lean) โ€” not slapped yet
โ“ A question from Dr. Ophori's reading โ€” answered

"Some materials say a qubit can be in three states: quantum state 0, quantum state 1, and superposition. But if superposition is 0-and-1, what does 'quantum state of 1' even mean โ€” and what would the computer print?"

Beautiful question โ€” and the confusion disappears with one sentence: |0โŸฉ and |1โŸฉ are themselves quantum states. They are the two "resting poles" of the qubit โ€” the north and south of the Bloch sphere below. A qubit sitting in quantum state |1โŸฉ is not spinning at all: measure it 100 times and it prints 1 all 100 times. It is still fully quantum โ€” you can rotate it into superposition any moment โ€” it is simply resting at a pole right now.

In coin language, the "three states" are:

Textbook nameCoin pictureIf you measure 100 times, it printsโ€ฆ
Quantum state |0โŸฉCoin lying flat, tails up0, all 100 times โ€” {'0': 100}
Quantum state |1โŸฉCoin lying flat, heads up1, all 100 times โ€” {'1': 100}
SuperpositionCoin spinningA mixture โ€” e.g. {'0': 48, '1': 52} for a fair spin

And the full truth is even richer: between the two poles lie infinitely many blends (every tilt of the arrow below) โ€” "three states" is just the beginner's summary of poles + everything-in-between. In Part B, Lab 1, you will run all three on a real simulator and watch each one print exactly this table.

From the coin to the globe โ€” one small step

In the demo above, your coin could only lean left or right. But a real spinning coin can lean in any direction โ€” toward you, away from you, north-east, anywhere around the circle. Now ask: if I drew a dot for every possible lean โ€” every direction, every amount โ€” what shape would all those dots make? A ball. That ball is the famous Bloch sphere: nothing mysterious, just the map of every lean a qubit can have, with an arrow showing the lean it has right now.

How to read the globe in ten seconds:

  • Top of the ball = no lean toward "1" at all โ†’ always falls "0".
  • Bottom = fully leaned โ†’ always falls "1".
  • How far DOWN the arrow points = the percentage. Equator = exactly 50/50. That is the same slider you have been dragging all along โ€” just drawn on a map.

Interactive ยท The map of every lean โ€” in 3D

Slider = lean the arrow (watch the percentages follow it, same as the coin). Drag the ball itself = turn the map in your hands.

"But why a whole BALL? A simple dial from 0% to 100% would doโ€ฆ" Sharp question โ€” and here is the honest answer. For the fall-percentages alone, a dial WOULD do: only how far down the arrow points matters for that. But the direction around the ball (toward you, away, sideways) is a real, physical part of the lean too โ€” it just stays invisible until two leans meet. When they meet, leans pointing the same way around add up, and leans pointing opposite ways around cancel โ€” and that adding-and-cancelling is exactly the interference you will watch wipe out randomness on the next page. So: up-down = the percentages (today's lesson), around = the secret handshake between qubits (next page's lesson). The ball holds both.

What is a qubit physically?

Remember Page 4: anything quantum with two controllable states can be a qubit.

  • Superconducting circuit (IBM/Google): two energy levels of a cold circuit.
  • Trapped ion (IonQ): two energy levels of a single atom.
  • Photon (Xanadu): e.g., two polarisations of light.
  • Electron spin (Intel): spin-up vs spin-down in silicon.

The mathematics is identical for all of them. That is why we can learn qubits once and program any machine.

The two hard truths about qubits

โš ๏ธ Truth 1 โ€” Measurement destroys the blend

The moment you measure, the superposition collapses to plain 0 or 1 and the extra information is gone. You cannot peek and continue. Algorithms must do all their clever work before measuring.

โš ๏ธ Truth 2 โ€” Qubits are fragile (decoherence)

Heat, vibration, stray radio waves โ€” any disturbance acts like an accidental measurement and ruins the state. This is why machines live in extreme cold and why error correction is the biggest challenge in the field today.

No-cloning (bonus fact students love) It is physically impossible to copy an unknown qubit. There is no "copy & paste" in quantum! This sounds like a weakness, but it is the foundation of quantum cryptography: a spy cannot copy the message without destroying it โ€” so eavesdropping is always detected.
โ˜• Pause & Think ยท Class discussion
Before you measured the qubit, did it HAVE a value โ€” or did your looking create the answer?

You just played with the blend slider and watched measurements collapse. Now sit with the deeper question. Einstein once asked a colleague, walking under the night sky: does the moon exist only when somebody looks at it? For big things like moons, of course it is there. But for a qubit, experiment says the answer genuinely was not there before the measurement. Where, then, does "reality" begin?

Erwin Schrรถdinger (1935) pushed the discomfort to its limit with his famous cat: a cat whose fate is tied to a quantum event would be, absurdly, alive-and-dead until observed. He designed the picture to show how strange the theory sounds when scaled up โ€” and it became its most famous teaching tool.
The Copenhagen view (Bohr): physics does not describe what nature is โ€” it describes what we can say about nature. The measurement is part of the story, not an interruption of it.
The many-worlds view (Everett, 1957): nothing collapses โ€” every outcome happens, each in its own branch of reality. Mathematically clean, philosophically breathtaking, and still seriously defended today.
Let students vote on which view they find most believable, then defend their vote. Physicists themselves are split โ€” your students are entering a live debate, not a settled one.
For the exam only: how scientists WRITE the lean Textbooks write the lean as |ฯˆโŸฉ = ฮฑ|0โŸฉ + ฮฒ|1โŸฉ. Decode it in ten seconds: |0โŸฉ = the pole flat on the "0" side, |1โŸฉ = flat on the "1" side, and ฮฑ, ฮฒ are two numbers saying how much the lean points each way. Square them and you get the fall-shares: ฮฑยฒ = share of "0" falls, ฮฒยฒ = share of "1" falls โ€” together always 100%. Example: ฮฒ = 0.77 โ†’ 0.77ยฒ โ‰ˆ 60% of slaps fall to "1". Nothing new โ€” your leaning pole, in fancier handwriting.
Check yourself ยท 1
A qubit is in the state |ฯˆโŸฉ = ฮฑ|0โŸฉ + ฮฒ|1โŸฉ with P(0) = 25%. What is P(1)?
โœ” Probabilities always total 100%: P(1) = 100% โˆ’ 25% = 75%. On the Bloch sphere, this arrow points below the equator, closer to |1โŸฉ.
Check yourself ยท 2
Why do quantum programs run the same circuit many times ("shots") instead of once?
โœ” One shot = one collapsed answer. Hundreds of shots = a histogram showing the real probabilities. You experienced this yourself with the "Measure 100 times" button above.
Topic 6 ยท The three powers

Superposition, Entanglement & Quantum Supremacy

Three terms, one family: the first two are the powers a quantum computer uses; the third is the finish line that proves those powers beat classical machines.

Power 1 โ€” Superposition (the spinning coin, now official)

You already own this idea from Pages 1 and 5: a qubit can exist in a blend of |0โŸฉ and |1โŸฉ until measured. The real-life payoff is parallelism: with n qubits in superposition, a quantum computer manipulates 2โฟ possibilities in a single operation.

Real-life anchor Checking routes for a delivery van through 10 cities: a classical computer tries routes one-by-one. A quantum computer in superposition holds all routes at once, then uses interference to make the bad routes cancel out and the good one stand tall.

The experiment behind it all โ€” the double slit

โ“ A question from Dr. Ophori's reading โ€” answered "The materials talk about electrons and photons behaving one way when observed and another way when not observed. What is that about?" โ€” That is the double-slit experiment, the single most famous experiment in physics. Richard Feynman said it contains "the only mystery" of quantum mechanics. Instead of reading about it โ€” run it yourself, right here.

The setup: a gun fires particles (electrons or photons) one at a time at a wall with two narrow slits. Behind the wall is a screen that records where each particle lands. Common sense says particles are like small stones โ€” they should pile up in two bands, one behind each slit. Watch what actually happens:

Interactive ยท The double-slit experiment โ€” watch a single particle travel

๐ŸŽฌ Fire ONE and watch: with the detector OFF, the particle leaves the gun as a dot, then spreads into a ripple that passes through BOTH slits at once โ€” the two ripples overlap, and it lands as a single dot placed by their meeting pattern. Switch the detector ON and fire again: now it stays a dot, takes ONE slit (the detector flashes), and lands in a plain band. Then use the fast buttons to build the statistics.

Detector OFF. Fire some particles and watch the stripes appearโ€ฆ

๐Ÿ‘โ€๐Ÿ—จ Detector OFF โ€” the mystery

The particles land in many alternating stripes (an interference pattern) โ€” the signature of a wave passing through both slits at once and interfering with itself. Yet each particle arrives as a single dot! Each one travelled as a superposition of "through the left slit" AND "through the right slit" โ€” the spinning coin, in flight.

๐Ÿ‘ Detector ON โ€” the collapse

Place a detector at the slits to see which path each particle takes, and the stripes vanish โ€” just two plain bands, like stones. Knowing the path IS a measurement, and measurement collapses the superposition. Nature behaves differently when the information exists โ€” whether or not any human is looking.

โ“ WHY does it behave like this? โ€” the question every student asks, answered straight

Why stripes when nobody watches? Drop two stones into a calm river and watch the ripples meet: where crest meets crest the water jumps high; where crest meets trough the water cancels flat. An unwatched particle travels exactly like that ripple โ€” one wave of possibilities that passes through both slits and then meets itself on the far side. Where its two halves agree โ†’ many landings (a bright stripe). Where they cancel โ†’ almost none (a dark gap). The stripes are the meeting-pattern of a particle overlapping itself.

Then why does each particle land as ONE dot? Because travelling and arriving are different acts. It travels as a wave โ€” but the screen is a measurement, a slap: the wave must surrender one definite landing point, chosen with chances set by its own stripes. This is not philosophy โ€” in 1989, physicists in Japan (Tonomura's team) filmed electrons arriving one at a time: each a lone dot, random-lookingโ€ฆ and after thousands, the stripes stood there, assembled dot by dot. Travels as a wave. Arrives as a particle. Both, honestly.

And why does watching kill the stripes? Here is the answer to give a student slowly: it is not eyes, not minds โ€” it is INFORMATION. The stripes exist only while "went through the top" and "went through the bottom" remain two indistinguishable halves of one spinning possibility โ€” your coin being both faces at once. A detector at the slit makes a permanent record of which path โ€” and two recorded, distinguishable histories can no longer overlap and cancel. The detector's record is a slap delivered at the slit instead of at the screen: the coin is forced to land early, so it flies the rest of the way as a decided little stone โ€” two slits, two plain piles. The universe never cared that someone looked; it cares that anything kept the record.

Why this experiment matters for OUR course The double slit is superposition + measurement + interference in one picture โ€” the same three ingredients inside every quantum computer. A quantum algorithm is, at heart, a cleverly engineered interference pattern: wrong answers land in the dark stripes, right answers in the bright ones. And one honest correction to popular myth: the "observer" needs no eyes and no consciousness โ€” any physical detector that records the path information collapses the pattern. It is information, not attention, that does it.

Power 2 โ€” Entanglement (the twin coins)

Take two qubits and link them with a special operation. They now form one shared state: measuring one instantly tells you about the other, even if they were separated across the world. Einstein was so uncomfortable with this that he called it "spooky action at a distance" โ€” but experiments (Nobel Prize 2022: Aspect, Clauser, Zeilinger) confirm it is real.

Interactive ยท Entangled twin coins

These two coins are entangled so they always land the same way. Both are spinning (superposition). Measure either one โ€” and watch its distant twin collapse instantly to match.

?
Coin A โ€” Lagos
โˆž
?
Coin B โ€” London
Careful โ€” common misconception Entanglement does not let us send messages faster than light. The outcome of each measurement is still random โ€” only the correlation is guaranteed. What entanglement does give us: qubits that work as one team, which is what makes multi-qubit algorithms, quantum error correction, and quantum cryptography possible.

How the two powers work together

SUPERPOSITION spreads the computation across 2โฟ possibilities "explore everything" ENTANGLEMENT ties qubits into one team so possibilities relate to each other "coordinate the search" INTERFERENCE wrong answers cancel out, right answer stands tall "harvest the answer"

The finish line โ€” Quantum Supremacy

Definition Quantum supremacy (politely: quantum advantage) is the demonstrated moment when a quantum computer performs a task that no classical computer could complete in any practical amount of time.
  • 2019 โ€” Google Sycamore: 53 qubits performed a sampling task in ~200 seconds; Google estimated ~10,000 years for the top supercomputer. IBM argued it could be done in days โ€” but even "days vs 200 seconds" made the point.
  • Important honesty: the task was artificial, chosen because it suits quantum machines. Supremacy โ‰  "quantum computers are now better at everything." The current race is for useful quantum advantage โ€” a real-world problem (chemistry, materials, finance) solved better. That milestone is still being contested today.
โ˜• Pause & Think ยท Class discussion
If two particles can stay connected across the whole world, what does "distance" even mean to nature?

You just measured the Lagos coin and watched the London coin obey instantly. Everything in your daily experience says influence needs travel โ€” a letter, a signal, a journey. Entanglement says: not always. Some physicists believe this hints that space itself is not fundamental โ€” that connection is deeper than distance. Others say the correlation is simply how shared quantum states work, nothing mystical. In your own life, you already know relationships that distance cannot weaken. Is nature telling us something similar โ€” or is that reading too much poetry into physics?

Einstein dismissed it as "spooky action at a distance" โ€” surely, he argued, the particles carried hidden instructions all along, like twins who agreed before parting.
John Bell (1964) found the genius test: if hidden instructions existed, measurement statistics must obey a certain limit. Experiments broke the limit. No hidden instructions โ€” the connection is real.
A caution from the physicists: entanglement carries correlation, never messages โ€” so it does not break Einstein's speed limit for information. Nature is spooky, but it is also disciplined.
A lovely class exercise: let two students act out the twin coins at opposite ends of the room, then ask the class to design a way to send a message using only the coins โ€” and discover together why it cannot work.
Check yourself ยท 1
Two entangled qubits are separated โ€” one in Lagos, one in London. The Lagos qubit is measured and gives 1. What do we instantly know?
โœ” Entangled qubits form one shared state โ€” measuring one determines the other's correlated outcome instantly. But note: no usable message travels, because the Lagos result itself was random.
Check yourself ยท 2
Which statement about quantum supremacy is most accurate?
โœ” Supremacy is a one-task milestone (Google claimed it in 2019 with an artificial sampling task). Your laptop is still champion of everyday computing โ€” the race now is for advantage on useful problems.
Topic 7

Difference Between Classical and Quantum Computers

Everything from the previous pages, now arranged side by side โ€” the page to revise from the night before a test.

CLASSICAL COMPUTER your laptop, phone, ATM 0 1 1 0 Each bit is definitely 0 or definitely 1 4 bits hold exactly ONE of 16 patterns Checks possibilities one after another Copying data: easy ยท Reading data: harmless QUANTUM COMPUTER IBM Heron, Google Willow, IonQ Forte 0+1 0+1 0+1 0+1 Each qubit is a blend of 0 and 1 (superposition) 4 qubits hold ALL 16 patterns at once Explores possibilities in parallel + interference Copying: impossible ยท Reading: collapses the state

The full comparison table

FeatureClassical computerQuantum computer
Basic unitBit (0 or 1)Qubit (blend of 0 and 1)
Information in n unitsOne pattern out of 2โฟAll 2โฟ patterns in superposition
Physical basisTransistors on silicon chipsSuperconducting circuits, trapped ions, photonsโ€ฆ
Operating conditionRoom temperatureOften near โˆ’273 ยฐC, heavily shielded
Logic operationsAND, OR, NOT gatesQuantum gates (H, X, CNOTโ€ฆ) โ€” all reversible
Reading dataHarmless, repeatableMeasurement collapses the state โ€” one chance
Copying dataTrivial (copyโ€“paste)Impossible (no-cloning theorem)
ErrorsExtremely rareFrequent โ€” error correction is the central challenge
ResultsDeterministic โ€” same input, same outputProbabilistic โ€” run many shots, read the histogram
Best atEveryday tasks: documents, web, databases, videoSimulation of molecules, optimisation, factoring, (quantum) machine learning
Today's maturityDecades of refinement, billions of devicesEarly era (NISQ) โ€” powerful but noisy prototypes

Watch them race

Interactive ยท The search race (works offline)

A prize is hidden in one of 16 boxes. The classical computer must open boxes one at a time. The quantum computer holds all 16 in superposition, then uses interference waves (โ‰ˆโˆš16 = 4 of them) to make the prize box stand out. Race them!

The prize has been hidden. Choose a computer.
The partnership, not a war The future is hybrid: a classical computer handles the everyday work and sends only the hard quantum-friendly piece to a quantum processor โ€” exactly as your laptop today sends heavy graphics work to a GPU. Remember this; it returns on Page 10, because quantum machine learning is built exactly this way.
Check yourself ยท 1
Which task should remain on a classical computer even when quantum computers mature?
โœ” Everyday tasks (documents, web, video) are already handled perfectly and cheaply by classical machines. Quantum computers are specialists for simulation, optimisation and certain mathematics โ€” not replacements.
Check yourself ยท 2
Same quantum circuit, run twice, gives different outputs. Is the computer faulty?
โœ” Probabilistic output is normal quantum behaviour (each measurement collapses the superposition randomly according to the blend). The information lives in the distribution over many shots โ€” the histogram practical in Part B.
Topic 8

Application Areas of Quantum Computing

Where will all this power actually be used? Six big areas โ€” each with a picture you can hold, and a Nigerian angle where it fits naturally.

๐Ÿ’Š 1. Drug discovery & chemistry

Molecules are quantum systems โ€” simulating them is exactly what Feynman said quantum computers were born for. Instead of years of trial-and-error in the lab, researchers could test candidate drugs inside the computer first.

Picture: designing a new malaria or sickle-cell drug by simulating how the molecule binds โ€” before a single test tube is opened.

๐Ÿ” 2. Cryptography & security

Two sides of one coin: Shor's algorithm will one day break today's RSA encryption โ€” so banks and governments are already migrating to post-quantum cryptography. Meanwhile, quantum physics itself gives quantum key distribution: communication where eavesdropping is physically detectable (thanks to no-cloning, Page 5).

Picture: every bank's security team, including Nigerian banks, planning their "quantum-safe" migration.

๐Ÿšš 3. Optimisation & logistics

Best routes for hundreds of delivery vans in Lagos traffic; optimal scheduling of flights; smartest arrangement of a national power grid. These problems explode combinatorially โ€” perfect targets for quantum optimisation (and today, for D-Wave-style annealers).

๐Ÿ’ฐ 4. Finance

Portfolio optimisation (best mix of investments under risk limits), fraud detection, and option pricing via quantum-accelerated simulations. Banks like JPMorgan and Goldman Sachs run active quantum research teams today.

๐Ÿค– 5. Machine learning & AI

Quantum computers may speed up the heavy linear algebra inside machine learning, and quantum models can explore patterns in data differently from classical ones. This is our destination topic โ€” fully opened on Page 10.

๐Ÿงช 6. Materials & energy

Designing better batteries, superconductors, and fertilizers. One famous target: nitrogen fixation โ€” nature makes fertilizer at room temperature while our factories (Haber process) burn ~1โ€“2% of the world's energy. Simulating the responsible enzyme could transform agriculture โ€” a direct African food-security interest.

Make it yours โ€” match the problem to its quantum answer

Interactive ยท Nigerian problems, quantum application areas (works offline)

Tap a real problem on the left, then the application area that would attack it on the right.

How close is each application?

ApplicationStatus todayRough horizon
Optimisation (annealers, hybrid)Pilot projects running nowNow โ†’ near term
Quantum machine learningActive research, small demos (Qiskit!)Near โ†’ mid term
Chemistry & drug simulationSmall molecules demonstratedMid term
Finance modelsBank research teams, prototypesMid term
Breaking RSA (Shor at scale)Needs millions of error-corrected qubitsLong term โ€” but defences must start now
Why Nigerian students should care now The hardware race may be abroad, but the software, algorithms, and applications are open to everyone with a laptop โ€” Qiskit is free, and IBM's machines are on the cloud. The nations that benefited most from classical computing were not only those who built chips, but those who built software and solutions. Quantum is at that same early doorway today, and this classroom is standing in it.
โ˜• Pause & Think ยท Class discussion
Shor's algorithm can one day break the encryption protecting every bank. Should such research have been published at all?

The same discovery funds cancer-drug simulation and threatens your account balance. This is the dual-use dilemma, and it is as old as fire โ€” the knife that cooks dinner can also wound. Peter Shor published openly in 1994. Because he did, the world got a thirty-year head start on building quantum-proof locks. Would secrecy have been safer โ€” or more dangerous?

The case for openness: cryptographers argue security through secrecy always fails โ€” someone else discovers the weakness quietly and exploits it. Publishing Shor's algorithm is why post-quantum cryptography standards already exist before the machines that threaten us do.
The sobering precedent: the physicists of the 1940s watched their beautiful equations become weapons, and many spent the rest of their lives on the ethics of it. Science does not get to choose how it is used โ€” but scientists get to speak about it.
The African angle: nations that understand a technology shape its rules; nations that ignore it receive the rules. A Nigerian computer scientist fluent in post-quantum security is not a luxury โ€” she is national infrastructure.
Debate format for class: split into two benches โ€” "publish openly" vs "restrict" โ€” then swap sides halfway. Arguing the side you disagree with is where the deepest learning happens.
Check yourself ยท 1
Which application was quantum computing literally invented for (Feynman, 1981)?
โœ” Feynman's founding argument: quantum systems (like molecules) are impossibly expensive for classical computers to simulate โ€” so simulate them with a quantum machine. Chemistry and materials remain the most natural application.
Check yourself ยท 2
Breaking RSA encryption with Shor's algorithm needs machines far bigger than today's. Why are banks acting already?
โœ” Encrypted data intercepted today can sit in storage until quantum machines can crack it. Anything that must stay secret for 10+ years needs quantum-safe protection now โ€” which is why post-quantum cryptography migration has already begun worldwide.
Topic 9

The Architecture of a Quantum Computer

What is actually inside those golden "chandelier" machines you see in photos? Let us open one up, layer by layer โ€” from a computer-science point of view.

The golden chandelier, explained

That famous golden structure is not the computer โ€” it is mostly the fridge (a dilution refrigerator). Each layer downward is colder, and the actual quantum chip โ€” about the size of a thumbnail โ€” sits at the very bottom at โ‰ˆ 0.015 K, colder than outer space. ๐Ÿ‘‰ Click each layer below.

Interactive ยท Inside the machine (click the layers)

Room temperature plateโ‰ˆ 300 K (27 ยฐC) First cooling stageโ‰ˆ 50 K Second stageโ‰ˆ 4 K (liquid helium) Still & cold platesโ‰ˆ 0.1 K QUANTUM CHIPโ‰ˆ 0.015 K Click a layer โ†’
Each golden disc is one cooling stage of the dilution refrigerator. Signals travel down through careful cables, getting filtered at every stage so no heat or noise reaches the chip at the bottom.
CONTROL ELECTRONICS Classical hardware generating microwave pulses = the gates (sits OUTSIDE the fridge, at room temperature) YOUR LAPTOP โ˜๏ธ Python + Qiskit code travels over the internet to the control system, and the histogram travels back.

The five layers every computer scientist should name

Just as a classical computer has layers (transistor โ†’ logic gate โ†’ CPU โ†’ operating system โ†’ application), a quantum computer has a clean layered architecture:

#LayerWhat it isClassical cousin
1Physical layerThe qubits themselves + the fridge, lasers, shielding keeping them aliveTransistors on silicon
2Control layerClassical electronics firing precise microwave/laser pulses โ€” each pulse is a quantum gateClock + control circuitry
3Gate / circuit layerSequences of quantum gates (H, X, CNOTโ€ฆ) arranged into circuits โ€” the quantum "program"Logic gates โ†’ machine code
4Software layerLanguages & compilers: Qiskit (IBM, Python), Cirq (Google), Q# (Microsoft). Translates your code into pulse schedulesOS, compilers, Python
5Application layerThe actual algorithms: Shor, Grover, chemistry simulation, quantum machine learningApps: Word, browsers, ML models
Where our course lives Our practicals (Part B) live in layers 3, 4 and 5: we design circuits, write them in Qiskit (Python), and build quantum machine learning applications. Layers 1 and 2 belong to physicists and hardware engineers โ€” we only need to understand them, not build them. Exactly as a web developer understands but does not manufacture CPUs.

One job's journey through the machine

1. WriteQiskit code (laptop) 2. Compilecircuit โ†’ pulses 3. Executepulses hit qubits 4. Measurecollapse โ†’ 0s & 1s 5. Repeat ร—1000histogram back to you
Check yourself ยท 1
In the famous photos, the golden "chandelier" structure is mostlyโ€ฆ
โœ” The chandelier is the fridge. Each golden plate is a colder stage, ending near 0.015 K where the small chip lives. Great exam distinction: the computer is tiny; the life-support is enormous.
Check yourself ยท 2
A student writes Qiskit code in Python. Which architecture layers will she work in during our practicals?
โœ” Our work is circuits (layer 3), Qiskit software (layer 4), and QML applications (layer 5). The cloud carries our circuits to IBM's physical machine and returns the histogram โ€” the exact workflow of Part B.
Topic 10 ยท The destination

Quantum and Machine Learning

The two biggest ideas in modern computing, joined. This page bridges everything you have learned into the first topic of the practical course.

First, machine learning in one minute

Machine learning (ML) is teaching a computer by examples instead of by rules. You do not write "if the fruit is yellow and curved, it is a banana" โ€” you show the computer 1,000 photos of bananas and oranges, and it works out the pattern by itself.

1 ยท Data

Examples with answers: photos labelled "banana"/"orange", past house prices, past exam scores.

2 ยท Model

A flexible mathematical machine with adjustable knobs (parameters/weights). A neural network is the most famous model.

3 ยท Training

Show the data, measure the mistakes (loss), nudge the knobs to reduce mistakes, repeat thousands of times. The nudging recipe is backpropagation + gradient descent.

Interactive ยท Watch a machine "learn"

This tiny model must learn to separate โ–  oranges from โ–  bananas by moving a dividing line. Press Train and watch the mistakes (loss) fall step by step โ€” this is the heart of all machine learning.

Now โ€” why bring quantum into it?

Machine learning is, under the bonnet, mountains of linear algebra โ€” multiplying huge grids of numbers (vectors and matrices). And here is the beautiful coincidence:

The deep connection A quantum computer's natural language is linear algebra. The state of n qubits is a vector in a 2โฟ-dimensional space, and every quantum gate is a matrix multiplying it. So a quantum computer performs certain enormous linear-algebra operations natively, in physics, in one step โ€” operations a classical computer must grind through number by number.

Quantum Machine Learning (QML) โ€” the idea

QML uses quantum computers to do part of the machine-learning work. Today's standard recipe is the hybrid loop โ€” remember the classicalโ€“quantum partnership from Page 7:

CLASSICAL COMPUTER ยท Holds the dataset ยท Computes the loss (mistakes) ยท Updates the knobs ฮธ (optimiser / backpropagation) QUANTUM COMPUTER ยท Encodes data into qubits ยท Runs parameterised circuit U(ฮธ) ยท Measures โ†’ predictions (the "quantum neural network") send data + current knobs ฮธ โ†’ โ† return measured results (histogram) โ€ฆloop until the mistakes stop reducing. This whole loop is Part B, practical by practical.

The dictionary: every ML idea has a quantum twin

Classical ML conceptQuantum twinWhere you'll meet it in Part B
Input features (numbers)Data encoding โ€” rotating qubits by angles that represent the dataQuantum circuits practical
Neural network layersParameterised quantum circuit โ€” gates with adjustable rotation angles ฮธQuantum neural network in Python
Weights / parametersThe rotation angles ฮธQNN practical
Prediction (output)Measurement statistics (the histogram!)Plotting histogram practical
BackpropagationParameter-shift rule โ€” run the circuit at shifted angles to find the gradientBackpropagation practical
Training loopThe hybrid loop in the diagram aboveML algorithms for QC practical
Randomness in dataQuantum probability โ€” e.g., a Hadamard gate = a perfect coin tossQiskit coin-tossing practical
Look at that table again Every practical topic in the course outline โ€” quantum neural networks, backpropagation, quantum circuits, ML algorithms, histograms, Qiskit coin tossing โ€” appears in the right-hand columns. Part A has quietly prepared you for every single one. The coin you spun on Page 1 is the Hadamard gate you will program in Part B.

Honest expectations (important for a teacher)

  • QML is young. Today's quantum computers are small and noisy; QML has not yet beaten classical ML on big real-world problems. We teach it because the field is being built right now โ€” and our students can be builders, not just users.
  • The skills transfer. Learning QML forces mastery of linear algebra, probability, Python and ML fundamentals โ€” valuable even outside quantum.
  • Everything we need is free: Python, Qiskit, and IBM's cloud machines.
  • One quiet trend to keep in your pocket: the field is drifting toward teams of small models working together โ€” like a committee of wise elders โ€” rather than one giant brain. Hold that picture loosely; it will grow on its own as the course continues.
โ˜• Pause & Think ยท Class discussion
When a machine "learns", is it really learning โ€” or only calculating? And is there a difference?

Machine learning borrowed a human word โ€” learning โ€” for a mathematical process of adjusting numbers. The model that recognises a banana has never tasted one, never peeled one, never shared one with a friend. Does it know what a banana is? Now be careful before you laugh โ€” someone may ask the same of a student who memorises definitions for an exam without ever using them. What, truly, is the difference between knowing and performing?

Alan Turing (1950) proposed a practical test: if a machine's answers are indistinguishable from a human's, what grounds remain for denying it thinks? Judge the behaviour, he suggested, since we cannot open the mind.
John Searle (1980) answered with the famous Chinese Room: a man in a room follows rule-books to answer notes in perfect Chinese โ€” without understanding one word. Flawless performance, zero understanding. Searle says all programs are that man.
The teacher's mirror: this ancient debate is also a theory of education. If performance without understanding is not learning for machines, it is not learning for students either โ€” which is exactly why this course makes you build, predict and argue, not just memorise.
Ask the class: how would you PROVE to someone that you understand something, beyond passing a test on it? Their answers will quietly describe good science.
Check yourself ยท 1
In hybrid quantum machine learning, what job does the QUANTUM computer do?
โœ” The quantum processor is the model: encode data โ†’ run circuit U(ฮธ) โ†’ measure. The classical computer keeps the data, computes the loss and updates ฮธ. Partnership, not replacement.
Check yourself ยท 2
Why is a quantum computer naturally suited to machine learning mathematics?
โœ” The deep connection: n qubits live in a 2โฟ-dimensional vector space and every gate is a matrix operation. The heavy linear algebra of ML is the quantum computer's mother tongue.
Check yourself ยท 3
The "Qiskit probability โ€” tossing of a coin" practical connects to which Part A idea?
โœ” The spinning coin from Page 1 becomes real code: one Hadamard gate + one measurement = a true quantum coin toss, and 1,000 shots give the histogram. Theory and practice meet exactly here.
Revision

Final Revision Quiz

Ten questions covering the whole of Part A. Answer all, then check your score at the bottom. Suitable as a class test template.

Question 1
The basic unit of quantum information is theโ€ฆ
โœ” The qubit โ€” which can be made from many physical things (circuits, ions, photons), but mathematically is always the same object.
Question 2
Superposition means a qubitโ€ฆ
โœ” The spinning coin: a weighted blend of both states at once, collapsing to one answer on measurement.
Question 3
n qubits in superposition can represent how many possibilities simultaneously?
โœ” 2โฟ โ€” doubling with every qubit. 10 qubits โ†’ 1,024; 50 qubits โ†’ over a quadrillion.
Question 4
Who proposed quantum computing in 1981โ€“82, and whose 1994 algorithm made the world take notice?
โœ” Feynman (1981โ€“82, after Benioff) โ†’ Deutsch (1985, formal model) โ†’ Shor (1994, factoring threatens RSA) โ†’ Grover (1996, fast search).
Question 5
IBM's and Google's qubits are built fromโ€ฆ
โœ” Superconducting circuits at โ‰ˆ โˆ’273 ยฐC. Trapped ions = IonQ/Quantinuum; photons = Xanadu/PsiQuantum; annealers = D-Wave.
Question 6
Entanglement is best described asโ€ฆ
โœ” A shared state with guaranteed correlation โ€” "spooky action at a distance" โ€” but no faster-than-light messaging, since each individual outcome is random.
Question 7
Reading (measuring) a qubitโ€ฆ
โœ” Measurement collapses the state โ€” hence many "shots" and histograms, and hence no-cloning makes quantum cryptography possible.
Question 8
Which is NOT a leading application area of quantum computing?
โœ” Quantum computers are specialists โ€” everyday tasks like opening Word stay with classical machines forever (and that's fine).
Question 9
In the five-layer architecture, Qiskit (Python) lives in theโ€ฆ
โœ” Physical โ†’ Control โ†’ Circuit โ†’ Software (Qiskit) โ†’ Application. Our course works in layers 3โ€“5 via the cloud.
Question 10
In hybrid quantum machine learning, the quantum computer plays the role of theโ€ฆ
โœ” Quantum = the model (encode โ†’ circuit U(ฮธ) โ†’ measure). Classical = data, loss, and knob-updating. The loop between them is the whole of Part B.

Your score

0 / 10

Answer the questions above โ€” your score updates automatically.

โ˜• Pause & Think ยท The closing question
The computing revolution made some nations rich twice โ€” once for building chips, once for building software. Quantum is at that same doorway. Where should Africa stand?

The fridges and chips may be built abroad โ€” but Qiskit is free, the cloud is open, and the algorithms are unwritten. The nations that won the internet era were not only the chip-makers: they were the ones whose young people built solutions. You, reading this in Nigeria, have the same access to IBM's quantum computers as a student in New York โ€” this very material proves it. So the honest question is not "can we participate?" It is: what will you build?

The leapfrog lesson: Africa largely skipped landlines and jumped straight to mobile โ€” and built M-Pesa, mobile banking the West later copied. Technologies in their early days reward newcomers who solve their own problems with them.
Feynman's blackboard (1988): at his death, his blackboard read "What I cannot create, I do not understand." Creation is the deepest test of knowledge โ€” and the invitation of this entire course.
Dr. Ophori's classroom principle: the human is the author; the computer is the pen. Quantum computers will be the most powerful pens ever made โ€” and pens do not choose what gets written.
Close the class with this: each student writes one sentence โ€” "If I had a quantum computer, the Nigerian problem I would point it at is ______." Collect them. That page is a research agenda.
What comes next โ€” Part B With Part A complete, the class is ready for the practical series: 1. Quantum & machine learning (deepened) ยท 2. Implementing a quantum neural network in Python ยท 3. Backpropagation ยท 4. Quantum circuits ยท 5. ML algorithms for quantum computing ยท 6. Plotting histograms ยท 7. Qiskit probability โ€” tossing of a coin. Every one of them plugs directly into a concept from this material.