Module5 Quantum Computing Lecturenotes
Module5 Quantum Computing Lecturenotes
VIT Chennai
Syllabus
Introduction to qubits • Single-qubit states and the Bloch Sphere •
Two-qubit systems
Quantum entanglement and Bell states • Single-qubit gates: Pauli and
Hadamard
Two-qubit gates: CNOT • Generation of entangled states
These lecture notes accompany Module 5 of the first-year [Link] course Introductory
Quantum Mechanics and Quantum Computing. The module bridges the physical principles
of quantum mechanics, covered in earlier modules, with the emerging field of quantum
information and computation.
Quantum computing is not simply a faster version of classical computing — it is a
fundamentally different computational paradigm that exploits three uniquely quantum
phenomena:
• Superposition: a quantum system can exist in multiple states simultaneously.
• Entanglement: distant quantum systems can exhibit correlations with no classical
analogue.
• Interference: quantum amplitudes can add constructively or destructively, enabling
algorithmic speed-ups.
Prerequisites. Students should be comfortable with: complex numbers and linear alge-
bra (vectors, matrices, inner products, eigenvectors), Dirac bra-ket notation, the postulates
of quantum mechanics (wave functions, Hilbert spaces, observables, measurement, time
evolution), and the two-level system (spin- 21 , two-level atom).
Structure of these notes. Each chapter corresponds to one topic in the syllabus. Within
each chapter you will find: motivational discussion, rigorous mathematical development,
worked examples, key-insight boxes, and end-of-chapter exercises. The notes are written
so that they can be read independently of any single textbook, while remaining consistent
with the standard references listed in the bibliography.
Notation. We follow the Dirac notation throughout. The computational basis states
are |0⟩ and |1⟩. The identity operator on a single qubit is I (or I2 ). Tensor products are
denoted ⊗. All vectors are column vectors; their adjoints (conjugate transposes) are row
2
vectors (bras).
Contents
Preface 2
1 Introduction to Qubits 6
1.1 Classical Bits versus Quantum Bits . . . . . . . . . . . . . . . . . . . . . . 6
1.1.1 Physical Realisations of a Qubit . . . . . . . . . . . . . . . . . . . . 7
1.1.2 Measurement and Born Rule . . . . . . . . . . . . . . . . . . . . . . 7
1.1.3 Superposition: A Non-Classical Feature . . . . . . . . . . . . . . . . 8
1.1.4 Global Phase and Relative Phase . . . . . . . . . . . . . . . . . . . 8
1.1.5 Important Single-Qubit States . . . . . . . . . . . . . . . . . . . . . 9
3 Two-Qubit Systems 14
3.1 The Tensor Product . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.1.1 Column Vector Representations . . . . . . . . . . . . . . . . . . . . 15
3.2 General Two-Qubit State . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3.3 Product States and Separability . . . . . . . . . . . . . . . . . . . . . . . . 15
3.4 Operators on Two-Qubit Systems . . . . . . . . . . . . . . . . . . . . . . . 16
3.5 Measurement on Two-Qubit Systems . . . . . . . . . . . . . . . . . . . . . 16
3
4 | Module 5: Elements of Quantum Computing
B Solved Problems 48
Introduction to Qubits
The bit is the fundamental unit of classical information. A classical bit has exactly two
possible values: 0 or 1. These are realised physically as high/low voltages, magnetic
polarisations, optical on/off states, and so on. Classical computation is built upon
deterministic (or probabilistic) manipulation of bits using logic gates.
A quantum bit or qubit is the quantum-mechanical analogue of a classical bit. It is a
two-level quantum system whose state space is a two-dimensional complex Hilbert space
H∼= C2 . The two computational basis states are written in Dirac notation as:
1 0
|0⟩ ≡ , |1⟩ ≡ .
0 1
6
1.1. Classical Bits versus Quantum Bits | 7
The constraint |α|2 + |β|2 = 1 is the normalisation condition. It ensures that the total
probability of all measurement outcomes equals one.
After measuring outcome 0, the state collapses to |0⟩; after outcome 1, it collapses to
|1⟩.
Crucially, while |α|2 + |β|2 = 1 demands normalisation, the individual amplitudes α, β are
complex numbers and carry phase information that is physically meaningful (it governs
interference) yet invisible to a single measurement.
A classical bit can only be in state 0 or state 1. A qubit, however, can be in a superposition
— both |0⟩ and |1⟩ simultaneously — until it is measured. This is not merely a statement
of ignorance; the superposition is a genuine quantum state that participates in interference
and entanglement.
Since all physical predictions depend on |⟨·|ψ⟩|2 , the global phase eiϕ is unobservable.
We say |ψ⟩ and eiϕ |ψ⟩ represent the same physical state.
A relative phase, by contrast, is physically meaningful. The states
have identical measurement probabilities in the computational basis (50% each), yet they
are distinguishable by measuring in a rotated basis and give different interference patterns.
Table 1.2: Six canonical single-qubit states forming three mutually unbiased bases.
Exercises
Q1. Verify that |+⟩ and |−⟩ are orthonormal.
q
Q2. A qubit is in state |ψ⟩ = √13 |0⟩ − 23 |1⟩. Find the probability of each computa-
tional basis outcome and verify normalisation.
Q3. Explain why the states |0⟩ and eiπ/4 |0⟩ are physically identical.
Q4. Is the state |χ⟩ = 1+i
2
|0⟩ + 21 |1⟩ normalised? If not, normalise it.
The general normalised qubit state |ψ⟩ = α |0⟩ + β |1⟩ has four real degrees of freedom
(Re α, Im α, Re β, Im β). Two constraints reduce this:
1. Normalisation: |α|2 + |β|2 = 1 removes one degree of freedom.
2. Global phase: states differing by an overall phase eiφ0 are physically equivalent,
removing one more.
We are left with two real parameters. Writing α = cos(θ/2) and β = eiφ sin(θ/2), the
most general single-qubit pure state (up to global phase) is:
Note: cos(θ/2) ≥ 0 for θ ∈ [0, π], so we have fixed the global phase of the |0⟩ component
to be real and non-negative. The parameter φ is the relative phase between the two
components.
10
2.2. The Bloch Sphere | 11
The two angles (θ, φ) are the polar and azimuthal angles of a point on the unit sphere in
R3 . This sphere is called the Bloch sphere.
|ψ⟩ |−⟩
θ
|−i⟩
|+i⟩
φ y
|+⟩
Figure 2.1: The Bloch sphere. Every point on its surface represents a unique pure state
of a qubit. The north pole is |0⟩, the south pole is |1⟩, and the six labelled equatorial
points correspond to the eigenstates of the three Pauli operators. The red arrow is an
arbitrary Bloch vector ⃗r corresponding to state |ψ⟩.
Table 2.1: Correspondence between qubit states, Bloch angles, and Bloch vectors.
The Bloch sphere surface represents pure states (states of maximal quantum information).
Quantum systems may also exist in mixed states — statistical mixtures of pure states —
described by a density operator:
1 I + ⃗r · ⃗σ
ρ = (I + rx σx + ry σy + rz σz ) = , (2.3)
2 2
where ⃗σ = (σx , σy , σz ) are the Pauli matrices. For a pure state, |⃗r| = 1 (surface). For
a mixed state, |⃗r| < 1 (interior). The maximally mixed state ρ = I/2 corresponds to
⃗r = ⃗0 (centre).
1
Convention: with the parameterisation ⃗r = (sin θ cos φ, sin θ sin φ, cos θ), the x- and y-axes are as
labelled in Fig. 2.1. Different textbooks may assign x and y differently.
Exercises
Q1. Find the Bloch vector of |ψ⟩ = 1+i
2
|0⟩ + √12 |1⟩. (Hint: first check normalisation.)
Q2. Show that for any pure state |ψ⟩, Tr(ρ2 ) = 1, while for the maximally mixed state
ρ = I/2, Tr(ρ2 ) = 21 .
Q3. What state corresponds to θ = π/3, φ = π/4? Write it in the form α |0⟩ + β |1⟩.
Q4. Explain in geometric terms what it means to apply a unitary gate U to a qubit.
Two-Qubit Systems
To describe a system of two qubits, we combine their individual Hilbert spaces using the
tensor product (also called the Kronecker product in the matrix context).
HAB = HA ⊗ HB ∼
= C2 ⊗ C 2 ∼
= C4 . (3.1)
The computational basis for the two-qubit system consists of the four orthonormal
states:
|00⟩ , |01⟩ , |10⟩ , |11⟩ , (3.2)
where |ab⟩ ≡ |a⟩A ⊗ |b⟩B means qubit A is in state |a⟩ and qubit B is in state |b⟩.
14
3.2. General Two-Qubit State | 15
The tensor product of two single-qubit column vectors is computed via the Kronecker
product:
αγ
α γ
⊗ =
αδ
. (3.4)
β δ βγ
A B
βδ
|cab |2 = 1.
X
|Ψ⟩ = c00 |00⟩ + c01 |01⟩ + c10 |10⟩ + c11 |11⟩ , (3.5)
a,b∈{0,1}
Test for a product state. Write |Ψ⟩ = c00 |00⟩ + c01 |01⟩ + c10 |10⟩ + c11 |11⟩. This is a
This condition follows from the requirement that the 2 × 2 coefficient matrix M with
Mab = cab has rank 1, which is equivalent to det M = c00 c11 − c01 c10 = 0.
If operator A acts on qubit A and operator B acts on qubit B, the combined operator on
HAB is A ⊗ B, computed as the Kronecker product of matrices. For a 2 × 2 matrix A:
a11 B a12 B
A⊗B = . (3.7)
a21 B a22 B
0 ·
1 0 1 0 0 0 1 0
1·
0 1 1 0 0 −1 0 −1 0 0 0 −1
X ⊗Z = ⊗ = =
.
1 0 0 −1 1 0 1 0 1 0 0 0
1 · 0·
0 −1 0 −1 0 −1 0 0
For a two-qubit state |Ψ⟩ = a,b cab |ab⟩, measuring both qubits in the computational basis
P
yields outcome (a, b) with probability |cab |2 . Measuring only qubit A and finding outcome
|cab |2 ,
X
P (a) =
b
Exercises
Q1. Compute |+⟩ ⊗ |−⟩ explicitly as a column vector and express it as a superposition
of computational basis states.
Q2. Determine whether √13 (|00⟩ + |01⟩ + |10⟩) is a product state.
Q3. Compute the matrix Z ⊗ Z and find its eigenvalues.
Q4. For the state |Ψ⟩ = 12 |00⟩ + 2i |01⟩ + 12 |10⟩ + −1
2
|11⟩, find: (a) the probability of
measuring qubit A in state |0⟩; (b) the post-measurement state of qubit B given
that outcome.
18
4.2. The Bell States | 19
where λi are the eigenvalues of ρA . For a product state, S = 0; for a maximally entangled
two-qubit state, S = 1 ebit (the maximum for a two-qubit system).
The four Bell states (also known as EPR pairs, after Einstein, Podolsky, and Rosen)
are the four maximally entangled two-qubit states. They form an orthonormal basis —
the Bell basis — for the two-qubit Hilbert space C4 .
E 1
Φ+ = √ |00⟩ + |11⟩ , (4.3)
2
E 1
Φ− = √ |00⟩ − |11⟩ , (4.4)
2
E 1
Ψ+ = √ |01⟩ + |10⟩ , (4.5)
2
E 1
Ψ− = √ |01⟩ − |10⟩ . (4.6)
2
3. Maximal entanglement. Each Bell state has ρA = I/2 (maximally mixed reduced
state), hence S(ρA ) = 1 ebit.
4. Perfect measurement correlations. In |Φ+ ⟩: measuring either qubit in Z gives ±1
equiprobably, but the two outcomes are always equal. In |Ψ+ ⟩: outcomes are always
opposite.
5. The singlet state |Ψ− ⟩ is special: it is rotationally invariant, meaning it takes the
same form in any orthonormal basis.
1
ρA = |0⟩ ⟨0| ⟨0|0⟩ + |0⟩ ⟨1| ⟨1|0⟩ + |1⟩ ⟨0| ⟨0|1⟩ + |1⟩ ⟨1| ⟨1|1⟩
2 | {z } | {z } | {z } | {z }
1 0 0 1
1 I
= |0⟩ ⟨0| + |1⟩ ⟨1| = .
2 2
This is the maximally mixed state. Qubit A alone contains no information about which
Bell state we have — all the information is encoded non-locally in the correlations. ✓
Bell’s 1964 theorem proves that the correlations between measurement outcomes of
entangled particles cannot be reproduced by any local hidden variable (LHV) theory
— a theory where particles carry pre-determined outcomes for all possible measurements.
where E(a, b) is the correlation of outcomes for settings a, b. Any LHV theory obeys:
S ≤ 2.
For the singlet state |Ψ− ⟩ with optimal measurement settings, quantum mechanics predicts:
√
SQM = 2 2 ≈ 2.83.
Experiments consistently confirm the quantum prediction, ruling out LHV theories (Aspect
et al., 1982; many loophole-free tests since 2015).
Exercises
Q1. Verify that ⟨Φ+ |Ψ+ ⟩ = 0.
Q2. Express the computational basis states |00⟩ , |01⟩ , |10⟩ , |11⟩ in terms of the Bell
basis states.
Q3. Calculate the reduced density matrix ρB = TrA (|Ψ− ⟩ ⟨Ψ− |) and the entanglement
entropy S(ρB ).
Q4. For the state |Ψ+ ⟩, what is the probability of measuring qubit A in state |+⟩?
What is the post-measurement state of qubit B?
θ θ
U (n̂, θ) = e−iθn̂·⃗σ/2 = cos I − i sin (nx σx + ny σy + nz σz ), (5.1)
2 2
where n̂ = (nx , ny , nz ) is the rotation axis (unit vector) and θ is the rotation angle.
22
5.2. The Pauli Matrices and Gates | 23
Together with the 2 × 2 identity I, they form a basis for the space of all 2 × 2 Hermitian
matrices.
Property Statement
Hermitian σi† = σi
Unitary σi† σi = I
Involutory σi2 = I
Traceless Tr(σi ) = 0
Determinant det(σi ) = −1
where ϵijk is the Levi-Civita symbol: ϵxyz = ϵyzx = ϵzxy = +1, etc.
Explicit Products
|0⟩
|1⟩
Figure 5.1: Bloch sphere rotations for the X and Z gates. Both are 180ř rotations about
their respective axes.
The Hadamard gate H is arguably the most important single-qubit gate in quantum
computing. It creates superpositions from basis states and is the fundamental tool of
quantum parallelism.
1
H |0⟩ = √ (|0⟩ + |1⟩) = |+⟩ , (5.5)
2
1
H |1⟩ = √ (|0⟩ − |1⟩) = |−⟩ . (5.6)
2
The Hadamard gate maps between the Z-basis and the X-basis:
Key properties:
1. Hermitian and unitary: H † = H and H 2 = I.
√
2. Geometrically: H is a 180ř rotation about the axis n̂ = (x̂ + ẑ)/ 2 (the bisector of
the x- and z-axes on the Bloch sphere).
3. Conjugation relations: HXH = Z, HZH = X, HY H = −Y .
4. Eigenvalues: ±1, with eigenstates cos(π/8) |0⟩ + sin(π/8) |1⟩ and − sin(π/8) |0⟩ +
cos(π/8) |1⟩.
1 1 1 1 1 1 1 2 0 1 0
HXH = √ ·√ = = = Z. ✓
2 −1 1 2 1 −1 2 0 −2 0 −1
Quantum circuits are read left to right. Single-qubit gates are depicted as labelled boxes
on a horizontal wire (representing the qubit’s time evolution). Below is a simple circuit
applying H then X then measuring:
|0⟩ H X Z
Figure 5.2: A simple single-qubit circuit: the state |0⟩ has H, X, and Z applied in sequence,
followed by a measurement in the computational basis. The double line after the meter
symbol represents a classical bit carrying the measurement outcome.
Table 5.2: Important single-qubit gates, their matrices, and Bloch sphere actions.
Exercises
Q1. Verify that H † H = I and H 2 = I.
Q2. Compute HY H and show it equals −Y .
Q3. Show that XY X = −Y and XZX = −Z.
Q4. Find the eigenstates of the Hadamard gate H.
Q5. Using the general rotation formula (5.1), express X, Y , Z, and H as rotations of
the Bloch sphere (give n̂ and θ for each).
Q6. Apply H ⊗ H to |00⟩ and express the result in the computational basis. Is it
entangled?
Single-qubit gates, no matter how many we apply, can never create entanglement from a
product state. To build a universal quantum computer and to generate entangled states,
we need gates that act on two or more qubits and can create non-separable correlations.
The most fundamental such gate is the Controlled-NOT (CNOT) gate.
where ⊕ denotes addition modulo 2 (XOR). In words: if the control is |1⟩, flip the
target; if the control is |0⟩, do nothing.
30
6.2. The CNOT Gate | 31
The 4 × 4 matrix (in the basis |00⟩ , |01⟩ , |10⟩ , |11⟩) is:
1 0 0 0
0 1 0 0
CNOT = . (6.2)
0 0 0 1
0 0 1 0
Table 6.1: Truth table for the CNOT gate. The control qubit is unchanged; the target is
flipped iff the control is |1⟩.
Input Output
The true quantum power of CNOT emerges when the control qubit is in a superposition.
1 1 1 E
CNOT · √ (|00⟩ + |10⟩) = √ (CNOT |00⟩ + CNOT |10⟩) = √ (|00⟩ + |11⟩) = Φ+ .
2 2 2
A product state has become the maximally entangled Bell state |Φ+ ⟩! This demon-
strates why CNOT is essential for quantum information processing.
The Bell state has been converted back to a product state. CNOT is its own inverse:
applying it to the output of the previous example recovers the input. ✓
When we conjugate CNOT by Hadamard gates on both qubits, the roles of control and
target are interchanged:
where CNOTreversed has the target qubit as the new control and the control qubit as the
new target.
A related phenomenon is phase kickback: when the target qubit is an eigenstate of the
gate being controlled, the eigenvalue “kicks back” as a phase onto the control qubit.
Applying CNOT:
1 1 1 1
CNOT·|+⟩⊗|−⟩ = (|00⟩−|01⟩+|11⟩−|10⟩) = (|00⟩−|01⟩−|10⟩+|11⟩) = √ (|0⟩−|1⟩)⊗ √ (|0⟩−|1⟩)
2 2 2 2
The phase of |−⟩ (eigenvalue −1 of X) has “kicked back” from the target to the control:
qubit 1 changed from |+⟩ to |−⟩, while qubit 2 was unchanged. This is the phase
kickback mechanism, central to Grover’s algorithm and quantum phase estimation.
Classical Analogy
In classical computing, NAND is a universal gate (any Boolean function can be
built from NANDs). In quantum computing, no single gate is universal; we need a
combination of single-qubit and entangling two-qubit gates.
Exercises
Q1. Verify by direct matrix multiplication that CNOT2 = I4 .
Q2. Apply CNOT to |−⟩ ⊗ |0⟩. Is the result entangled?
Q3. Prove the identity (H ⊗ H)CNOT(H ⊗ H) = CNOTreversed by matrix multiplica-
tion.
Q4. Apply CNOT to all four Bell states and identify the results.
Q5. Construct the controlled-Z (CZ) gate matrix. How does it differ from CNOT?
We now bring together the Hadamard and CNOT gates to show how all four Bell states
can be systematically generated from the four computational basis states.
H⊗I CNOT
|x, y⟩ −−→ −−−→ Bell state, (7.1)
|x⟩ H
|βxy ⟩
|y⟩
Figure 7.1: The Bell state generation circuit. Input |x⟩ |y⟩ (x, y ∈ {0, 1}) yields Bell
state |βxy ⟩. The circuit consists of a Hadamard gate on qubit 1 followed by a CNOT with
qubit 1 as control.
35
36 | Module 5: Elements of Quantum Computing
H⊗I 1 1
|00⟩ −−→ √ (|0⟩ + |1⟩) ⊗ |0⟩ = √ (|00⟩ + |10⟩)
2 2
CNOT 1 E
−−−→ √ (|00⟩ + |11⟩) = Φ+ = |β00 ⟩ .
2
Input |01⟩:
H⊗I 1
|01⟩ −−→ √ (|01⟩ + |11⟩)
2
CNOT 1 E
−−−→ √ (|01⟩ + |10⟩) = Ψ+ = |β01 ⟩ .
2
Input |10⟩:
H⊗I 1
|10⟩ −−→ √ (|00⟩ − |10⟩)
2
CNOT 1 E
−−−→ √ (|00⟩ − |11⟩) = Φ− = |β10 ⟩ .
2
Input |11⟩:
H⊗I 1
|11⟩ −−→ √ (|01⟩ − |11⟩)
2
CNOT 1 E
−−−→ √ (|01⟩ − |10⟩) = Ψ− = |β11 ⟩ .
2
Table 7.1: Input computational basis state → output Bell state for the generation circuit.
1 0 |Φ− ⟩ √1 (|00⟩
2
− |11⟩)
1 1 |Ψ− ⟩ √1 (|01⟩
2
− |10⟩)
Since the Bell generation circuit is unitary (hence invertible), we can run it in reverse to
map Bell states back to computational basis states. This is called the Bell measurement
circuit.
x
H
|βxy ⟩ y
Figure 7.2: The Bell measurement circuit: CNOT followed by H on the first qubit,
then measurement in the computational basis. The outcome (x, y) identifies which Bell
state was input.
Quantum teleportation (Bennett et al., 1993) transmits an unknown qubit state from
Alice to Bob using one pre-shared Bell pair and two classical bits of communication.
Critically, the quantum state is not copied (in accordance with the no-cloning theorem); it
is transferred.
7.3.1 Protocol
Resources: Alice holds an unknown qubit |ψ⟩C = α |0⟩ + β |1⟩, and Alice and Bob share
the Bell pair |Φ+ ⟩AB .
Step 1 — Initial three-qubit state:
E
|Ψ0 ⟩ = (α |0⟩ + β |1⟩)C ⊗ Φ+
AB
1
= √ (α |000⟩ + α |011⟩ + β |100⟩ + β |111⟩)CAB . (7.2)
2
1
|Ψ1 ⟩ = √ α |000⟩ + α |011⟩ + β |110⟩ + β |101⟩ . (7.3)
2
1
|Ψ2 ⟩ = |00⟩ (α |0⟩ + β |1⟩) + |01⟩ (α |1⟩ + β |0⟩)
2
+ |10⟩ (α |0⟩ − β |1⟩) + |11⟩ (α |1⟩ − β |0⟩) . (7.4)
CA,B
Step 4 — Alice measures qubits C and A: She gets outcome (m1 , m2 ) ∈ {00, 01, 10, 11},
each with probability 14 .
Step 5 — Alice sends (m1 , m2 ) to Bob via a classical channel.
Step 6 — Bob applies correction X m2 Z m1 :
Table 7.2: Bob’s correction operations and resulting state after applying X m2 Z m1 .
In all cases, Bob recovers the original state |ψ⟩ = α |0⟩ + β |1⟩.
m1
|ψ⟩C H
m2
Alice’s half
|Φ+ ⟩
Bob’s half X m2 Z m1 |ψ⟩
Figure 7.3: Quantum teleportation circuit. The double lines represent classical communi-
cation. Alice measures qubits C (the unknown state) and her half of the Bell pair; she
sends the 2-bit outcome to Bob, who applies the appropriate Pauli corrections to recover
|ψ⟩ on his qubit.
Superdense coding (Bennett and Wiesner, 1992) is in some sense the dual of teleportation:
using one pre-shared Bell pair, Alice can communicate two classical bits to Bob by
sending just one qubit.
Table 7.3: Superdense coding protocol: Alice’s operation and the resulting Bell state.
0 0 I |Φ+ ⟩
0 1 X |Ψ+ ⟩
1 0 Z |Φ− ⟩
1 1 iY = ZX |Ψ− ⟩
Protocol:
1. Alice and Bob share |Φ+ ⟩.
2. Alice applies one of {I, X, Z, iY } to her qubit, encoding two bits (see Table 7.3).
3. Alice sends her qubit to Bob (one qubit of physical communication).
4. Bob performs a Bell measurement (CNOT followed by H on Alice’s qubit, then
measurement of both qubits), reading off the two classical bits.
Starting from |000⟩, apply H to the first qubit, then CNOT with qubit 1 as control and
qubit 2 as target, then CNOT with qubit 1 as control and qubit 3 as target:
|0⟩ H
|0⟩ |GHZ⟩
|0⟩
Figure 7.4: GHZ state generation circuit: H on qubit 1, then CNOT12 , then CNOT13 .
Derivation:
H1 1 1
|000⟩ −→ √ (|0⟩ + |1⟩) ⊗ |0⟩ ⊗ |0⟩ = √ (|000⟩ + |100⟩)
2 2
CNOT12 1
−−−−−→ √ (|000⟩ + |110⟩)
2
CNOT13 1
−−−−−→ √ (|000⟩ + |111⟩) = |GHZ⟩ .
2
Exercises
Q1. Verify the derivation of |Ψ− ⟩ from input |11⟩ through the Bell generation circuit.
Q2. Trace through the quantum teleportation protocol for the specific state |ψ⟩ = |+⟩.
What does Bob measure and what correction does he apply?
Q3. In superdense coding, show that Alice’s operation X on her qubit of |Φ+ ⟩ gives
|Ψ+ ⟩.
Q4. Design a circuit (using H and CNOT) to generate the W-state |W ⟩ = √13 (|001⟩ +
|010⟩ + |100⟩). (Hint: this requires ancilla and single-qubit rotations.)
Q5. Show that the GHZ state is genuinely three-way entangled by proving it cannot
be written as |ϕ⟩A ⊗ |χ⟩BC for any choice of |ϕ⟩ and |χ⟩.
43
44 | Module 5: Elements of Quantum Computing
Qubit
A two-level quantum system |ψ⟩ = α |0⟩ + β |1⟩, |α|2 + |β|2 = 1. Measurement
yields 0 or 1 with probabilities |α|2 and |β|2 .
Bloch Sphere
Pure qubit states ↔ points on the unit sphere via |ψ⟩ = cos(θ/2) |0⟩ +
eiφ sin(θ/2) |1⟩. Unitary gates ↔ rotations.
Two-Qubit Systems
Hilbert space C2 ⊗ C2 ∼ = C4 ; computational basis {|00⟩ , |01⟩ , |10⟩ , |11⟩}. States
are product if and only if c00 c11 = c01 c10 .
Entanglement
Non-separability; reduced density matrix is mixed; quantified by von Neumann
entropy. Bell states |Φ+ ⟩ , |Φ− ⟩ , |Ψ+ ⟩ , |Ψ− ⟩: maximally entangled, orthonormal
basis.
Pauli Gates
X (bit-flip, 180řRx ), Y (180řRy ), Z (phase-flip, 180řRz ). All involutory, Hermitian,
traceless.
Hadamard Gate
H |0⟩ = |+⟩, H |1⟩ = |−⟩; H 2 = I; creates superpositions; maps X ↔ Z bases.
CNOT Gate
|c, t⟩ → |c, c ⊕ t⟩; entangles product states; with single-qubit gates forms a univer-
sal gate set.
Bell State Generation
H on qubit 1 + CNOT12 applied to |xy⟩ gives Bell state |βxy ⟩.
Teleportation & Superdense Coding
Entanglement as a resource: 2 classical bits needed to teleport 1 qubit; 1 qubit (+
1 ebit) suffices to send 2 classical bits.
Table 8.1: Quick reference: single-qubit gate actions on the six canonical states.
The concepts from this module are the foundation for more advanced topics in quantum
information and computing:
• Quantum algorithms: Deutsch-Jozsa (uses H ⊗n and phase kickback), Grover’s
√
search (O( N ) queries using amplitude amplification), Shor’s factoring algorithm
Properties: ⟨ϕ|ψ⟩ = ⟨ψ|ϕ⟩∗ (conjugate symmetry); ⟨ψ|ψ⟩ ≥ 0 with equality iff |ψ⟩ = 0;
linearity in the second argument.
q
The norm is ∥ |ψ⟩ ∥ = ⟨ψ|ψ⟩.
47
48 | Module 5: Elements of Quantum Computing
This identity directly gives the rotation formula (5.1) for single-qubit gates, since each
Pauli matrix squares to I.
Solved Problems
Problem 2. For the state |ψ⟩ = 35 |0⟩ + 4i5 |1⟩, find (a) the normalisation, (b) the
measurement probabilities, (c) the Bloch vector.
9 16
Solution. (a) |α|2 + |β|2 = 25
+ 25
= 1. Normalised. ✓
9 16
(b) P (0) = 25
, P (1) = 25
.
(c) We have α = 35 and β = 4i5 . Comparing with cos(θ/2) |0⟩+eiφ sin(θ/2) |1⟩: cos(θ/2) = 35 ,
so sin(θ/2) = 45 , giving θ = 2 arccos(3/5). The phase: eiφ = i, so φ = π/2. Bloch vector:
⃗r = (sin θ cos(π/2), sin θ sin(π/2), cos θ) = (0, sin θ, cos θ). With cos θ = 1 − 2 sin2 (θ/2) =
1 − 2 · (16/25) = 1 − 32/25 = −7/25 and sin θ = 2 sin(θ/2) cos(θ/2) = 2 · 45 · 35 = 24 25
:
24 7 2 2 2
⃗r = (0, 25 , − 25 ). Verify |⃗r| = (24/25) + (7/25) = (576 + 49)/625 = 625/625 = 1. ✓
Problem 3. Apply the Bell generation circuit to |11⟩ and verify the output is |Ψ− ⟩.
Solution. (Full derivation given in Chapter 7. The student should reproduce it indepen-
dently.)
49
Bibliography and Further Reading
50
Bibliography
51
52 | Module 5: Elements of Quantum Computing