Fundamentals of Quantum Computing
A UG-level course bridging quantum mechanics and computation, equipping students with the theory and mathematics of quantum information processing.
23PY3103
3 (L:3 T:0 P:0)
40 Marks
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
🎯 Course Outcomes
| CO | Learning Outcome |
|---|---|
| CO-1 | Understand fundamental principles of quantum mechanics relevant to quantum computing |
| CO-2 | Represent quantum information using qubits and quantum gates |
| CO-3 | Analyze entanglement and its role in transmitting classical information non-locally |
| CO-4 | Analyze Bell's theorem and its implications on quantum predictions |
| CO-5 | Identify 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
| Unit | Title | Topics | Lectures |
|---|---|---|---|
| I | Fundamentals of Quantum Mechanics | Wave function, Schrödinger equation, Qubits, Math preliminaries | 10 |
| II | Single Qubit Quantum Systems | Hilbert space, Bloch sphere, Quantum gates | 10 |
| III | Multiple Qubit Systems & Entanglement | Two-qubit systems, Bell states, CNOT gate | 10 |
| — | Assignment 1 (after Unit III) | — | |
| IV | Measurement and Bell's Theorem | Projection operators, EPR paradox, Bell's inequality | 10 |
| V | Quantum Circuits and Applications | Circuits, Multi-qubit gates, Teleportation, Cryptography | 10 |
| — | Assignment 2 (after Unit V) | — | |
| — | Case Study (end of course) | — | |
Classical Physics & Newton's Principles
Prerequisite Foundations · Newtonian determinism · Cracks in the classical edifice · The correspondence principle
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.
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.
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
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:
🔗 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
Wave–Particle Duality of Light
Prerequisite Foundations · Light — particle or wave? Both — and why · Complementarity
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.
| Evidence | Supports |
|---|---|
| Young's double-slit interference (1801) | Wave |
| Diffraction around obstacles/edges | Wave |
| Maxwell's electromagnetic wave equations (1865) | Wave |
| Photoelectric effect (1905, see P.4) | Particle |
| Compton scattering (1923) | Particle |
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.
🔗 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
Planck's Quantum Hypothesis
Prerequisite Foundations · Blackbody radiation · The ultraviolet catastrophe · Birth of the quantum
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.
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"):
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
Einstein & the Photoelectric Effect
Prerequisite Foundations · Light quanta (photons) · Einstein's 1905 postulate · Nobel Prize 1921
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:
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.
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
Bohr's Atomic Model
Prerequisite Foundations · Quantised orbits · Angular momentum · Spectral lines
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)
- Electrons occupy special stationary orbits in which they do not radiate, defying classical electrodynamics
- Angular momentum in these orbits is quantised: $L=n\hbar,\ n=1,2,3,\ldots$
- A photon is emitted or absorbed only when an electron jumps between orbits: $\Delta E = hf = E_i-E_f$
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)
De Broglie's Matter Waves
Prerequisite Foundations · De Broglie's Law · Davisson–Germer experiment · Universal wave–particle duality
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:
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).
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
Schrödinger Wave Equation — First Look
Prerequisite Foundations · Building on de Broglie · The master equation of quantum mechanics
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.
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.
🔗 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
Born's Rule — Probability Interpretation
Prerequisite Foundations · Born's Law · Statistical interpretation of ψ · Breaking with determinism
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
$|\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."
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
Boolean Algebra & Logic Gates
Prerequisite Foundations · Classical bits · Truth tables · Reversibility
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
| A | B | AND | OR | XOR |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 |
| 0 | 1 | 0 | 1 | 1 |
| 1 | 0 | 0 | 1 | 1 |
| 1 | 1 | 1 | 1 | 0 |
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
Prerequisite Foundations — Quiz
10 questions covering P.1–P.9 · Test your grasp of the physics before Unit I begins
Form not loading? Open it in a new tab →
Wave Function & Schrödinger Equation
Unit I · Fundamentals of Quantum Mechanics · Physical significance · Wave-particle duality · 1D potential well · Eigenfunctions & eigenvalues
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:
The wave function must be normalised — the total probability of finding the particle somewhere must equal 1:
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:
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.
3. The Schrödinger Equation
The evolution of the wave function over time is governed by the time-dependent Schrödinger equation:
Here, ℏ = h/2π is the reduced Planck constant and V(x) is the potential energy. For time-independent problems we seek stationary states satisfying:
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:
- 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
⚡ Assessment Quiz
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
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
📖 Reference Books
🌐 Online Resources
Why Quantum Computing
Unit I · Fundamentals of Quantum Mechanics · Classical vs. Quantum · Decoherence · Cryptography · Optimization
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
2. Classical vs. Quantum Computing
| Feature | Classical | Quantum |
|---|---|---|
| Basic unit | Bit (0 or 1) | Qubit (superposition) |
| Operations | Boolean gates (AND, OR, NOT) | Unitary quantum gates |
| Parallelism | Multiple threads | Quantum parallelism (exponential) |
| Error model | Deterministic | Probabilistic + decoherence |
| Memory (n bits) | n bits of information | 2ⁿ amplitudes |
| Best use | General purpose, I/O | Simulation, 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.
⚡ Assessment Quiz
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 PlaygroundWelcome 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
📖 Reference Books
🌐 Online Resources
Qubits vs. Classical Bits
Unit I · Fundamentals of Quantum Mechanics · Definition & representation · Comparison · Superposition
1. The Classical Bit
The classical bit is the fundamental unit of classical information. It takes exactly one of two values:
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⟩:
where α, β ∈ ℂ are complex probability amplitudes satisfying the normalisation condition:
Upon measurement, the qubit collapses: it becomes |0⟩ with probability |α|² or |1⟩ with probability |β|².
3. Comparison: Bits vs. Qubits
| Property | Classical Bit | Qubit |
|---|---|---|
| States | 0 or 1 | α|0⟩ + β|1⟩ (superposition) |
| Measurement | Non-destructive | Collapses superposition |
| Capacity (n units) | n bits | 2ⁿ complex amplitudes |
| Copying | Freely copyable | No-cloning theorem prohibits it |
| Correlation | Independent | Can be entangled |
| Physical realisation | Transistor, flip-flop | Ion trap, superconducting circuit, photon, NV centre |
⚡ Assessment Quiz
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 PlaygroundWelcome 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
📖 Reference Books
🌐 Online Resources
Mathematical Preliminaries
Unit I · Fundamentals of Quantum Mechanics · Bra-ket notation · Matrix representation · Inner/outer products · Tensor products
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):
A general qubit: |ψ⟩ = α|0⟩ + β|1⟩. The corresponding bra: ⟨ψ| = (α*, β*).
2. Inner Product and Outer Product
The inner product ⟨φ|ψ⟩ is a complex scalar (overlap amplitude):
Transition probability: P(|φ⟩→|ψ⟩) = |⟨φ|ψ⟩|²
The outer product |ψ⟩⟨φ| is a matrix (operator):
3. Matrix Representation of Quantum States
Quantum gates are unitary matrices (U†U = I). Key single-qubit gates:
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 ⊗:
A general 2-qubit state: |ψ⟩ = α₀₀|00⟩ + α₀₁|01⟩ + α₁₀|10⟩ + α₁₁|11⟩
⚡ Assessment Quiz
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 PlaygroundWelcome 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
📖 Reference Books
🌐 Online Resources
Qubit States and Representation
Unit II · Single Qubit Quantum Systems · Vector & Hilbert space · Complex vectors · Bloch sphere
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
2. Complex Vectors and Qubits in ℂ²
Any normalised vector in ℂ² represents a valid qubit state. Using the global phase freedom, we can write:
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
⚡ Assessment Quiz
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
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
📖 Reference Books
🌐 Online Resources
Single-Qubit Measurement & Operations
Unit II · Single Qubit Quantum Systems · Measurement outcomes · Pauli gates · Hadamard · Phase shift · Rotation gates
1. Measurement in Quantum Mechanics
When we measure a qubit |ψ⟩ = α|0⟩ + β|1⟩ in the computational basis:
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 (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 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:
Rotation gates rotate the Bloch sphere about a specified axis by angle θ:
⚡ Assessment Quiz
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 PlaygroundWelcome 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
📖 Reference Books
🌐 Online Resources
Two-Qubit Systems
Unit III · Multiple Qubit Systems and Entanglement · Two-qubit states · Tensor products · CNOT gate
1. Two-Qubit State Space
Two qubits together live in the tensor product space ℂ²⊗ℂ² = ℂ⁴. The computational basis is:
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:
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⟩:
| Input |ctrl⟩|tgt⟩ | Output |
|---|---|
| |00⟩ | |00⟩ |
| |01⟩ | |01⟩ |
| |10⟩ | |11⟩ |
| |11⟩ | |10⟩ |
CNOT + Hadamard = ability to create entangled (Bell) states from product states.
⚡ Assessment Quiz
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 PlaygroundWelcome 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
📖 Reference Books
🌐 Online Resources
Entangled States
Unit III · Multiple Qubit Systems and Entanglement · Bell states · Visualization · Preparation · Examples
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.
2. The Four Bell States
The maximally entangled two-qubit states are the Bell states (Bell basis):
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:
This two-gate circuit (H + CNOT) is the fundamental entanglement-generating circuit in quantum computing.
⚡ Assessment Quiz
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
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
📖 Reference Books
🌐 Online Resources
Quantum Measurement Formalism
Unit IV · Measurement and Bell's Theorem · Projection operators · Hermitian operators · Born rule
1. Projection Operators
A quantum measurement in basis {|eₖ⟩} is described by projection operators Pₖ = |eₖ⟩⟨eₖ|. They satisfy:
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
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.
⚡ Assessment Quiz
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 PlaygroundWelcome 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
📖 Reference Books
🌐 Online Resources
Quantum Non-locality and Bell's Theorem
Unit IV · Measurement and Bell's Theorem · EPR paradox · Bell's inequality · CHSH inequality · Experimental verification
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.
2. Bell's Theorem (1964)
John Bell proved that any local hidden variable theory predicts correlations bounded by:
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:
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.
⚡ Assessment Quiz
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
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
📖 Reference Books
🌐 Online Resources
Introduction to Quantum Circuits
Unit V · Quantum Circuits and Applications · Circuit representation · Classical vs. Quantum · Circuit diagrams
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
2. Classical vs. Quantum Computations
| Feature | Classical Circuit | Quantum Circuit |
|---|---|---|
| Operations | Irreversible (NAND, AND) | Reversible (unitary gates) |
| Wires | Carry bits (0 or 1) | Carry qubits (superpositions) |
| Fan-out | Allowed | Prohibited (no-cloning) |
| Erasure | Allowed | Must be uncomputed (reversible) |
| Output | Deterministic bits | Probabilistic — needs measurement |
⚡ Assessment Quiz
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 PlaygroundWelcome 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
📖 Reference Books
🌐 Online Resources
Multi-Qubit Gate Operations
Unit V · Quantum Circuits and Applications · CNOT · CZ · Toffoli · Universal gate sets
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):
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.
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
⚡ Assessment Quiz
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 PlaygroundWelcome 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
📖 Reference Books
🌐 Online Resources
Applications
Unit V · Quantum Circuits and Applications · Super-dense coding · Quantum teleportation · Quantum cryptography
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
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:
- Alice and Bob share |Φ⁺⟩
- Alice applies CNOT then H to her target qubit and her half of the Bell pair
- Alice measures both qubits — gets 2 classical bits (00, 01, 10, or 11)
- Alice sends the 2 bits to Bob over classical channel
- Bob applies the appropriate correction (I, X, Z, or XZ) to his qubit
- Bob now has the exact state |ψ⟩ — teleportation complete!
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)
Security is guaranteed by the laws of physics — specifically the no-cloning theorem and the measurement disturbance principle.
⚡ Assessment Quiz
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 PlaygroundWelcome 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
📖 Reference Books
🌐 Online Resources
📝 Assignment 1 · After Units I–III
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
| Criterion | Excellent (9–10) | Good (7–8) | Satisfactory (5–6) | Needs Improvement (0–4) |
|---|---|---|---|---|
| Mathematical Accuracy (20 marks) | All calculations correct, normalisations verified, proper notation throughout | Minor arithmetic errors, notation mostly correct | Some correct steps, significant errors in final results | Fundamental errors, wrong formulas, unsupported answers |
| Conceptual Understanding (15 marks) | Deep understanding; explains physical meaning; connects concepts across units | Good understanding; minor gaps; mostly correct explanations | Basic understanding; some misconceptions | Poor understanding; significant misconceptions |
| Problem Solving Process (10 marks) | Logical, structured approach; all steps shown; correct method | Clear approach with minor omissions | Partial method shown; some logical gaps | Unsystematic; major steps missing |
| Presentation (5 marks) | Neat, well-organised; proper LaTeX/dirac notation; clear diagrams | Generally neat; mostly correct notation | Acceptable but inconsistent | Difficult to follow; poor notation |
📝 Assignment 2 · After Units IV–V
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
| Criterion | Excellent (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 accurate | Minor errors, mostly rigorous proofs | Some correct steps, gaps in derivations | Incorrect formulas, incomplete proofs |
| Conceptual Clarity (15 marks) | Excellent physical interpretation; Bell theorem explanation insightful; distinguishes quantum from classical | Good conceptual answers; minor ambiguities | Basic understanding; some circular reasoning | Fundamental misunderstanding; incorrect explanations |
| Circuit Design (10 marks) | Circuits correct, well-labelled, step-by-step analysis complete, correct state at each stage | Circuits mostly correct; minor labelling issues | Circuit partially correct; analysis incomplete | Incorrect circuits; missing key gates |
| Presentation & Notation (5 marks) | Professional presentation; consistent Dirac notation; all diagrams clear | Good; mostly consistent notation | Adequate; some notation errors | Inconsistent; 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 AdvisorEach 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
🔗 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
⚖️ 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
🔐 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
📊 Discussion Questions (All Units)
- How does the no-cloning theorem (Unit I) guarantee that an eavesdropper in BB84 (Unit V) is always detectable?
- Explain how decoherence (Unit I) limits the distance of quantum key distribution links. What engineering solutions mitigate this?
- If GlobalBank's quantum network uses |Φ⁺⟩ Bell pairs, what happens to security if Alice's qubit decoheres before Bob measures?
- Compare the classical RSA key exchange with BB84. What mathematical problem does each rely on for security?
- The EPR paradox (Unit IV) suggests "spooky action at a distance." How does this non-locality enable quantum teleportation (Unit V) without violating causality?
- 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
| Component | Weight | Excellent | Satisfactory | Needs Work |
|---|---|---|---|---|
| Phase 1: Quantum Foundations | 20% | All quantum concepts correctly applied; clear board-level explanation | Concepts mostly correct; some technical gaps | Incorrect quantum concepts; board brief unclear |
| Phase 2: Entanglement Design | 20% | Correct Bell pair circuit; entanglement mathematically verified | Circuit mostly correct; some math errors | Incorrect circuit; entanglement not demonstrated |
| Phase 3: Bell Test Security | 20% | CHSH thresholds correct; monitoring protocol rigorous; EPR connection clear | CHSH computation mostly correct; protocol adequate | Incorrect CHSH analysis; protocol missing |
| Phase 4: BB84 & Applications | 25% | Complete BB84 circuit; eavesdropping analysis correct; all applications implemented | BB84 mostly complete; some applications missing | BB84 incomplete; applications poorly designed |
| Discussion Questions | 15% | Insightful answers connecting all 5 units; novel perspectives offered | Correct answers with some depth | Superficial or incorrect answers |
Total: 100 marks | Group size: 4–5 students | Presentation: 20-minute oral defence | Report: 25–30 pages