👩‍🏫 Buddharaju Sunayana
23PY3103 · 3 Credits · ANITS
⚛ Fundamentals of Quantum Computing
23PY3103 · UG Level · 3 Credits · 50 Lectures

Fundamentals of Quantum Computing

A UG-level course bridging quantum mechanics and computation, equipping students with the theory and mathematics of quantum information processing.

📄 Download Syllabus (PDF)
👩‍🏫
Instructor
Buddharaju Sunayana
Department of Information Technology · ANITS
Course Code
23PY3103
Credits
3 (L:3 T:0 P:0)
Sessional
40 Marks
End Exam
60 Marks · 3 hrs

📌 Prerequisites

  • Classical Computing: Binary numbers, logic gates, Boolean algebra
  • Basics of Quantum Mechanics (wave functions, energy levels)
  • Linear Algebra: Vectors, matrices, eigenvalues
  • Complex Numbers: Arithmetic, modulus, complex conjugate
🆕 New here? Start with Prerequisite Foundations in the sidebar — nine short topics (Newton → Planck → Einstein → Bohr → de Broglie → Schrödinger → Born → Boolean logic) that build the physics you need before Unit I begins, plus a 10-question quiz. Begin with P.1 →

🎯 Course Outcomes

COLearning Outcome
CO-1Understand fundamental principles of quantum mechanics relevant to quantum computing
CO-2Represent quantum information using qubits and quantum gates
CO-3Analyze entanglement and its role in transmitting classical information non-locally
CO-4Analyze Bell's theorem and its implications on quantum predictions
CO-5Identify practical applications of quantum information theory, such as quantum cryptography

🌍 Why Quantum Computing? — Real-World Applications

🔐

Cybersecurity

Shor's algorithm breaks RSA in polynomial time. Quantum Key Distribution (BB84) enables provably unbreakable encryption. Post-quantum cryptography is now a national security priority worldwide.

💊

Drug Discovery

Quantum simulation of molecular interactions at the quantum level. Google's quantum computer simulated a simple molecule (H₂) exactly. Accelerates protein folding and drug design by years.

🤖

Artificial Intelligence

Quantum machine learning may speed up training of large neural networks. QSVM and Quantum PCA offer exponential speedups over classical ML algorithms for certain dataset types.

📦

Logistics & Optimisation

Solving travelling salesman, supply-chain routing, and financial portfolio optimisation. Airlines and logistics companies already run quantum experiments for route optimisation.

Energy & Materials

Designing next-generation battery materials, room-temperature superconductors, and efficient solar cells. Quantum simulation is essential for understanding complex molecular interactions.

🌱

Climate & Environment

Quantum simulation of nitrogen fixation for greener fertilizers. Modelling atmospheric chemistry for better climate predictions. Optimising energy grid distribution.

🏦

Finance

Portfolio optimisation, risk analysis, and option pricing using quantum Monte Carlo. JPMorgan Chase and Goldman Sachs are actively developing quantum finance algorithms.

🧬

Genomics

Accelerating DNA sequence alignment and protein structure prediction. Quantum algorithms reduce exponential classical complexity to manageable scales for bioinformatics.

📋 Course Structure

UnitTitleTopicsLectures
IFundamentals of Quantum MechanicsWave function, Schrödinger equation, Qubits, Math preliminaries10
IISingle Qubit Quantum SystemsHilbert space, Bloch sphere, Quantum gates10
IIIMultiple Qubit Systems & EntanglementTwo-qubit systems, Bell states, CNOT gate10
Assignment 1 (after Unit III)
IVMeasurement and Bell's TheoremProjection operators, EPR paradox, Bell's inequality10
VQuantum Circuits and ApplicationsCircuits, Multi-qubit gates, Teleportation, Cryptography10
Assignment 2 (after Unit V)
Case Study (end of course)

1. The Classical Worldview

Before 1900, physics rested on Newton's three laws of motion and universal gravitation. The central assumption was determinism: if you know a particle's position and velocity at one instant, and all the forces acting on it, Newton's second law lets you calculate its exact position and velocity at every future instant.

$$\vec{F}=m\vec{a}=m\frac{d^2\vec{x}}{dt^2}$$

This means classical physics assumes a particle simultaneously possesses a well-defined position x and momentum p at all times — there is no in-principle limit to how precisely both can be known together.

t₀ t₁: x,v exact t₂: x,v exact t₃ Newtonian Trajectory — One Definite, Predictable Path
Classical determinism: a single exact point (x,p) moves smoothly through phase space

2. Cracks in the Classical Edifice

By 1900, four experimental results stubbornly refused to fit Newtonian and Maxwellian physics:

  • Blackbody radiation — classical theory predicted infinite energy at short wavelengths (the "ultraviolet catastrophe")
  • The photoelectric effect — ejected electron energy depended on light frequency, not intensity, contradicting wave theory
  • Atomic stability — an orbiting electron should radiate energy continuously and spiral into the nucleus in ~10⁻¹¹ s, yet atoms are stable
  • Discrete spectral lines — atoms emit/absorb light only at sharp, specific frequencies, not a continuous range
🔑 Every prerequisite topic in this unit (P.2–P.9) is the story of physicists solving one of these four cracks — and in doing so, inventing quantum mechanics.

3. The Correspondence Principle

Quantum mechanics did not discard Newton — it had to reduce to Newtonian mechanics for large, macroscopic, or high-quantum-number systems. Bohr called this the correspondence principle. Formally, Ehrenfest's theorem shows that the expectation values of quantum operators obey Newton's laws:

$$\frac{d\langle p\rangle}{dt}=-\left\langle\frac{\partial V}{\partial x}\right\rangle \quad\text{(the quantum analogue of } F=ma\text{)}$$

🔗 Why This Matters for Quantum Mechanics

  • Quantum mechanics must reproduce Newtonian predictions in the classical (macroscopic) limit — this is a built-in consistency check used throughout the course
  • The Hamiltonian $H = \text{KE}+\text{PE}$ from classical mechanics is promoted directly to the operator $\hat{H}$ in Schrödinger's equation, $i\hbar\,\partial\psi/\partial t=\hat{H}\psi$ (see Unit 1.1)
  • The four classical failures listed above are precisely what topics P.2–P.9 resolve, one by one

1. Two Rival Pictures of Light

Newton (1670s) argued light was a stream of tiny corpuscles, explaining straight-line propagation and reflection. Huygens, Young, Fresnel, and finally Maxwell (1865) built an overwhelming case for light as a wave — an oscillating electromagnetic field. Young's 1801 double-slit experiment was decisive: two coherent light sources produced an interference pattern of bright and dark fringes, a signature only waves can create.

EvidenceSupports
Young's double-slit interference (1801)Wave
Diffraction around obstacles/edgesWave
Maxwell's electromagnetic wave equations (1865)Wave
Photoelectric effect (1905, see P.4)Particle
Compton scattering (1923)Particle
Wave Picture Interference & diffraction Particle Picture Photoelectric & Compton effect Both are true — complementary faces of the photon
Same light, two experimental faces

2. The Photon Strikes Back

Einstein's 1905 explanation of the photoelectric effect (P.4) showed light also behaves as discrete quanta — photons — each carrying energy $E=hf$. So by the early 1900s, interference experiments said "wave," while the photoelectric and Compton effects said "particle." Both bodies of evidence were airtight.

3. Resolution: Complementarity

Bohr's complementarity principle resolves the apparent contradiction: wave and particle descriptions are both necessary for a complete account of light, but no single experiment ever forces both to appear simultaneously. In the double-slit experiment, if you place a detector at the slits to learn "which path" a photon took (particle-like information), the interference pattern (wave-like behaviour) vanishes.

💡 "Which-path" information and interference are mutually exclusive — this trade-off reappears throughout quantum mechanics as a form of the uncertainty principle.

🔗 Why This Matters for Quantum Mechanics

  • Wave–particle duality is the seed from which all of quantum mechanics grows
  • De Broglie (P.6) extends this duality to all matter, not just light — giving every particle a wavefunction $\psi$
  • Superposition and interference of qubit states (Units II–III) is the mathematical addition of wave amplitudes; measurement (Born's Rule, P.8) collapses this to one definite, particle-like outcome

1. The Ultraviolet Catastrophe

A blackbody (an idealised perfect absorber/emitter) radiates energy across all wavelengths. Classical physics (the Rayleigh–Jeans law) treated the radiation as continuous waves and predicted the emitted intensity should diverge to infinity at short (ultraviolet) wavelengths — obviously wrong, since real blackbodies emit a finite, measurable total energy.

$$u(\nu)\;\propto\;\nu^{2}kT \quad\Rightarrow\quad u\to\infty \text{ as } \nu\to\infty\ \text{(classical prediction — the "UV catastrophe")}$$
wavelength → intensity Rayleigh–Jeans (classical) → diverges Planck's law (matches experiment)
The ultraviolet catastrophe vs. Planck's quantised radiation curve

2. Planck's Radical Assumption (1900)

Max Planck found he could match the experimental curve perfectly only if he assumed the cavity's oscillators exchange energy with the field not continuously, but in discrete packets ("quanta"):

$$E = nhf,\qquad n = 0,1,2,3,\ldots \qquad h = 6.626\times10^{-34}\ \text{J·s}$$

Planck himself initially regarded this as a mathematical trick to fit the data, not yet believing energy was truly quantised in nature.

3. Birth of the Quantum

December 14, 1900 — the day Planck presented this result — is traditionally cited as the birthdate of quantum theory. The constant $h$ (Planck's constant) becomes the fundamental scale of all quantum phenomena.

🔗 Why This Matters for Quantum Mechanics

  • Planck's constant $h$ (or $\hbar=h/2\pi$) appears throughout quantum mechanics: in Schrödinger's equation, in Heisenberg's uncertainty principle $\Delta x\,\Delta p\ge\hbar/2$, and in every energy-level spacing you will compute in this course
  • Energy quantisation is the literal origin of the word "quantum" — and of quantized qubit energy levels used to implement quantum gates

1. The Puzzle

When light strikes a metal surface, electrons are sometimes ejected. Classical wave theory predicted the ejected electrons' kinetic energy should increase with light intensity. Experiment showed something else entirely:

  • Electron kinetic energy depends on light frequency, not intensity
  • Below a threshold frequency $f_0$, no electrons are ejected — no matter how intense the light
  • Emission is essentially instantaneous, with no measurable time delay

2. Einstein's 1905 Postulate

Einstein proposed that light itself is quantised into discrete photons of energy $E=hf$ (extending Planck's idea from oscillators to light itself). Each photon interacts with exactly one electron in a single event:

$$KE_{max}=hf-\phi$$

where $\phi$ is the metal's work function (minimum energy needed to free an electron). This single equation explains every experimental feature: below $f_0=\phi/h$ a photon simply doesn't carry enough energy to free an electron, regardless of how many photons (intensity) arrive.

Metal surface photon hf e⁻ ejected (KE) f₀ f → KE slope = h
One photon, one electron — and KE grows linearly with frequency

3. Confirmation & Nobel Prize

Robert Millikan's precision experiments (1916) confirmed the exact linear relation and measured $h$ independently, matching Planck's value. Einstein received the 1921 Nobel Prize in Physics specifically "for his discovery of the law of the photoelectric effect" — not for relativity.

🔗 Why This Matters for Quantum Mechanics

  • This was the first direct proof that light quanta (photons) are real particles carrying discrete energy — establishing the particle side of duality (P.2) and confirming $E=hf$ (P.3)
  • It sets the template for how any quantum system — including a qubit — absorbs or emits exactly one quantum of energy during a state transition

1. The Atomic Stability Problem

Rutherford's 1911 nuclear model placed electrons in orbit around a tiny, dense nucleus. But classical electromagnetism says an accelerating (orbiting) charge must continuously radiate energy — the electron should spiral into the nucleus in about $10^{-11}$ s. Real atoms are stable, and they emit light only at sharp, discrete frequencies (e.g. the hydrogen Balmer series) — both facts were unexplainable classically.

2. Bohr's Postulates (1913)

  1. Electrons occupy special stationary orbits in which they do not radiate, defying classical electrodynamics
  2. Angular momentum in these orbits is quantised: $L=n\hbar,\ n=1,2,3,\ldots$
  3. A photon is emitted or absorbed only when an electron jumps between orbits: $\Delta E = hf = E_i-E_f$
$$E_n=-\frac{13.6\ \text{eV}}{n^2}\quad\text{(hydrogen atom energy levels)}$$
n=3 n=2 n=1 photon ΔE=hf L = nℏ (quantised orbits)
Electron jumps from n=3 to n=2, emitting one photon of energy ΔE

3. Success and Limits

Bohr's model correctly predicted the hydrogen spectral lines with remarkable accuracy, but failed for atoms with more than one electron, and its quantisation rule was an ad-hoc postulate bolted onto classical orbits rather than derived from a deeper theory.

🔗 Why This Matters for Quantum Mechanics

  • Bohr's quantised orbits are superseded by Schrödinger's full quantum treatment (boundary-condition quantisation, as in the particle-in-a-box of Unit 1.1), but the core idea survives exactly: energy takes only discrete eigenvalues $E_n$
  • Transitions between energy levels, absorbing/emitting one photon $\Delta E=hf$, is the same mechanism used to control and read out real qubits (e.g. microwave photons driving transitions in a superconducting qubit)

1. A Bold Symmetry Argument (1924)

Louis de Broglie reasoned: if light (traditionally a wave) can behave like particles (photons, P.4), then perhaps particles (like electrons) can behave like waves. He proposed a single universal relation linking a particle's momentum to a wavelength, for any matter:

$$\lambda=\frac{h}{p}=\frac{h}{mv}$$

2. Experimental Confirmation

The Davisson–Germer experiment (1927) fired electrons at a nickel crystal and observed a diffraction pattern — exactly as predicted by treating electrons as waves of wavelength $\lambda=h/p$. Macroscopic objects don't show visible wave effects simply because $\lambda$ is immeasurably tiny for large mass and momentum (a thrown ball has $\lambda\sim10^{-34}$ m).

λ = h/p Electron as a matter wave Davisson–Germer diffraction rings
Electrons diffract like waves — matter has a wavelength

3. Quantisation Reinterpreted

De Broglie's hypothesis gives a beautiful, non-arbitrary explanation for Bohr's quantisation rule (P.5): an orbit is stable only if its circumference is a whole number of de Broglie wavelengths — $2\pi r = n\lambda$ — a standing-wave condition, not an ad-hoc postulate.

🔗 Why This Matters for Quantum Mechanics

  • De Broglie's hypothesis is the direct bridge to Schrödinger's wave mechanics (P.7) — Schrödinger built his equation by requiring solutions whose wavelength/momentum relation matches $\lambda=h/p$ exactly
  • Superposition of qubit basis states $|0\rangle,|1\rangle$ is mathematically the addition of matter waves, exactly as de Broglie envisioned for every particle, not just photons

1. Building on de Broglie

In 1926, Erwin Schrödinger sought a wave equation whose solutions $\psi$ carry exactly de Broglie's wavelength–momentum relation ($\lambda=h/p$, P.6), and whose time evolution correctly reproduces classical mechanics in the appropriate (large-scale) limit.

$$i\hbar\frac{\partial\psi}{\partial t}=\hat{H}\psi$$

2. What the Equation Does

$\psi$ is a complex probability amplitude encoding everything knowable about a quantum system. Crucially, the equation is linear: if $\psi_1$ and $\psi_2$ are solutions, so is any combination $c_1\psi_1+c_2\psi_2$ — this is exactly the mathematical superposition that makes qubits possible.

📘 This equation is developed in full detail — including the particle-in-a-box solution and quantised energy levels — in Unit 1.1: Wave Function & Schrödinger Equation.
Wave Packet ψ(x,t) — localized & oscillating Governed by iℏ ∂ψ/∂t = Ĥψ
A wave packet: the envelope (dashed) localises the particle; the oscillation (solid) carries its momentum

🔗 Why This Matters for Quantum Mechanics

  • This is literally the central equation of quantum mechanics — every result in this course (qubit states, gates, entanglement, measurement) is a solution or consequence of it
  • Treat this page as a preview; Unit 1.1 gives the complete derivation and the particle-in-a-box case that underlies discrete qubit energy levels

1. What Does ψ Mean?

The Schrödinger equation (P.7) produces a wave function $\psi$, but what is it physically? Schrödinger himself initially guessed $|\psi|^2$ was a smeared-out charge density. The correct interpretation was given by Max Born in 1926.

2. Born's Statistical Interpretation

$$P(x,t)\,dx = |\psi(x,t)|^2\,dx$$

$|\psi|^2$ is the probability density of finding the particle in the interval $[x,x+dx]$. This introduced fundamental, irreducible randomness into physics — a sharp break from Newtonian determinism (P.1): even with complete knowledge of $\psi$, only the probabilities of measurement outcomes can be predicted, never a single outcome with certainty. Einstein famously objected: "God does not play dice with the universe."

P(x) = |ψ(x)|² — shaded region x → |ψ|²
The shaded area under |ψ|² between two points is the probability of finding the particle there

3. Normalisation & Measurement

Total probability must equal 1: $\int|\psi|^2dx=1$. Upon measurement, the wave function "collapses" to the eigenstate corresponding to the observed outcome — a postulate that will reappear formally in Unit IV.

🔗 Why This Matters for Quantum Mechanics

  • Born's Rule is the measurement postulate of quantum mechanics, first introduced here for a particle's position
  • It generalises directly to qubits: for $|\psi\rangle=\alpha|0\rangle+\beta|1\rangle$, the probability of measuring $0$ is $|\alpha|^2$ and of measuring $1$ is $|\beta|^2$ — exactly the same rule you'll apply throughout Units II and III

1. Binary Foundation of Classical Computing

Classical computers represent all information as bits — 0 or 1. George Boole (1854) built an algebra of logic operating on TRUE/FALSE values; Claude Shannon (1937) showed that Boolean algebra maps directly onto switching circuits, giving birth to digital logic design.

2. Basic Logic Gates & Truth Tables

ABANDORXOR
00000
01011
10011
11110
AND OR NOT XOR Classical logic gates: deterministic operations on bits 0/1
The four workhorse gates of classical digital logic

3. Limits of Classical Bits and Gates

Except for NOT, classical logic gates are irreversible: an AND gate's single output bit cannot tell you which of the four input combinations produced it — information is destroyed. Landauer's principle shows this has a real physical cost: erasing one bit of information dissipates at least $kT\ln2$ of energy as heat.

🔗 Why This Matters for Quantum Mechanics

  • Quantum computing generalises this exact framework: bit → qubit, classical logic gate → quantum gate — a unitary matrix acting on qubit amplitudes, and therefore always reversible
  • Understanding Boolean algebra and truth tables here is essential before Unit II (single-qubit gates) and Unit V (quantum circuits), where you'll see how X, H, and CNOT relate to and extend classical NOT, OR, and XOR

Form not loading? Open it in a new tab →

1. The Wave Function ψ

In classical mechanics, the state of a particle is fully described by its position and velocity. Quantum mechanics replaces this with a wave function ψ(x,t) — a complex-valued mathematical function that encodes all knowable information about the particle.

The physical interpretation, given by Born's Rule, is that the probability of finding a particle near position x at time t is:

$$P(x,t) = |\psi(x,t)|^2$$

The wave function must be normalised — the total probability of finding the particle somewhere must equal 1:

$$\int_{-\infty}^{\infty}|\psi(x,t)|^2\,dx = 1$$
💡 ψ itself is not directly observable. Only |ψ|² has physical meaning as probability density. This is the fundamental postulate of quantum mechanics.

2. Wave-Particle Duality

One of the most astonishing results of quantum mechanics is that matter exhibits both wave and particle behaviour. Louis de Broglie (1924) proposed that any particle with momentum p has an associated wavelength:

$$\lambda = \frac{h}{p} = \frac{h}{mv}$$

This was confirmed by the famous double-slit experiment: when electrons are fired one at a time toward a screen with two slits, they produce an interference pattern — possible only if each electron passes through both slits simultaneously as a wave. When we observe which slit the electron uses, the interference pattern vanishes.

Source Slits Double-Slit Experiment — Interference confirms wave nature

3. The Schrödinger Equation

The evolution of the wave function over time is governed by the time-dependent Schrödinger equation:

$$i\hbar\frac{\partial\psi}{\partial t} = \hat{H}\psi = \left[-\frac{\hbar^2}{2m}\frac{\partial^2}{\partial x^2} + V(x)\right]\psi$$

Here, ℏ = h/2π is the reduced Planck constant and V(x) is the potential energy. For time-independent problems we seek stationary states satisfying:

$$\hat{H}\psi = E\psi \qquad (\text{time-independent Schrödinger equation})$$

This is an eigenvalue equation: ψ is the eigenfunction and E is the eigenvalue (energy).

4. Particle in a 1D Box — Eigenfunctions and Eigenvalues

The simplest quantum system: a particle trapped between x = 0 and x = L, with V = 0 inside and V = ∞ outside. Solving the TISE gives quantised solutions:

$$\psi_n(x) = \sqrt{\frac{2}{L}}\sin\!\left(\frac{n\pi x}{L}\right), \quad E_n = \frac{n^2\pi^2\hbar^2}{2mL^2}, \quad n = 1,2,3,\ldots$$
  • Energy is quantised — only discrete values E₁, E₂, E₃,… are allowed
  • The ground state (n=1) has nonzero zero-point energy — a consequence of the uncertainty principle
  • Eigenfunctions are orthonormal: ∫ψₘ*ψₙ dx = δₘₙ
  • Higher n → more nodes → higher energy
🔑 Key quantum insight: energy quantisation emerges naturally from the boundary conditions — not imposed artificially. This principle underlies all quantum computing.
1/5

Wave-Particle Duality

  • Every particle has an associated wavelength: λ = h/p
  • Double-slit experiment: electrons create interference patterns
  • Wave nature is intrinsic — not a model limitation
1 / 5

⚡ Assessment Quiz

1
2
3
4
5

Q1. What does |ψ|² represent?

Q2. De Broglie's wavelength formula λ = h/p relates wavelength to:

Q3. The time-independent Schrödinger equation is:

Q4. For a particle in a 1D box, the ground state energy is:

Q5. Eigenfunctions of the Hamiltonian correspond to states with:

🔬 Wave Function Visualizer

Energy E₁ = π²ℏ²/2mL²
🎙
Quantum Computing Podcast
Wave Function & Schrödinger Equation
0:00
Transcript:
Welcome to Unit 1, Topic 1: Wave Function and the Schrödinger Equation. In classical physics, we can know exactly where a particle is and how fast it moves. Quantum mechanics tells us something more subtle: particles are described by a wave function, psi, which encodes all the information we can know about a system. The square of the wave function gives us the probability of finding the particle at a given location—this is Born's Rule. The wave function must be normalized, meaning total probability equals one. Now, how does this wave function evolve over time? Through the Schrödinger equation, which plays the same role in quantum mechanics as Newton's second law in classical mechanics. For energy-conserved systems, we seek stationary states—eigenfunctions of the Hamiltonian—each with a definite energy eigenvalue. The simplest example is a particle trapped in a one-dimensional box. The solutions are standing waves, with quantized energies proportional to n-squared. The ground state always has nonzero energy—the famous zero-point energy—a direct consequence of the Heisenberg uncertainty principle. Wave-particle duality, demonstrated by the double-slit experiment, shows that particles exhibit interference patterns just like waves. This wave nature is what makes quantum computing fundamentally different from classical computing.

📚 Textbooks

Quantum Computation and Quantum Information
M. A. Nielsen & I. L. Chuang — Cambridge University Press
🔗 Publisher
Quantum Computer Science: An Introduction
N. David Mermin — Cambridge University Press
🔗 Publisher
An Introduction to Quantum Computing
Kaye, Laflamme & Mosca — Oxford University Press
🔗 Publisher

📖 Reference Books

Quantum Computing
V. Sahni — Tata McGraw-Hill
Quantum Computing: A Gentle Introduction
E. Rieffel & W. Polak — MIT Press
🔗 MIT Press
Lecture Notes on Quantum Computation
John Preskill — Caltech (Free Online)
🔗 Caltech

🌐 Online Resources

IBM Quantum Learning
🔗 learning.quantum.ibm.com
Qiskit Textbook
🔗 qiskit.org/learn
Quantum Computing Playground (Google)
🔗 quantumplayground.net

1. Limits of Classical Computing

Classical computers process information as bits (0 or 1). They are extraordinarily capable, but face fundamental physical limits:

  • Moore's Law slowdown: Transistors are approaching atomic scale — quantum tunnelling causes errors
  • Exponential scaling: Simulating n quantum particles requires 2ⁿ classical bits — infeasible beyond ~50 particles
  • NP-hard problems: Factoring large numbers, combinatorial optimisation — no known efficient classical algorithm
📊 A quantum computer with 300 entangled qubits can represent more states simultaneously than there are atoms in the observable universe.

2. Classical vs. Quantum Computing

FeatureClassicalQuantum
Basic unitBit (0 or 1)Qubit (superposition)
OperationsBoolean gates (AND, OR, NOT)Unitary quantum gates
ParallelismMultiple threadsQuantum parallelism (exponential)
Error modelDeterministicProbabilistic + decoherence
Memory (n bits)n bits of information2ⁿ amplitudes
Best useGeneral purpose, I/OSimulation, cryptography, optimisation

3. Decoherence

Decoherence is the process by which quantum systems lose their quantum properties through interaction with the environment. It is the primary obstacle to building practical quantum computers.

  • Caused by thermal noise, electromagnetic interference, vibration, cosmic rays
  • Superconducting qubits require cooling to ~15 millikelvin (colder than deep space)
  • Coherence time: typical qubits maintain their state for microseconds to milliseconds
  • Quantum error-correcting codes (surface codes) use multiple physical qubits per logical qubit

4. Key Applications

Cryptography: Shor's algorithm can factor an n-bit integer in O(n³) quantum time vs O(exp(n^⅓)) classically — breaking RSA. Quantum Key Distribution (BB84) enables provably secure communication.

Optimisation: Grover's algorithm searches N-element databases in O(√N) vs O(N) classically. QAOA (Quantum Approximate Optimisation Algorithm) tackles logistics, finance, and drug design.

Simulation: Quantum computers can exactly simulate quantum systems (molecules, materials) in polynomial time — enabling drug discovery and materials science breakthroughs.

$$\text{Quantum speedup: }\frac{T_{\text{classical}}}{T_{\text{quantum}}} \gg 1 \text{ for certain problem classes}$$
1/5

Limits of Classical Computing

  • Moore's Law slowing — transistors near atomic scale
  • Simulating n qubits needs 2ⁿ classical bits
  • NP-hard problems: no classical polynomial-time solution
1 / 5

⚡ Assessment Quiz

1
2
3
4
5

Q1. Decoherence refers to:

Q2. Shor's algorithm efficiently solves:

Q3. Grover's algorithm achieves which speedup for database search?

Q4. QKD security is guaranteed by:

Q5. Simulating n quantum particles classically requires approximately:

🔬 Interactive Simulation

⚛️

Simulation for this topic

Try the IBM Quantum Experience to run real quantum circuits:

🔗 IBM Quantum 🔗 Quantum Playground
🎙
Quantum Computing Podcast
Why Quantum Computing
0:00
Transcript:
Welcome to Unit 1, Topic 2: Why Quantum Computing? Classical computers have served us extraordinarily well, but they face fundamental limits. Moore's Law—the doubling of transistor density every two years—is slowing down as transistors approach atomic scale. Simulating quantum systems on classical computers requires exponentially more resources: n quantum particles need 2-to-the-n classical bits to simulate. This is simply impossible for large n. Quantum computers overcome this by using qubits, which can exist in superposition, and by exploiting quantum interference to find answers efficiently. Three key application areas make quantum computing transformative. First, cryptography: Shor's algorithm can factor large integers in polynomial time—breaking the RSA encryption that secures the internet. Quantum Key Distribution offers provably secure communication using the laws of physics. Second, optimization: Grover's algorithm searches unsorted databases quadratically faster than any classical algorithm. Third, simulation: quantum computers can model molecular and chemical interactions exactly, accelerating drug discovery and materials science. The main challenge is decoherence—quantum states are fragile and easily disturbed by the environment. But quantum error correction techniques are rapidly maturing, bringing fault-tolerant quantum computers closer to reality.

📚 Textbooks

Quantum Computation and Quantum Information
M. A. Nielsen & I. L. Chuang — Cambridge University Press
🔗 Publisher
Quantum Computer Science: An Introduction
N. David Mermin — Cambridge University Press
🔗 Publisher
An Introduction to Quantum Computing
Kaye, Laflamme & Mosca — Oxford University Press
🔗 Publisher

📖 Reference Books

Quantum Computing
V. Sahni — Tata McGraw-Hill
Quantum Computing: A Gentle Introduction
E. Rieffel & W. Polak — MIT Press
🔗 MIT Press
Lecture Notes on Quantum Computation
John Preskill — Caltech (Free Online)
🔗 Caltech

🌐 Online Resources

IBM Quantum Learning
🔗 learning.quantum.ibm.com
Qiskit Textbook
🔗 qiskit.org/learn
Quantum Computing Playground (Google)
🔗 quantumplayground.net

1. The Classical Bit

The classical bit is the fundamental unit of classical information. It takes exactly one of two values:

$$\text{bit} \in \{0, 1\}$$

Physically realised as: high/low voltage in CMOS circuits, magnetic polarisation in hard drives, optical intensity in fibre optics. The state is always definite and non-destructive to read.

2. The Qubit

A qubit (quantum bit) is the fundamental unit of quantum information. Unlike a classical bit, it can exist in a superposition of |0⟩ and |1⟩:

$$|\psi\rangle = \alpha|0\rangle + \beta|1\rangle$$

where α, β ∈ ℂ are complex probability amplitudes satisfying the normalisation condition:

$$|\alpha|^2 + |\beta|^2 = 1$$

Upon measurement, the qubit collapses: it becomes |0⟩ with probability |α|² or |1⟩ with probability |β|².

⚠️ Superposition is NOT the qubit being "both 0 and 1 at once." It is a single quantum state that yields probabilistic outcomes. Once measured, the superposition is destroyed.

3. Comparison: Bits vs. Qubits

PropertyClassical BitQubit
States0 or 1α|0⟩ + β|1⟩ (superposition)
MeasurementNon-destructiveCollapses superposition
Capacity (n units)n bits2ⁿ complex amplitudes
CopyingFreely copyableNo-cloning theorem prohibits it
CorrelationIndependentCan be entangled
Physical realisationTransistor, flip-flopIon trap, superconducting circuit, photon, NV centre
📌 No-Cloning Theorem: It is impossible to create a perfect copy of an arbitrary unknown quantum state. This is a foundational difference from classical information.
1/5

Classical Bit

bit ∈ {0, 1}
  • Implemented as voltage levels, magnetic domains
  • Deterministic — state always definite
  • Freely copyable
1 / 5

⚡ Assessment Quiz

1
2
3
4
5

Q1. A qubit state |ψ⟩ = α|0⟩ + β|1⟩ must satisfy:

Q2. Measuring a qubit in superposition:

Q3. The No-Cloning Theorem states:

Q4. n qubits can represent how many states simultaneously?

Q5. Qubits are physically realised using:

🔬 Interactive Simulation

⚛️

Simulation for this topic

Try the IBM Quantum Experience to run real quantum circuits:

🔗 IBM Quantum 🔗 Quantum Playground
🎙
Quantum Computing Podcast
Qubits vs. Classical Bits
0:00
Transcript:
Welcome to Unit 1, Topic 3: Qubits versus Classical Bits. A classical bit is either 0 or 1—like a light switch, up or down. A qubit is richer: it can be in a quantum superposition, alpha times zero-ket plus beta times one-ket, where alpha and beta are complex numbers whose squares sum to one. This superposition is not the qubit being both 0 and 1 simultaneously in a naive sense—it is a quantum state that gives probabilistic outcomes upon measurement. Measuring a qubit collapses the superposition: you get 0 with probability alpha-squared, or 1 with probability beta-squared. The measurement is irreversible and probabilistic. A crucial difference from classical bits: the No-Cloning Theorem proves that an unknown quantum state cannot be perfectly copied. This has profound implications for quantum cryptography and error correction. Physically, qubits are realized using ion traps, superconducting circuits at millikelvin temperatures, photons, or nitrogen-vacancy centres in diamond. n qubits together can represent 2-to-the-n amplitudes simultaneously—this is the source of quantum parallelism. A 50-qubit system has more possible states than a classical computer could enumerate in the lifetime of the universe.

📚 Textbooks

Quantum Computation and Quantum Information
M. A. Nielsen & I. L. Chuang — Cambridge University Press
🔗 Publisher
Quantum Computer Science: An Introduction
N. David Mermin — Cambridge University Press
🔗 Publisher
An Introduction to Quantum Computing
Kaye, Laflamme & Mosca — Oxford University Press
🔗 Publisher

📖 Reference Books

Quantum Computing
V. Sahni — Tata McGraw-Hill
Quantum Computing: A Gentle Introduction
E. Rieffel & W. Polak — MIT Press
🔗 MIT Press
Lecture Notes on Quantum Computation
John Preskill — Caltech (Free Online)
🔗 Caltech

🌐 Online Resources

IBM Quantum Learning
🔗 learning.quantum.ibm.com
Qiskit Textbook
🔗 qiskit.org/learn
Quantum Computing Playground (Google)
🔗 quantumplayground.net

1. Dirac (Bra-Ket) Notation

Paul Dirac introduced a compact, powerful notation for quantum states. A ket |ψ⟩ represents a quantum state as a column vector; a bra ⟨ψ| is its conjugate transpose (row vector):

$$|0\rangle = \begin{pmatrix}1\\0\end{pmatrix},\quad |1\rangle = \begin{pmatrix}0\\1\end{pmatrix},\quad \langle 0| = (1,\,0),\quad \langle 1| = (0,\,1)$$

A general qubit: |ψ⟩ = α|0⟩ + β|1⟩. The corresponding bra: ⟨ψ| = (α*, β*).

2. Inner Product and Outer Product

The inner product ⟨φ|ψ⟩ is a complex scalar (overlap amplitude):

$$\langle\phi|\psi\rangle = \phi_0^*\psi_0 + \phi_1^*\psi_1 \in \mathbb{C}$$

Transition probability: P(|φ⟩→|ψ⟩) = |⟨φ|ψ⟩|²

The outer product |ψ⟩⟨φ| is a matrix (operator):

$$|0\rangle\langle 0| = \begin{pmatrix}1&0\\0&0\end{pmatrix},\quad |1\rangle\langle 1| = \begin{pmatrix}0&0\\0&1\end{pmatrix},\quad |0\rangle\langle 1| = \begin{pmatrix}0&1\\0&0\end{pmatrix}$$

3. Matrix Representation of Quantum States

Quantum gates are unitary matrices (U†U = I). Key single-qubit gates:

$$X = \begin{pmatrix}0&1\\1&0\end{pmatrix}\;(\text{NOT}),\quad H = \frac{1}{\sqrt{2}}\begin{pmatrix}1&1\\1&-1\end{pmatrix}\;(\text{Hadamard}),\quad Z = \begin{pmatrix}1&0\\0&-1\end{pmatrix}$$

Applying H to |0⟩: H|0⟩ = (|0⟩+|1⟩)/√2 — creates an equal superposition.

4. Tensor Products

To combine multiple qubits, we use the tensor product ⊗:

$$|0\rangle\otimes|1\rangle = |01\rangle = \begin{pmatrix}0\\1\\0\\0\end{pmatrix},\quad \text{dim}(\mathcal{H}^{\otimes n}) = 2^n$$

A general 2-qubit state: |ψ⟩ = α₀₀|00⟩ + α₀₁|01⟩ + α₁₀|10⟩ + α₁₁|11⟩

🔑 Every additional qubit doubles the state-space dimension. 10 qubits → 1024 dimensions. 300 qubits → more dimensions than atoms in the universe.
1/5

Bra-Ket Notation

|0⟩ = (1,0)ᵀ |1⟩ = (0,1)ᵀ
⟨ψ| = (|ψ⟩)† = conjugate transpose
1 / 5

⚡ Assessment Quiz

1
2
3
4
5

Q1. In bra-ket notation, |ψ⟩ represents:

Q2. The Hadamard gate H applied to |0⟩ gives:

Q3. The inner product ⟨φ|ψ⟩ gives:

Q4. A 3-qubit system has state space dimension:

Q5. Quantum gates must be unitary because:

🔬 Interactive Simulation

⚛️

Simulation for this topic

Try the IBM Quantum Experience to run real quantum circuits:

🔗 IBM Quantum 🔗 Quantum Playground
🎙
Quantum Computing Podcast
Mathematical Preliminaries
0:00
Transcript:
Welcome to Unit 1, Topic 4: Mathematical Preliminaries. To work with quantum systems, we need a powerful mathematical language. Paul Dirac introduced bra-ket notation: a ket, denoted vertical bar psi right-angle-bracket, is a column vector representing a quantum state. A bra, left-angle-bracket psi vertical bar, is its conjugate transpose—a row vector. The computational basis kets, zero-ket and one-ket, are column vectors with entries 1,0 and 0,1 respectively. The inner product of two states gives a complex scalar—the probability amplitude for transitioning between them. The modulus squared gives the probability. The outer product creates a matrix operator—projection operators are built this way. Quantum gates are unitary matrices, satisfying U-dagger times U equals the identity. This guarantees reversibility and preserves normalization. The Hadamard gate creates superposition; Pauli matrices X, Y, Z implement quantum NOT and phase operations. For multi-qubit systems, we use the tensor product. Two single-qubit Hilbert spaces combine to a 4-dimensional space. n qubits live in a 2-to-the-n dimensional Hilbert space. This exponential scaling of the state space is what makes quantum computers potentially so powerful for certain problems.

📚 Textbooks

Quantum Computation and Quantum Information
M. A. Nielsen & I. L. Chuang — Cambridge University Press
🔗 Publisher
Quantum Computer Science: An Introduction
N. David Mermin — Cambridge University Press
🔗 Publisher
An Introduction to Quantum Computing
Kaye, Laflamme & Mosca — Oxford University Press
🔗 Publisher

📖 Reference Books

Quantum Computing
V. Sahni — Tata McGraw-Hill
Quantum Computing: A Gentle Introduction
E. Rieffel & W. Polak — MIT Press
🔗 MIT Press
Lecture Notes on Quantum Computation
John Preskill — Caltech (Free Online)
🔗 Caltech

🌐 Online Resources

IBM Quantum Learning
🔗 learning.quantum.ibm.com
Qiskit Textbook
🔗 qiskit.org/learn
Quantum Computing Playground (Google)
🔗 quantumplayground.net

1. Vector Spaces and Hilbert Space

Quantum states live in a complex Hilbert space ℋ — a complete inner product space over ℂ. For a single qubit, ℋ = ℂ². Key properties:

  • Closed under addition and scalar multiplication
  • Inner product ⟨φ|ψ⟩ defines lengths and angles
  • Completeness ensures convergence of limits
$$\mathcal{H} = \mathbb{C}^2,\quad |\psi\rangle = \alpha|0\rangle + \beta|1\rangle,\quad \alpha,\beta\in\mathbb{C},\quad |\alpha|^2+|\beta|^2=1$$

2. Complex Vectors and Qubits in ℂ²

Any normalised vector in ℂ² represents a valid qubit state. Using the global phase freedom, we can write:

$$|\psi\rangle = \cos\!\frac{\theta}{2}|0\rangle + e^{i\phi}\sin\!\frac{\theta}{2}|1\rangle, \quad \theta\in[0,\pi],\;\phi\in[0,2\pi)$$

The two real parameters θ and φ completely specify any single-qubit pure state — this is why a qubit maps bijectively to the surface of the Bloch sphere.

3. Bloch Sphere Representation

Every pure single-qubit state corresponds to a unique point on the Bloch sphere (unit sphere in ℝ³). Key points:

  • North pole (θ=0): |0⟩
  • South pole (θ=π): |1⟩
  • Equator: equal superpositions — e.g. |+⟩=(|0⟩+|1⟩)/√2 and |−⟩=(|0⟩−|1⟩)/√2
🔄 Quantum gates correspond to rotations of the Bloch sphere. The Hadamard gate rotates the state on the sphere such that |0⟩↔|+⟩.
|0⟩ |1⟩ |+⟩ |−⟩ |ψ⟩ Bloch Sphere
1/5

Hilbert Space & ℂ²

Slide content for: Hilbert Space & ℂ²

  • See Notes tab for detailed content
  • Interactive diagrams available in Simulation tab
  • Test your understanding in the Quiz tab
1 / 5

⚡ Assessment Quiz

1
2
3
4
5

Q1. For a qubit, the Hilbert space is:

Q2. The Bloch sphere north pole represents:

Q3. θ and φ in the Bloch sphere parameterisation represent:

Q4. Quantum gates correspond to Bloch sphere:

Q5. A mixed state is represented on the Bloch sphere as:

🔮 Bloch Sphere Explorer

|0⟩ |1⟩ |+⟩ |−⟩ |ψ⟩
State: cos(22.5°)|0⟩ + sin(22.5°)|1⟩
🎙
Quantum Computing Podcast
Qubit States and Representation
0:00
Transcript:
Welcome to Unit 2, Topic 1: Qubit States and Representation. A single qubit lives in the two-dimensional complex Hilbert space, C-squared. Any normalized vector in this space is a valid qubit state. Using the global phase freedom—since multiplying the whole state by e-to-the-i-phi gives the same physics—we can parameterize any pure qubit state with just two real numbers: theta, the polar angle, and phi, the azimuthal angle. This gives us the Bloch sphere representation: every pure qubit state maps uniquely to a point on the unit sphere. The north pole is zero-ket; the south pole is one-ket; equatorial points are equal superpositions. The real advantage of this representation is that single-qubit gates correspond to rotations of the Bloch sphere. The Hadamard gate rotates the state such that zero-ket maps to the plus-ket on the equator. Understanding the geometry of the Bloch sphere gives intuition for how quantum gates manipulate qubit states, and why some sequences of gates cancel each other out.

📚 Textbooks

Quantum Computation and Quantum Information
M. A. Nielsen & I. L. Chuang — Cambridge University Press
🔗 Publisher
Quantum Computer Science: An Introduction
N. David Mermin — Cambridge University Press
🔗 Publisher
An Introduction to Quantum Computing
Kaye, Laflamme & Mosca — Oxford University Press
🔗 Publisher

📖 Reference Books

Quantum Computing
V. Sahni — Tata McGraw-Hill
Quantum Computing: A Gentle Introduction
E. Rieffel & W. Polak — MIT Press
🔗 MIT Press
Lecture Notes on Quantum Computation
John Preskill — Caltech (Free Online)
🔗 Caltech

🌐 Online Resources

IBM Quantum Learning
🔗 learning.quantum.ibm.com
Qiskit Textbook
🔗 qiskit.org/learn
Quantum Computing Playground (Google)
🔗 quantumplayground.net

1. Measurement in Quantum Mechanics

When we measure a qubit |ψ⟩ = α|0⟩ + β|1⟩ in the computational basis:

$$P(\text{outcome}=0) = |\alpha|^2,\quad P(\text{outcome}=1) = |\beta|^2$$

After measurement, the state collapses irreversibly to |0⟩ or |1⟩. Measurement is non-unitary and destructive.

2. Pauli Gates (X, Y, Z)

The three Pauli matrices form the basis of all single-qubit operations:

$$X = \begin{pmatrix}0&1\\1&0\end{pmatrix},\quad Y = \begin{pmatrix}0&-i\\i&0\end{pmatrix},\quad Z = \begin{pmatrix}1&0\\0&-1\end{pmatrix}$$

X (bit flip): X|0⟩=|1⟩, X|1⟩=|0⟩ — quantum NOT gate. Z (phase flip): Z|0⟩=|0⟩, Z|1⟩=-|1⟩. Y combines both: Y = iXZ.

3. Hadamard Gate

The most important single-qubit gate — creates superposition from basis states:

$$H = \frac{1}{\sqrt{2}}\begin{pmatrix}1&1\\1&-1\end{pmatrix},\quad H|0\rangle = |{+}\rangle = \frac{|0\rangle+|1\rangle}{\sqrt{2}},\quad H|1\rangle = |{-}\rangle = \frac{|0\rangle-|1\rangle}{\sqrt{2}}$$

H is self-inverse: H² = I. Geometrically, H rotates the Bloch sphere 180° about the axis (X+Z)/√2.

4. Phase Shift Gates (S, T) and Rotation Gates

Phase gates shift the relative phase between |0⟩ and |1⟩ without changing measurement probabilities:

$$S = \begin{pmatrix}1&0\\0&i\end{pmatrix},\quad T = \begin{pmatrix}1&0\\0&e^{i\pi/4}\end{pmatrix}$$

Rotation gates rotate the Bloch sphere about a specified axis by angle θ:

$$R_x(\theta)=e^{-i\theta X/2},\quad R_y(\theta)=e^{-i\theta Y/2},\quad R_z(\theta)=e^{-i\theta Z/2}$$
🔑 Any single-qubit gate can be decomposed into Rz and Ry rotations. Any quantum computation can be performed using {H, T, CNOT} — a universal gate set.
1/5

Quantum Measurement

Slide content for: Quantum Measurement

  • See Notes tab for detailed content
  • Interactive diagrams available in Simulation tab
  • Test your understanding in the Quiz tab
1 / 5

⚡ Assessment Quiz

1
2
3
4
5

Q1. The Pauli-X gate is analogous to the classical:

Q2. Which gate creates superposition from a basis state?

Q3. The S gate introduces a phase of:

Q4. Rx(θ) rotates the qubit on the Bloch sphere about:

Q5. Measurement in quantum mechanics is:

🔬 Interactive Simulation

⚛️

Simulation for this topic

Try the IBM Quantum Experience to run real quantum circuits:

🔗 IBM Quantum 🔗 Quantum Playground
🎙
Quantum Computing Podcast
Single-Qubit Measurement & Operations
0:00
Transcript:
Welcome to Unit 2, Topic 2: Single-Qubit Measurement and Operations. When we measure a qubit in the computational basis, we get a classical bit—0 or 1—with probabilities given by the squared amplitudes. The measurement is irreversible: superposition is destroyed. Quantum gates, in contrast, are reversible unitary operations. The three Pauli gates are fundamental: X is the quantum NOT, flipping zero to one and vice versa. Z is the phase flip, leaving zero unchanged but negating one. Y combines both effects. The Hadamard gate H maps the computational basis to the superposition basis and vice versa—it is its own inverse. Phase gates S and T introduce phase shifts of pi-over-2 and pi-over-4 to the one-component, important for achieving universality. Rotation gates Rx, Ry, Rz rotate the Bloch sphere about their respective axes by a specified angle. Together with CNOT, these single-qubit rotations form a universal gate set capable of implementing any quantum computation. The mathematical representation as unitary matrices allows us to compose gates by matrix multiplication, making circuit analysis tractable.

📚 Textbooks

Quantum Computation and Quantum Information
M. A. Nielsen & I. L. Chuang — Cambridge University Press
🔗 Publisher
Quantum Computer Science: An Introduction
N. David Mermin — Cambridge University Press
🔗 Publisher
An Introduction to Quantum Computing
Kaye, Laflamme & Mosca — Oxford University Press
🔗 Publisher

📖 Reference Books

Quantum Computing
V. Sahni — Tata McGraw-Hill
Quantum Computing: A Gentle Introduction
E. Rieffel & W. Polak — MIT Press
🔗 MIT Press
Lecture Notes on Quantum Computation
John Preskill — Caltech (Free Online)
🔗 Caltech

🌐 Online Resources

IBM Quantum Learning
🔗 learning.quantum.ibm.com
Qiskit Textbook
🔗 qiskit.org/learn
Quantum Computing Playground (Google)
🔗 quantumplayground.net

1. Two-Qubit State Space

Two qubits together live in the tensor product space ℂ²⊗ℂ² = ℂ⁴. The computational basis is:

$$\{|00\rangle, |01\rangle, |10\rangle, |11\rangle\}$$

A general two-qubit state: |ψ⟩ = α₀₀|00⟩ + α₀₁|01⟩ + α₁₀|10⟩ + α₁₁|11⟩, with Σ|αᵢⱼ|² = 1.

2. Tensor Products and Two-Qubit Operations

If qubit A is in state |a⟩ and qubit B is in |b⟩, the combined state is |a⟩⊗|b⟩. A 2-qubit gate is a 4×4 unitary matrix. Single-qubit gates extend to 2-qubit space via tensor products:

$$U_A\otimes I_B = U\otimes\begin{pmatrix}1&0\\0&1\end{pmatrix}$$

3. The CNOT Gate

The Controlled-NOT (CNOT) gate is the most important two-qubit gate. It flips the target qubit if and only if the control qubit is |1⟩:

$$\text{CNOT} = \begin{pmatrix}1&0&0&0\\0&1&0&0\\0&0&0&1\\0&0&1&0\end{pmatrix}$$
Input |ctrl⟩|tgt⟩Output
|00⟩|00⟩
|01⟩|01⟩
|10⟩|11⟩
|11⟩|10⟩

CNOT + Hadamard = ability to create entangled (Bell) states from product states.

1/5

Two-Qubit Space ℂ⁴

Slide content for: Two-Qubit Space ℂ⁴

  • See Notes tab for detailed content
  • Interactive diagrams available in Simulation tab
  • Test your understanding in the Quiz tab
1 / 5

⚡ Assessment Quiz

1
2
3
4
5

Q1. The dimension of the Hilbert space for 2 qubits is:

Q2. The CNOT gate flips the target when the control is:

Q3. The CNOT matrix has size:

Q4. To extend a single-qubit gate U to a 2-qubit system, we use:

Q5. A 2-qubit state is a product state if:

🔬 Interactive Simulation

⚛️

Simulation for this topic

Try the IBM Quantum Experience to run real quantum circuits:

🔗 IBM Quantum 🔗 Quantum Playground
🎙
Quantum Computing Podcast
Two-Qubit Systems
0:00
Transcript:
Welcome to Unit 3, Topic 1: Two-Qubit Systems. When we have two qubits, they live in a 4-dimensional Hilbert space—the tensor product of two C-squared spaces. The computational basis consists of the four states: zero-zero, zero-one, one-zero, and one-one. A general two-qubit state is a superposition of all four basis states, with complex amplitudes that must normalize to one. Operations on two-qubit systems are 4-by-4 unitary matrices. The most important two-qubit gate is the CNOT—Controlled-NOT. It has one control qubit and one target qubit. If the control is zero, the target is unchanged. If the control is one, the target is flipped. The CNOT truth table is: zero-zero stays zero-zero; zero-one stays zero-one; one-zero becomes one-one; one-one becomes one-zero. To apply a single-qubit gate U to only one qubit in a two-qubit system, we use the tensor product: U tensor I applies U to the first qubit and leaves the second alone. The CNOT gate, combined with the Hadamard gate, is sufficient to create entanglement—one of the most powerful resources in quantum computing.

📚 Textbooks

Quantum Computation and Quantum Information
M. A. Nielsen & I. L. Chuang — Cambridge University Press
🔗 Publisher
Quantum Computer Science: An Introduction
N. David Mermin — Cambridge University Press
🔗 Publisher
An Introduction to Quantum Computing
Kaye, Laflamme & Mosca — Oxford University Press
🔗 Publisher

📖 Reference Books

Quantum Computing
V. Sahni — Tata McGraw-Hill
Quantum Computing: A Gentle Introduction
E. Rieffel & W. Polak — MIT Press
🔗 MIT Press
Lecture Notes on Quantum Computation
John Preskill — Caltech (Free Online)
🔗 Caltech

🌐 Online Resources

IBM Quantum Learning
🔗 learning.quantum.ibm.com
Qiskit Textbook
🔗 qiskit.org/learn
Quantum Computing Playground (Google)
🔗 quantumplayground.net

1. Quantum Entanglement

A two-qubit state is entangled if it cannot be written as a product of individual qubit states: |ψ⟩ ≠ |a⟩⊗|b⟩. Entangled particles exhibit correlations that have no classical explanation.

🔗 When two qubits are entangled, measuring one instantly determines the outcome of measuring the other — regardless of distance. Einstein called this "spooky action at a distance."

2. The Four Bell States

The maximally entangled two-qubit states are the Bell states (Bell basis):

$$|\Phi^+\rangle = \frac{|00\rangle+|11\rangle}{\sqrt{2}},\quad |\Phi^-\rangle = \frac{|00\rangle-|11\rangle}{\sqrt{2}}$$
$$|\Psi^+\rangle = \frac{|01\rangle+|10\rangle}{\sqrt{2}},\quad |\Psi^-\rangle = \frac{|01\rangle-|10\rangle}{\sqrt{2}}$$

Each Bell state is maximally entangled — measuring one qubit instantly fixes the other qubit's value.

3. Preparing Entangled States

To prepare |Φ⁺⟩ from |00⟩: apply H to the first qubit, then CNOT:

$$|00\rangle \xrightarrow{H\otimes I} \frac{|0\rangle+|1\rangle}{\sqrt{2}}\otimes|0\rangle = \frac{|00\rangle+|10\rangle}{\sqrt{2}} \xrightarrow{\text{CNOT}} \frac{|00\rangle+|11\rangle}{\sqrt{2}} = |\Phi^+\rangle$$

This two-gate circuit (H + CNOT) is the fundamental entanglement-generating circuit in quantum computing.

⚠️ The Bell states cannot be written as product states — this confirms they are genuinely entangled. Entanglement is a resource for quantum teleportation, superdense coding, and quantum cryptography.
1/5

What is Entanglement?

Slide content for: What is Entanglement?

  • See Notes tab for detailed content
  • Interactive diagrams available in Simulation tab
  • Test your understanding in the Quiz tab
1 / 5

⚡ Assessment Quiz

1
2
3
4
5

Q1. An entangled state is one that:

Q2. How many Bell states exist?

Q3. To prepare |Φ⁺⟩ from |00⟩, the gates used are:

Q4. Measuring one qubit of an entangled Bell pair:

Q5. Entanglement is a resource for:

🔗 Bell State Visualizer

Alice ? Bob ? entangled Click Measure to collapse the Bell state
Current: |Φ⁺⟩ — perfectly correlated in computational basis
🎙
Quantum Computing Podcast
Entangled States
0:00
Transcript:
Welcome to Unit 3, Topic 2: Entangled States. Entanglement is arguably the most counterintuitive and most powerful feature of quantum mechanics. A two-qubit state is entangled if it cannot be written as a product of two individual qubit states. The four Bell states are the maximally entangled two-qubit states. Phi-plus is one-over-root-two times (zero-zero plus one-one), and Phi-minus is one-over-root-two times (zero-zero minus one-one). Similarly for Psi-plus and Psi-minus. These four states form a complete orthonormal basis for the two-qubit Hilbert space. To prepare Phi-plus from the zero-zero state: apply Hadamard to the first qubit, then CNOT. After Hadamard, the first qubit is in equal superposition. The CNOT then creates the correlation: if qubit one is zero, qubit two stays zero; if qubit one is one, qubit two flips to one. The result is Phi-plus. When we measure one qubit of an entangled Bell pair, we instantly know what the other will measure—even across arbitrary distances. This non-local correlation is what Bell's theorem exploits, and it forms the foundation of quantum teleportation and superdense coding.

📚 Textbooks

Quantum Computation and Quantum Information
M. A. Nielsen & I. L. Chuang — Cambridge University Press
🔗 Publisher
Quantum Computer Science: An Introduction
N. David Mermin — Cambridge University Press
🔗 Publisher
An Introduction to Quantum Computing
Kaye, Laflamme & Mosca — Oxford University Press
🔗 Publisher

📖 Reference Books

Quantum Computing
V. Sahni — Tata McGraw-Hill
Quantum Computing: A Gentle Introduction
E. Rieffel & W. Polak — MIT Press
🔗 MIT Press
Lecture Notes on Quantum Computation
John Preskill — Caltech (Free Online)
🔗 Caltech

🌐 Online Resources

IBM Quantum Learning
🔗 learning.quantum.ibm.com
Qiskit Textbook
🔗 qiskit.org/learn
Quantum Computing Playground (Google)
🔗 quantumplayground.net

1. Projection Operators

A quantum measurement in basis {|eₖ⟩} is described by projection operators Pₖ = |eₖ⟩⟨eₖ|. They satisfy:

$$P_k^2 = P_k\;(\text{idempotent}),\quad P_k^\dagger = P_k\;(\text{Hermitian}),\quad \sum_k P_k = I$$

The probability of outcome k when measuring |ψ⟩ is: P(k) = ⟨ψ|Pₖ|ψ⟩. After measurement with outcome k, the state becomes: |ψ_after⟩ = Pₖ|ψ⟩/√P(k).

2. Hermitian Operators and Observables

Every physical observable is represented by a Hermitian (self-adjoint) operator Ô = Ô†. Key properties:

  • All eigenvalues of Ô are real — they are the possible measurement outcomes
  • Eigenvectors corresponding to distinct eigenvalues are orthogonal
  • Hermitian operators are diagonalisable in an orthonormal basis
$$\hat{O}|\phi_k\rangle = \lambda_k|\phi_k\rangle,\quad \lambda_k\in\mathbb{R}$$

The expected value (average outcome) of repeated measurements is: ⟨Ô⟩ = ⟨ψ|Ô|ψ⟩.

3. Generalised Measurement — POVMs

More general measurements are described by Positive Operator-Valued Measures (POVMs): a set of positive operators {Mₖ} with ΣMₖ = I, giving outcome probabilities P(k) = ⟨ψ|Mₖ|ψ⟩. POVMs allow more flexible measurement schemes than projective measurements.

💡 All quantum gates must be unitary (reversible). Measurement is the only irreversible step in quantum computation — it converts quantum to classical information.
1/5

Projection Operators

Slide content for: Projection Operators

  • See Notes tab for detailed content
  • Interactive diagrams available in Simulation tab
  • Test your understanding in the Quiz tab
1 / 5

⚡ Assessment Quiz

1
2
3
4
5

Q1. A projection operator Pₖ satisfies:

Q2. Hermitian operators have eigenvalues that are always:

Q3. After measuring outcome k, the post-measurement state is:

Q4. The expectation value ⟨Ô⟩ = ⟨ψ|Ô|ψ⟩ represents:

Q5. In quantum computation, measurement is:

🔬 Interactive Simulation

⚛️

Simulation for this topic

Try the IBM Quantum Experience to run real quantum circuits:

🔗 IBM Quantum 🔗 Quantum Playground
🎙
Quantum Computing Podcast
Quantum Measurement Formalism
0:00
Transcript:
Welcome to Unit 4, Topic 1: Quantum Measurement Formalism. We have seen measurement as a probabilistic collapse. Now let us understand the mathematical framework. A projective measurement is described by a set of projection operators—each corresponding to one possible outcome. A projection operator P-k equals the outer product of the k-th basis ket with itself. Projection operators are Hermitian and idempotent: P-k squared equals P-k. They are complete: their sum equals the identity. The probability of outcome k when measuring state psi is: P(k) equals psi-bra times P-k times psi-ket. The post-measurement state is P-k applied to psi, divided by the square root of P(k) to renormalize. Every physical observable is represented by a Hermitian operator—one equal to its own conjugate transpose. The eigenvalues of a Hermitian operator are always real, so they can be measured values. Eigenvectors of distinct eigenvalues are orthogonal, providing a natural measurement basis. The expectation value—the average measurement outcome over many trials—equals psi-bra times O-hat times psi-ket. Quantum measurement is the only non-unitary step in quantum computation, converting quantum superpositions into classical bits of information.

📚 Textbooks

Quantum Computation and Quantum Information
M. A. Nielsen & I. L. Chuang — Cambridge University Press
🔗 Publisher
Quantum Computer Science: An Introduction
N. David Mermin — Cambridge University Press
🔗 Publisher
An Introduction to Quantum Computing
Kaye, Laflamme & Mosca — Oxford University Press
🔗 Publisher

📖 Reference Books

Quantum Computing
V. Sahni — Tata McGraw-Hill
Quantum Computing: A Gentle Introduction
E. Rieffel & W. Polak — MIT Press
🔗 MIT Press
Lecture Notes on Quantum Computation
John Preskill — Caltech (Free Online)
🔗 Caltech

🌐 Online Resources

IBM Quantum Learning
🔗 learning.quantum.ibm.com
Qiskit Textbook
🔗 qiskit.org/learn
Quantum Computing Playground (Google)
🔗 quantumplayground.net

1. The EPR Paradox (1935)

Einstein, Podolsky, and Rosen argued that quantum mechanics is incomplete. Their thought experiment: if two particles are prepared in an entangled state, measuring particle A instantly determines particle B's state, no matter how far apart they are. EPR concluded that particle B must have had a definite value all along — described by hidden variables not present in QM.

⚠️ EPR assumed: (1) Realism — particles have definite properties before measurement; (2) Locality — no influence can travel faster than light. Both assumptions together contradict quantum mechanics.

2. Bell's Theorem (1964)

John Bell proved that any local hidden variable theory predicts correlations bounded by:

$$|E(a,b) - E(a,c)| \leq 1 + E(b,c) \quad \text{(Bell's inequality)}$$

where E(a,b) is the correlation between measurements along directions a and b. Quantum mechanics predicts correlations that violate this inequality — they are stronger than any local hidden variable theory allows.

3. CHSH Inequality and Experimental Tests

The experimentally testable CHSH inequality:

$$S = |E(a,b) - E(a,b') + E(a',b) + E(a',b')| \leq 2$$

Quantum mechanics predicts S_max = 2√2 ≈ 2.828. Landmark experiments by Aspect (1982), Hensen (2015, loophole-free), and others consistently find S > 2, violating Bell's inequality and ruling out local hidden variable theories.

🏆 The 2022 Nobel Prize in Physics was awarded to Aspect, Clauser, and Zeilinger for their Bell inequality experiments — confirming quantum non-locality.
1/5

EPR Paradox

Slide content for: EPR Paradox

  • See Notes tab for detailed content
  • Interactive diagrams available in Simulation tab
  • Test your understanding in the Quiz tab
1 / 5

⚡ Assessment Quiz

1
2
3
4
5

Q1. The EPR paradox was proposed to argue that:

Q2. Bell's inequality is violated by:

Q3. The maximum quantum violation of the CHSH inequality gives S =

Q4. The 2022 Nobel Prize in Physics was awarded for:

Q5. Einstein's objection to quantum non-locality was based on:

🔔 Bell/CHSH Inequality Simulator

Quantum correlation E(0°,45°) = −cos(90°) = 0
🎙
Quantum Computing Podcast
Quantum Non-locality and Bell's Theorem
0:00
Transcript:
Welcome to Unit 4, Topic 2: Quantum Non-locality and Bell's Theorem. In 1935, Einstein, Podolsky, and Rosen published their famous paradox. They argued that if quantum mechanics is correct, measuring particle A instantly affects particle B, no matter how far apart they are. This seemed to violate locality—the principle that nothing can influence something else faster than light. EPR concluded that quantum mechanics must be incomplete: particles must have hidden definite values all along, not revealed until measurement. In 1964, John Bell proved this wrong mathematically. He derived an inequality—Bell's inequality—that any local hidden variable theory must satisfy. Quantum mechanics predicts that entangled particles violate this inequality. The CHSH version states: the quantity S, involving four correlation measurements at different angles, must satisfy S less than or equal to 2 for any local realistic theory. Quantum mechanics predicts S up to 2 root 2, approximately 2.83. Experiments by Alain Aspect in 1982, and loophole-free tests in 2015, consistently measured S greater than 2—ruling out all local hidden variable theories. The 2022 Nobel Prize in Physics honored these experiments. The conclusion: quantum correlations are genuinely non-local—they cannot be explained by any pre-existing hidden information.

📚 Textbooks

Quantum Computation and Quantum Information
M. A. Nielsen & I. L. Chuang — Cambridge University Press
🔗 Publisher
Quantum Computer Science: An Introduction
N. David Mermin — Cambridge University Press
🔗 Publisher
An Introduction to Quantum Computing
Kaye, Laflamme & Mosca — Oxford University Press
🔗 Publisher

📖 Reference Books

Quantum Computing
V. Sahni — Tata McGraw-Hill
Quantum Computing: A Gentle Introduction
E. Rieffel & W. Polak — MIT Press
🔗 MIT Press
Lecture Notes on Quantum Computation
John Preskill — Caltech (Free Online)
🔗 Caltech

🌐 Online Resources

IBM Quantum Learning
🔗 learning.quantum.ibm.com
Qiskit Textbook
🔗 qiskit.org/learn
Quantum Computing Playground (Google)
🔗 quantumplayground.net

1. Quantum Circuit Representation

A quantum circuit is a diagram representing a sequence of quantum gate operations on qubits. Conventions:

  • Each horizontal wire represents one qubit
  • Time flows left to right
  • Gates are boxes or symbols placed on the wires
  • Measurement is denoted by a meter symbol
|0⟩ |0⟩ H M M CNOT creates entanglement Measure

2. Classical vs. Quantum Computations

FeatureClassical CircuitQuantum Circuit
OperationsIrreversible (NAND, AND)Reversible (unitary gates)
WiresCarry bits (0 or 1)Carry qubits (superpositions)
Fan-outAllowedProhibited (no-cloning)
ErasureAllowedMust be uncomputed (reversible)
OutputDeterministic bitsProbabilistic — needs measurement
1/5

Circuit Notation

Slide content for: Circuit Notation

  • See Notes tab for detailed content
  • Interactive diagrams available in Simulation tab
  • Test your understanding in the Quiz tab
1 / 5

⚡ Assessment Quiz

1
2
3
4
5

Q1. In a quantum circuit diagram, horizontal wires represent:

Q2. Quantum circuits differ from classical in that operations must be:

Q3. Fan-out (copying a wire) in quantum circuits is:

Q4. Measurement in a quantum circuit:

Q5. Classical circuits use NAND gates which are:

🔬 Interactive Simulation

⚛️

Simulation for this topic

Try the IBM Quantum Experience to run real quantum circuits:

🔗 IBM Quantum 🔗 Quantum Playground
🎙
Quantum Computing Podcast
Introduction to Quantum Circuits
0:00
Transcript:
Welcome to Unit 5, Topic 1: Introduction to Quantum Circuits. Just as classical computers are built from logic gates arranged in circuits, quantum computers use quantum circuits—sequences of quantum gate operations on qubits. In a circuit diagram, each horizontal wire represents one qubit. Time flows from left to right. Gates appear as boxes or standard symbols on the wires. Measurement at the end extracts classical bits. The key difference from classical circuits: all quantum gates except measurement must be reversible—represented by unitary matrices. Classical gates like NAND are irreversible; quantum gates must be. Another difference: you cannot copy a qubit wire—the No-Cloning theorem forbids fan-out. To reset a qubit, you must perform a coherent erasure, called uncomputation. Quantum circuits can be analyzed by multiplying the gate matrices in sequence—the overall circuit is just a large unitary matrix applied to the initial state. The power of quantum circuits comes from the ability to create superpositions with Hadamard gates, entangle qubits with CNOT, and use quantum interference to amplify correct answers while suppressing wrong ones.

📚 Textbooks

Quantum Computation and Quantum Information
M. A. Nielsen & I. L. Chuang — Cambridge University Press
🔗 Publisher
Quantum Computer Science: An Introduction
N. David Mermin — Cambridge University Press
🔗 Publisher
An Introduction to Quantum Computing
Kaye, Laflamme & Mosca — Oxford University Press
🔗 Publisher

📖 Reference Books

Quantum Computing
V. Sahni — Tata McGraw-Hill
Quantum Computing: A Gentle Introduction
E. Rieffel & W. Polak — MIT Press
🔗 MIT Press
Lecture Notes on Quantum Computation
John Preskill — Caltech (Free Online)
🔗 Caltech

🌐 Online Resources

IBM Quantum Learning
🔗 learning.quantum.ibm.com
Qiskit Textbook
🔗 qiskit.org/learn
Quantum Computing Playground (Google)
🔗 quantumplayground.net

1. Controlled Gates

A controlled gate applies a single-qubit unitary U to the target qubit only when the control qubit is |1⟩. General controlled-U matrix (2-qubit):

$$C{-}U = |0\rangle\langle 0|\otimes I + |1\rangle\langle 1|\otimes U$$

CNOT: U=X (flip target). CZ: U=Z (phase flip target). Both are symmetric in some bases.

Toffoli gate (CCNOT): two control qubits, one target. Flips target only when both controls = |1⟩. This makes it universal for classical reversible computation.

$$\text{Toffoli: }|c_1,c_2,t\rangle \to |c_1,c_2,t\oplus(c_1\cdot c_2)\rangle$$

2. Universal Gate Sets

A set of gates is universal if any n-qubit unitary can be approximated to arbitrary precision. Key universal sets:

  • {H, T, CNOT} — most common in fault-tolerant quantum computing
  • {CNOT, all single-qubit gates} — universal for exact computation
  • Toffoli + Hadamard — universal
🔑 The Solovay-Kitaev theorem guarantees that any single-qubit gate can be approximated to ε accuracy using O(log^c(1/ε)) gates from a universal set — efficient approximation is always possible.
1/5

Controlled Gates

Slide content for: Controlled Gates

  • See Notes tab for detailed content
  • Interactive diagrams available in Simulation tab
  • Test your understanding in the Quiz tab
1 / 5

⚡ Assessment Quiz

1
2
3
4
5

Q1. The Toffoli gate has how many control qubits?

Q2. A universal quantum gate set must be able to:

Q3. {H, T, CNOT} is:

Q4. The CZ (Controlled-Z) gate applies Z to the target when:

Q5. The Solovay-Kitaev theorem guarantees:

🔬 Interactive Simulation

⚛️

Simulation for this topic

Try the IBM Quantum Experience to run real quantum circuits:

🔗 IBM Quantum 🔗 Quantum Playground
🎙
Quantum Computing Podcast
Multi-Qubit Gate Operations
0:00
Transcript:
Welcome to Unit 5, Topic 2: Multi-Qubit Gate Operations. Single-qubit gates let us manipulate individual qubits, but quantum computing's power comes from controlled operations between qubits. A controlled gate applies a unitary U to the target qubit only when the control qubit is in state one. The CNOT is the basic controlled gate with U equals X. The CZ gate uses U equals Z—it phases the target. The Toffoli gate, also called CCNOT, has two control qubits: it flips the target only when both controls are one. This makes it classically universal for reversible computation. A universal quantum gate set is one that can approximate any n-qubit unitary to arbitrary accuracy. The set consisting of Hadamard, T gate, and CNOT is the standard choice for fault-tolerant quantum computing. The Solovay-Kitaev theorem guarantees that any single-qubit gate can be approximated using only order log-cubed of one-over-epsilon gates from a universal set—making efficient approximation always possible. Together, multi-qubit gates enable the implementation of quantum algorithms like Shor's and Grover's, and quantum error correction codes that protect against decoherence.

📚 Textbooks

Quantum Computation and Quantum Information
M. A. Nielsen & I. L. Chuang — Cambridge University Press
🔗 Publisher
Quantum Computer Science: An Introduction
N. David Mermin — Cambridge University Press
🔗 Publisher
An Introduction to Quantum Computing
Kaye, Laflamme & Mosca — Oxford University Press
🔗 Publisher

📖 Reference Books

Quantum Computing
V. Sahni — Tata McGraw-Hill
Quantum Computing: A Gentle Introduction
E. Rieffel & W. Polak — MIT Press
🔗 MIT Press
Lecture Notes on Quantum Computation
John Preskill — Caltech (Free Online)
🔗 Caltech

🌐 Online Resources

IBM Quantum Learning
🔗 learning.quantum.ibm.com
Qiskit Textbook
🔗 qiskit.org/learn
Quantum Computing Playground (Google)
🔗 quantumplayground.net

1. Superdense Coding

Superdense coding allows Alice to send 2 classical bits to Bob by transmitting just 1 qubit, given pre-shared entanglement. Protocol:

  • Alice and Bob share a Bell pair |Φ⁺⟩ = (|00⟩+|11⟩)/√2
  • Alice encodes 2 bits by applying I, X, Z, or iY to her qubit
  • Alice sends her qubit to Bob (1 qubit transmission)
  • Bob applies CNOT then H to decode — recovers 2 classical bits
$$\text{Capacity: 1 qubit + 1 ebit (entangled pair) → 2 classical bits}$$

2. Quantum Teleportation

Quantum teleportation transmits an unknown qubit state from Alice to Bob using 2 classical bits and a pre-shared Bell pair — without transmitting the qubit itself:

  1. Alice and Bob share |Φ⁺⟩
  2. Alice applies CNOT then H to her target qubit and her half of the Bell pair
  3. Alice measures both qubits — gets 2 classical bits (00, 01, 10, or 11)
  4. Alice sends the 2 bits to Bob over classical channel
  5. Bob applies the appropriate correction (I, X, Z, or XZ) to his qubit
  6. Bob now has the exact state |ψ⟩ — teleportation complete!
⚡ No information travels faster than light — the 2 classical bits are still needed. Teleportation transfers quantum state, not matter.

3. Quantum Cryptography (BB84)

The BB84 protocol by Bennett and Brassard (1984) enables provably secure key exchange:

  • Alice sends qubits in random bases (+/×) with random bits
  • Bob measures in random bases
  • They publicly compare bases (not bits) and keep matching results
  • They check a subset for errors — any eavesdropping by Eve introduces ~25% error rate (detectable)
$$\text{QBER} > 11\% \Rightarrow \text{eavesdropping detected; abort}$$

Security is guaranteed by the laws of physics — specifically the no-cloning theorem and the measurement disturbance principle.

1/5

Superdense Coding

Slide content for: Superdense Coding

  • See Notes tab for detailed content
  • Interactive diagrams available in Simulation tab
  • Test your understanding in the Quiz tab
1 / 5

⚡ Assessment Quiz

1
2
3
4
5

Q1. Superdense coding allows sending:

Q2. Quantum teleportation transmits:

Q3. In BB84, security against eavesdropping is guaranteed because:

Q4. Alice's 2 classical bits in quantum teleportation tell Bob:

Q5. The QBER threshold for detecting eavesdropping in BB84 is approximately:

🔬 Interactive Simulation

⚛️

Simulation for this topic

Try the IBM Quantum Experience to run real quantum circuits:

🔗 IBM Quantum 🔗 Quantum Playground
🎙
Quantum Computing Podcast
Applications
0:00
Transcript:
Welcome to Unit 5, Topic 3: Quantum Applications. We now explore three remarkable applications that demonstrate quantum mechanics' power. First, superdense coding. Alice wants to send Bob two classical bits. She uses just one qubit—but with a catch: Alice and Bob pre-shared an entangled Bell pair. Alice applies one of four operations to her qubit—I, X, Z, or iY—encoding 2 bits of information. She sends this single qubit to Bob. Bob performs CNOT then Hadamard on both qubits and measures—recovering 2 classical bits. One qubit plus one entangled pair equals two bits of classical information. Second, quantum teleportation. Alice has an unknown qubit state psi she wants to send to Bob. They share a Bell pair. Alice entangles her target qubit with her half of the Bell pair using CNOT and H, then measures both—getting 2 classical bits. She tells Bob these bits over a classical channel. Bob applies the appropriate correction gate to his qubit—and now has the exact state psi. The state was teleported! No faster-than-light communication occurred, because the 2 classical bits were still needed. Third, quantum cryptography via BB84. Alice and Bob can establish a secret key using quantum mechanics, with security guaranteed by the laws of physics—specifically, that any eavesdropping by Eve disturbs the qubits and is detectable via the quantum bit error rate.

📚 Textbooks

Quantum Computation and Quantum Information
M. A. Nielsen & I. L. Chuang — Cambridge University Press
🔗 Publisher
Quantum Computer Science: An Introduction
N. David Mermin — Cambridge University Press
🔗 Publisher
An Introduction to Quantum Computing
Kaye, Laflamme & Mosca — Oxford University Press
🔗 Publisher

📖 Reference Books

Quantum Computing
V. Sahni — Tata McGraw-Hill
Quantum Computing: A Gentle Introduction
E. Rieffel & W. Polak — MIT Press
🔗 MIT Press
Lecture Notes on Quantum Computation
John Preskill — Caltech (Free Online)
🔗 Caltech

🌐 Online Resources

IBM Quantum Learning
🔗 learning.quantum.ibm.com
Qiskit Textbook
🔗 qiskit.org/learn
Quantum Computing Playground (Google)
🔗 quantumplayground.net

📝 Assignment 1 · After Units I–III

Instructions: Attempt all 5 questions. Answers must demonstrate understanding of quantum mechanics, qubit representation, and entanglement. Show all mathematical workings. Submit handwritten or typed (LaTeX preferred).
Max Marks: 50  |  Time Allowed: 3 hours (take-home)  |  Instructor: Buddharaju Sunayana

Q1. [10 marks] Wave Function and Probability (Unit I)

A particle in a 1D box of length L = 2 nm is in the state ψ(x) = A sin(πx/L) + B sin(2πx/L), where A = 3/5 and B = 4/5 (unnormalised).
(a) Verify the normalisation condition for ψ. [3]
(b) Calculate the probability of measuring energy E₁ and E₂. [3]
(c) Compute the expectation value of energy ⟨E⟩. [2]
(d) Sketch the wave function and indicate where probability is maximum. [2]

Q2. [10 marks] Qubit Representation (Unit I–II)

A qubit is in the state |ψ⟩ = (√3/2)|0⟩ + (1/2)e^(iπ/3)|1⟩.
(a) Verify normalisation. [1]
(b) Find P(|0⟩) and P(|1⟩) upon measurement. [2]
(c) Express the state on the Bloch sphere: find θ and φ. [3]
(d) Apply the Hadamard gate. What is the new state? Find measurement probabilities. [4]

Q3. [10 marks] Quantum Gates and Circuits (Unit II)

(a) Write the matrix for X, Y, Z gates and verify each is unitary (U†U = I). [4]
(b) Compute X·H·|0⟩ step by step. [3]
(c) Show that the Hadamard gate is its own inverse (H² = I). [3]

Q4. [10 marks] CNOT Gate and Two-Qubit Systems (Unit III)

(a) Write the CNOT matrix and its action on all 4 computational basis states. [4]
(b) Starting from |+⟩|0⟩ = (|0⟩+|1⟩)/√2 ⊗ |0⟩, apply CNOT. What is the output state? Is it entangled? Justify. [4]
(c) Explain why the output cannot be written as a product |a⟩⊗|b⟩. [2]

Q5. [10 marks] Bell States and Entanglement (Unit III)

(a) Write all four Bell states. Show they form an orthonormal basis. [4]
(b) Prepare |Φ⁻⟩ from |00⟩ using quantum gates. Draw the circuit. [3]
(c) If you measure the first qubit of |Ψ⁺⟩ and get |1⟩, what is the second qubit's state? [3]

📊 Grading Rubric — Assignment 1

CriterionExcellent (9–10)Good (7–8)Satisfactory (5–6)Needs Improvement (0–4)
Mathematical Accuracy
(20 marks)
All calculations correct, normalisations verified, proper notation throughoutMinor arithmetic errors, notation mostly correctSome correct steps, significant errors in final resultsFundamental errors, wrong formulas, unsupported answers
Conceptual Understanding
(15 marks)
Deep understanding; explains physical meaning; connects concepts across unitsGood understanding; minor gaps; mostly correct explanationsBasic understanding; some misconceptionsPoor understanding; significant misconceptions
Problem Solving Process
(10 marks)
Logical, structured approach; all steps shown; correct methodClear approach with minor omissionsPartial method shown; some logical gapsUnsystematic; major steps missing
Presentation
(5 marks)
Neat, well-organised; proper LaTeX/dirac notation; clear diagramsGenerally neat; mostly correct notationAcceptable but inconsistentDifficult to follow; poor notation

📝 Assignment 2 · After Units IV–V

Instructions: Attempt all 5 questions. Questions cover measurement formalism, Bell's theorem, quantum circuits, and applications. Show all mathematical derivations. Diagrams must be neat and labelled.
Max Marks: 50  |  Time Allowed: 3 hours (take-home)  |  Instructor: Buddharaju Sunayana

Q1. [10 marks] Projection Operators and Measurement (Unit IV)

(a) Define projection operators P₀ = |0⟩⟨0| and P₁ = |1⟩⟨1|. Write them as matrices. [2]
(b) Verify P₀² = P₀, P₁² = P₁, and P₀ + P₁ = I. [3]
(c) Measure |ψ⟩ = (3/5)|0⟩ + (4/5)|1⟩ using these projectors. Find probabilities and post-measurement states. [5]

Q2. [10 marks] Hermitian Operators (Unit IV)

(a) Which of the following operators are Hermitian? (i) X, (ii) iY, (iii) H, (iv) |0⟩⟨1|. Justify each. [4]
(b) Find the eigenvalues and eigenvectors of the Pauli-Z operator. [4]
(c) Compute the expectation value ⟨Z⟩ for |ψ⟩ = (1/√2)(|0⟩ + |1⟩). [2]

Q3. [10 marks] Bell's Theorem (Unit IV)

(a) State Bell's inequality and the CHSH inequality. [3]
(b) For measurement angles a=0°, a'=45°, b=22.5°, b'=67.5°, compute the quantum prediction for S. Does it violate the CHSH bound of 2? [4]
(c) Explain in 5–6 sentences why Bell's theorem rules out local hidden variable theories. [3]

Q4. [10 marks] Quantum Circuits (Unit V)

(a) Draw and explain the quantum circuit for superdense coding. Label each gate and wire. [4]
(b) Show step-by-step how Alice encodes the message "10" and how Bob decodes it. [4]
(c) Compare superdense coding with classical communication. What makes it quantum? [2]

Q5. [10 marks] Quantum Teleportation and Cryptography (Unit V)

(a) Describe the quantum teleportation protocol. Draw the full quantum circuit with Bell pair, CNOT, H, measurement, and correction gates. [5]
(b) Explain why teleportation does not violate special relativity (no FTL communication). [2]
(c) In BB84: Alice sends qubits in states |0⟩, |+⟩, |1⟩, |−⟩ in random bases (+/×). Bob measures. After basis reconciliation, the retained bits form the key. If Eve intercepts 50% of qubits and re-sends, estimate the QBER. How is eavesdropping detected? [3]

📊 Grading Rubric — Assignment 2

CriterionExcellent (9–10)Good (7–8)Satisfactory (5–6)Needs Improvement (0–4)
Mathematical Rigour
(20 marks)
Proofs complete, correct derivations, proper quantum notation, Bell inequality computation accurateMinor errors, mostly rigorous proofsSome correct steps, gaps in derivationsIncorrect formulas, incomplete proofs
Conceptual Clarity
(15 marks)
Excellent physical interpretation; Bell theorem explanation insightful; distinguishes quantum from classicalGood conceptual answers; minor ambiguitiesBasic understanding; some circular reasoningFundamental misunderstanding; incorrect explanations
Circuit Design
(10 marks)
Circuits correct, well-labelled, step-by-step analysis complete, correct state at each stageCircuits mostly correct; minor labelling issuesCircuit partially correct; analysis incompleteIncorrect circuits; missing key gates
Presentation & Notation
(5 marks)
Professional presentation; consistent Dirac notation; all diagrams clearGood; mostly consistent notationAdequate; some notation errorsInconsistent; hard to follow

🔬 Case Study: Quantum-Secured Banking Network

A Pedagogical Case Study covering the complete syllabus of 23PY3103 · Instructor: Buddharaju Sunayana

📌 Background & Problem Statement

GlobalBank, a multinational financial institution, processes over 5 million transactions per day across 40 countries. Their current security relies on RSA-2048 encryption for inter-branch communication. A recent internal audit reveals:

  • Quantum computers from IBM and Google now exceed 1000+ qubits
  • Shor's algorithm on a fault-tolerant quantum computer could break RSA-2048 in hours
  • Governments of China, USA, and EU have flagged quantum-era cryptography as a national security priority
  • NIST (National Institute of Standards & Technology) finalized post-quantum cryptography standards in 2024

GlobalBank's Chief Technology Officer commissions a team to redesign their security infrastructure using quantum technologies. You are part of this team.

👥 Team Roles

Quantum Physicist Cryptography Engineer Network Architect Risk Analyst Policy Advisor

Each student group is assigned one role. All roles must contribute to the final report, connecting their analysis to the quantum computing concepts from all five units.

📚 Phase 1: Quantum Foundations Analysis (Units I–II)

Task: Explain the physical basis of quantum security to a non-technical board of directors.

  • Use the wave function and measurement postulate to explain why quantum states cannot be observed without disturbance
  • Show how a qubit's superposition (α|0⟩ + β|1⟩) differs from a classical bit and why this matters for cryptography
  • Demonstrate using Bloch sphere diagrams how an eavesdropper's measurement changes the qubit's state
  • Explain why Hadamard and Pauli gates are used in quantum key generation
💡 Deliverable: A 2-page technical brief connecting the Schrödinger equation, qubits, and Bloch sphere geometry to the impossibility of perfect eavesdropping.

🔗 Phase 2: Entanglement Protocol Design (Unit III)

Task: Design an entanglement-based key distribution system between London HQ and New York branch.

  • Prepare Bell pairs (|Φ⁺⟩ = (|00⟩+|11⟩)/√2) at a central quantum server
  • Distribute one qubit to London and one to New York via quantum fibre or satellite
  • Show how CNOT + H circuit creates the Bell pair from |00⟩
  • Explain how measuring both qubits generates a shared secret key bit
  • Calculate the expected correlation coefficient for aligned measurement bases
💡 Deliverable: A quantum circuit diagram for the Bell pair distribution system, with step-by-step mathematical verification of entanglement.

⚖️ Phase 3: Security Verification via Bell Tests (Unit IV)

Task: Verify that the entanglement-based link is not compromised by an eavesdropper using Bell inequality tests.

  • Implement the CHSH test: choose four measurement angle pairs (a, a', b, b') and compute S = |E(a,b) − E(a,b') + E(a',b) + E(a',b')|
  • Quantum prediction: S = 2√2 ≈ 2.83 for uncompromised entanglement
  • If Eve intercepts and measures qubits, entanglement is broken — S drops toward 2
  • Design a continuous CHSH monitoring system that flags S < 2.3 as a potential attack
  • Discuss the EPR paradox in context: why Einstein's "hidden variables" would mean S ≤ 2
💡 Deliverable: A security protocol document specifying CHSH thresholds, monitoring frequency, and response procedures when S drops below threshold.

🔐 Phase 4: Full BB84 Implementation (Unit V)

Task: Implement and analyse the complete BB84 quantum key distribution protocol for GlobalBank.

  • Design the quantum circuit for BB84: Alice prepares qubits in {|0⟩, |1⟩, |+⟩, |−⟩} using H and X gates
  • Bob measures in randomly chosen bases; they perform public basis reconciliation
  • Perform privacy amplification: extract a shorter, uniformly random key from the sifted key
  • Implement superdense coding for efficient encrypted transaction metadata transmission
  • Design a quantum teleportation-based emergency key recovery system
  • Calculate the secure key rate (bits per second) given a fibre link with 0.2 dB/km loss
💡 Deliverable: Full quantum circuit diagrams for BB84, analysis of eavesdropping detection rate vs. Eve's interception fraction, and a comparison of quantum vs. post-quantum (lattice-based) cryptography approaches.

📊 Discussion Questions (All Units)

  1. How does the no-cloning theorem (Unit I) guarantee that an eavesdropper in BB84 (Unit V) is always detectable?
  2. Explain how decoherence (Unit I) limits the distance of quantum key distribution links. What engineering solutions mitigate this?
  3. If GlobalBank's quantum network uses |Φ⁺⟩ Bell pairs, what happens to security if Alice's qubit decoheres before Bob measures?
  4. Compare the classical RSA key exchange with BB84. What mathematical problem does each rely on for security?
  5. The EPR paradox (Unit IV) suggests "spooky action at a distance." How does this non-locality enable quantum teleportation (Unit V) without violating causality?
  6. Design a hybrid classical-quantum security protocol for GlobalBank that works today (NISQ era) and upgrades to full fault-tolerant QC when available.

📋 Assessment Rubric — Case Study

ComponentWeightExcellentSatisfactoryNeeds Work
Phase 1: Quantum Foundations20%All quantum concepts correctly applied; clear board-level explanationConcepts mostly correct; some technical gapsIncorrect quantum concepts; board brief unclear
Phase 2: Entanglement Design20%Correct Bell pair circuit; entanglement mathematically verifiedCircuit mostly correct; some math errorsIncorrect circuit; entanglement not demonstrated
Phase 3: Bell Test Security20%CHSH thresholds correct; monitoring protocol rigorous; EPR connection clearCHSH computation mostly correct; protocol adequateIncorrect CHSH analysis; protocol missing
Phase 4: BB84 & Applications25%Complete BB84 circuit; eavesdropping analysis correct; all applications implementedBB84 mostly complete; some applications missingBB84 incomplete; applications poorly designed
Discussion Questions15%Insightful answers connecting all 5 units; novel perspectives offeredCorrect answers with some depthSuperficial or incorrect answers

Total: 100 marks  |  Group size: 4–5 students  |  Presentation: 20-minute oral defence  |  Report: 25–30 pages