Lecture Notes On Quantum Computing
Lecture Notes On Quantum Computing
E-mail: ashukla038@[Link]
Contents
1 Introduction 2
–1–
9 Interdisciplinary Applications of Quantum Computing 48
1 Introduction
Today’s computers- both in theory (Turing machines) and practice (PCs, HPCs, laptops,
tablets, smartphones, . . . ) are based on classical physics. They are limited by the classical
fact that systems can be in only one state, called bits (0 or 1), at the time. However, modern
quantum physics tells us that the world behaves quite differently. A quantum system can
be in a superposition of many different states at the same time, and can exhibit interference
effects during the course of its evolution. Quantum computation is the field that investigates
the computational power and other properties of computers based on quantum-mechanical
principles. It combines two of the most important strands of 20th-century science: quantum
mechanics (developed by Planck, Einstein, Bohr, Heisenberg, Schrodinger and others in the
period 1900–1925) and computer science (whose birth may be dated to Turing’s 1936 paper).
An important objective is to find quantum algorithms that are significantly faster than any
classical algorithm solving the same problem.
Moore’s law and Future of Computers: Moore’s law is the observation that the num-
ber of transistors in a dense integrated circuit doubles about every two years. Moore’s law
will soon run into major physical constraints!
In recent years, Moore’s Law has faced increasing challenges. As transistors have
become smaller and smaller, it has become increasingly difficult and expensive to continue
shrinking them.
• Power Dissipation: As transistors become smaller and more densely packed, the
amount of heat generated by the chip increases. This heat can damage the chip and
limit its performance.
On the other hand Richard F. Feynman quotes that “when we get to the very, very
small world – say circuits of seven atoms – we have a lot of new things that would happen
that represent completely new opportunities for design. Atoms on a small scale behave like
nothing on a large scale, for they satisfy the laws of quantum mechanics. . . ” In quantum
–2–
computing, information is encoded in quantum bits or qubits, which can exist in a super-
position of states and can be entangled with each other—features that provide exponential
parallelism. Over the last two decades, advancements in quantum hardware technologies,
including superconducting circuits, trapped ions, and photonic systems, have led to the
realization of prototype quantum processors. Though still in the early stages, quantum
computers are now being developed and tested by major tech companies and research insti-
tutions around the world, marking a promising step toward solving previously intractable
computational problems.
–3–
Features Classical Computers Quantum Computers
Basic Unit Bit (Either 0 or 1) Qubit (Can be in multiple
states simultaneously due to
superposition)
State Boolean logic using gates like Quantum logic using gates
AND, OR, NOT like Hadamard, CNOT, etc.
Logic Operation Uses classical logic operations Uses quantum operations
that exploit superposition
and entanglement
Speed Limited by classical Can perform certain
processing speed calculations much faster due
to parallelism in
superposition
Memory Stored in binary digits (bits) Stored in qubits, which hold
more information due to
quantum properties
Entanglement Not possible Possible; allows qubits to be
correlated in a way that
affects system behavior
Error Sensitivity Less sensitive to noise and Highly sensitive; requires
errors quantum error correction
Applications Software, gaming, general Cryptography, quantum
computing, simulations, etc. chemistry, optimization,
machine learning, etc.
–4–
• Efficient for certain types of problems: Quantum computing is efficient for
certain types of problems that involve large numbers of variables or complex relation-
ships.
• 1994 – Peter Shor developed Shor’s Algorithm, which demonstrated that quan-
tum computers could factor large numbers exponentially faster than classical com-
puters, threatening classical cryptographic systems.
• 1996 – Lov Grover introduced Grover’s Algorithm, which showed that quantum
computers could search an unsorted database in square-root time, faster than any
classical algorithm.
• 1998 – the first quantum computers on two qubits, based on NMR (Oxford; IBM,
MIT, Stanford).
• 2001 – IBM and Stanford created a 7-qubit quantum computer using liquid-state
NMR technology, demonstrating Shor’s algorithm on a small scale.
• 2011 – D-Wave Systems announced the first commercially available quantum com-
puter (D-Wave One), using a technique called quantum annealing.
–5–
• 2019 – Google AI Quantum claimed to achieve quantum supremacy by per-
forming a specific task on a 53-qubit quantum processor (Sycamore) that would take
a classical supercomputer thousands of years.
• 2020s – Major tech companies like IBM, Google, Microsoft, and startups expanded
efforts to build scalable, fault-tolerant quantum computers.
–6–
Prerequisites for Understanding Quantum Computing
1. Linear Algebra: Vectors and matrices, Inner product, outer product, Eigenvalues
and eigenvectors, Tensor (Kronecker) products, Unitary and Hermitian matrices
Why it’s important: Quantum states are represented as vectors and quantum gates
as matrices.
5. Classical Computing Basics: Binary logic and classical gates (AND, OR, NOT),
Classical algorithms and complexity, Programming logic and control flow
Why it’s important: Helps to understand the difference and advantages of quantum
computing.
–7–
2 Basic Linear Algebra
Linear Algebra is a branch of mathematics that deals with vectors, matrices, and systems of
linear equations. It is like a language that helps describe physical and geometric problems in
a simple, logical way. We use linear algebra in physics, engineering, computer science, and
especially in quantum mechanics to represent states, transformations, and measurements.
Important Concepts:
• Scalars: Just regular numbers (like 3, -5, or 2.7).
• Vectors: Arrows in space having both direction and magnitude. Example: ⃗v = (3, 4)
• Operations: You can add vectors, multiply them by numbers, or apply matrices to
them.
• Zero vector: A special vector like (0, 0) that does nothing when added.
• Opposite vectors: For any vector ⃗a, there exists −⃗a so that ⃗a + (−⃗a) = 0
The set of all 2D and 3D vectors like (x, y) and (x, y, z) where x, y and xare real
numbers is a vector space.
–8–
For 3D Vectors:
⃗a · ⃗b = a1 b1 + a2 b2 + a3 b3 ,
Basis vectors are a set of linearly independent vectors that can be combined to form any
other vector within a given vector space. They are essentially the building blocks of the
vector space. In simpler terms, they are a minimal set of vectors that can “reach" every
other vector in that space through linear combinations (scaling and adding).
■ Spanning: The basis vectors, through linear combinations, can generate any vector
in the vector space.
Examples:
The most common basis for the 2D plane (also known as R2 ) is the set of vectors
î = (1, 0) and ĵ = (0, 1). Any vector in the plane, like (2, 3), can be written as a
linear combination of î and ĵ : (5, 2) = 5 ∗ (1, 0) + 2 ∗ (0, 1) = 5i + 2j.
The standard basis for 3D space is î = (1, 0), ĵ = (0, 1) and k̂ = (0, 0, 1). Similarly,
any vector in 3D space, like (3, −2, 1), can be expressed as a linear combination:
(3, −2, 1) = 3 ∗ (1, 0, 0) + (−2) ∗ (0, 1, 0) + 1 ∗ (0, 0, 1) = 3î − 2ĵ + k̂.
One can say that a basis vector is like a “direction" in space. Just as any 3D
vector can be described using the unit vectors î, ĵ, k̂, any quantum state can be
described using quantum basis vectors.
–9–
2.3 Hilbert Space: Definition and Properties
David Hilbert (1862–1943) was a brilliant German mathematician who laid the foundation
for many areas in modern mathematics. The concept of Hilbert space is named after him
because of his work on infinite-dimensional spaces used in solving differential and integral
equations.
A Hilbert space is a vector space equipped with an inner product that also satisfies
the property of completeness. It can be thought of as a generalization of Euclidean space
with the added feature of completeness. It has operations of vector addition and scalar
multiplication that satisfy certain axioms (associativity, commutativity, etc.). The vectors
in the space can be real or complex numbers, or even functions, depending on the specific
Hilbert space. It has two most important properties:
2. It is complete, meaning there are no missing points. All "converging sequences" lead
to a vector that is still in the space.
Examples:
• R2 , R3 : finite-dimensional Hilbert spaces.
– 10 –
■ Norm: Length of a vector: p
∥ψ∥ = ⟨ψ|ψ⟩
■ Completeness: Every sequence that gets closer and closer (Cauchy sequence) ends
up at a point inside the space.
Think of Hilbert space as the “universe” where all quantum states live.
Key Components
■ Ket (|ψ⟩): Any general state in quantum mechanics is represent as a column vector.
Example: !
a
|ψ⟩ =
b
where a, b are complex numbers.
■ Bra (⟨ψ|): The dual vector, or complex conjugate transpose of the ket is represented
in terms of row vector.
Example:
⟨ψ| = a∗ b∗
where a∗ , b∗ are complex conjugates.
In quantum mechanics, vectors representing quantum states live in a Hilbert space.
To extract physical meaning from these states, we use two important mathematical
operations: the inner product and the outer product.
– 11 –
■ Inner Product (⟨ϕ⟩ ψ): The inner product (also called the braket) between two
state vectors |ψ⟩ and |ϕ⟩ is written as:
!
a
⟨ϕ⟩ ψ = c d∗ ∗ = c∗ a + d∗ b
b
This is a complex number that tells us how much the state |ϕ⟩ overlaps with the state
|ψ⟩.
The square modulus |⟨ψ|ϕ⟩|2 gives the probability of finding the system in state |ψ⟩
if it was originally in state |ϕ⟩.
– ⟨ψ|ϕ⟩ = ⟨ϕ|ψ⟩
– ⟨ψ|ψ⟩ = 1 for a normalized state
– ⟨ψ|ϕ⟩ = 0 if the states are orthogonal
Example:
Let " # " #
1 1 1
|ψ⟩ = , |ϕ⟩ = √
0 2 1
Then, " #
h 1 1
i 1
⟨ψ|ϕ⟩ = 1 0 · √ =√
2 1 2
So the probability of measuring |ψ⟩ from |ϕ⟩ is:
1
|⟨ψ|ϕ⟩|2 =
2
■ Outer Product: The outer product of |ψ⟩ and ⟨ϕ| is written as:
! !
a ∗ ∗ ac∗ ad∗
|ψ⟩ ⟨ϕ| = c d =
b bc∗ bd∗
It produces an operator (a matrix) rather than a number.
Physical Interpretation: The outer product creates an operator that can be used
in quantum measurements and in constructing density matrices in mixed states.
Example: Let " #
1 1 h i
|ψ⟩ = , ⟨ϕ| = √ 1 1
0 2
Then, " # " #
1 1 h i 1 11
|ψ⟩⟨ϕ| = ·√ 11 =√
0 2 2 00
This is a 2 × 2 matrix that can act on other quantum states.
– 12 –
Advantages of Dirac’s Notation:
Normalization Condition
A quantum state |ψ⟩ is said to be normalized if its inner product with itself is equal to 1:
⟨ψ|ψ⟩ = 1
Physical Interpretation: This means that the total probability of finding the particle
somewhere in space is 1, which aligns with the probabilistic interpretation of quantum
mechanics.
Example: Let the state vector be:
1 1
|ψ⟩ = √ |0⟩ + √ |1⟩
2 2
To check normalization:
1 1 1 1
⟨ψ|ψ⟩ = √ ⟨0| + √ ⟨1| √ |0⟩ + √ |1⟩
2 2 2 2
1 1 1 1
= ⟨0|0⟩ + ⟨1|1⟩ + ⟨0|1⟩ + ⟨1|0⟩
2 2 2 2
1 1
= (1) + (1) + 0 + 0 = 1
2 2
So, the state is normalized.
– 13 –
Orthogonality Condition
Two states |ϕ⟩ and |ψ⟩ are said to be orthogonal if their inner product is zero:
⟨ϕ|ψ⟩ = 0
Physical Interpretation: If two states are orthogonal, it means they are completely
distinguishable. If a system is in state |ϕ⟩, the probability of finding it in state |ψ⟩ is zero.
Example: Let " # " #
1 0
|ψi ⟩ = , |ψi ⟩ =
0 1
Then, " #
h i 0
⟨ψi |ψj ⟩ = 1 0 =0
1
So, |ψi ⟩ and |ψj ⟩ are orthogonal.
Example
Consider the standard basis vectors in a two-dimensional Hilbert space:
" # " #
1 0
|ψi ⟩ = , |ψj ⟩ =
0 1
We compute:
⟨ψi ⟩ = 1, ⟨ψj ⟩ = 1 (Normalization)
⟨ψi |ψj ⟩ = 0, ⟨ψj |ψi ⟩ = 0 (Orthogonality)
Thus, {|ψi ⟩ , |ψj ⟩} form an orthonormal basis.
– 14 –
3.2 Superposition Quantum States
In quantum mechanics, the superposition principle states that if a quantum system
can be in state |ψ1 ⟩ and also in state |ψ2 ⟩, then it can also exist in a linear combination
(superposition) of those states:
|c1 |2 + |c2 |2 = 1
Physical Interpretation
Superposition does not mean the system is either in |ψ1 ⟩ or |ψ2 ⟩; rather, it exists in both
states simultaneously until a measurement is made.
■ Upon measurement, the system collapses to one of the basis states with a probability
given by the square of the corresponding amplitude.
■ Before measurement, the system exhibits behaviors (such as interference) that cannot
be explained by classical probability.
– 15 –
• This creates an interference pattern, characteristic of wave behavior.
• Upon detection, the electron is found at a single point — the superposed wavefunction
collapses.
This experiment vividly demonstrates the physical reality of quantum superposition. Quan-
tum particles don’t follow a single path. Instead, their behavior is governed by superposed
wavefunctions until measured.
1 1
|ψ⟩ = √ |↑⟩ + √ |↓⟩
2 2
This means:
This means the qubit simultaneously holds both states. Upon measurement:
– 16 –
Aspect Classical Superposition Quantum Superposition
State before measurement Definite (e.g., spin-up or down) Combination of multiple states
State after measurement Same as before Collapses to one basis state
Probability Deterministic Probabilistic outcome from amplitudes
Interpretation Object is in one state Object exists in all allowed states
■ Linearity:
Â(c1 ψ1 + c2 ψ2 ) = c1 Âψ1 + c2 Âψ2
Linear operators ensure superposition is preserved under their action.
■ Eigenvalue Equation:
 |ψ⟩ = a |ψ⟩
Here, a is an eigenvalue (measurable result), and |ψ⟩ is an eigenstate of the operator
Â.
■ Expectation Value:
⟨Â⟩ = ⟨ψ| Â |ψ⟩
This represents the average value of many measurements of observable A on a system
in state |ψ⟩.
Types of Operators
• Position Operator
x̂ψ(x) = xψ(x)
Acts by multiplying the wavefunction with the variable x.
• Momentum Operator
d
p̂ψ(x) = −iℏ ψ(x)
dx
Acts as a differential operator in position space.
– 17 –
• Hamiltonian Operator (Energy) For a single particle in one dimension:
p̂2 ℏ2 d2
Ĥ = + V (x̂) = − + V (x)
2m 2m dx2
Appears in the time-independent Schrödinger equation:
Ĥψ(x) = Eψ(x)
Physical Meaning
■ The expectation value gives the statistical average of outcomes over many identically
prepared systems.
Quantum mechanical operators form the foundation of quantum theory. They replace
classical observables with abstract linear transformations that act on states in a Hilbert
space. Through their eigenvalues, eigenstates, and expectation values, operators allow us
to connect the formalism of quantum theory to real physical measurements and predictions.
Hermitian Operator
In quantum mechanics, Hermitian operators are operators that are equal to their own
adjoint (or Hermitian conjugate). The adjoint operation essentially involves taking the
complex conjugate and transpose of the operator’s matrix representation.
Let  be a linear operator acting on a Hilbert space. It is said to be Hermitian (or
self-adjoint) if:
 = †
That means, for any two state vectors |ψ⟩ and |ϕ⟩,
⟨ψ|Âϕ⟩ = ⟨Âψ|ϕ⟩
Key Properties
– 18 –
■ Complete Set of Eigenfunctions: Hermitian operators have a complete set of
orthonormal eigenfunctions. Any state can be expanded in terms of these eigenfunc-
tions.
■ Algebraic Properties:
Physical Interpretation
All of these are Hermitian operators with real eigenvalues, ensuring that measurable
quantities are real.
– 19 –
Using integration by parts and assuming boundary terms vanish:
Z
d ∗
= iℏ ψ (x) ϕ(x)dx = ⟨p̂ψ|ϕ⟩
dx
Hence, p̂ is Hermitian.
Unitary operators play a fundamental role in quantum mechanics. They are used to describe
the time evolution of quantum systems, ensuring that probabilities are conserved. An
unitary operator is a linear operator that preserves the inner product of quantum states.
This means that if you apply a unitary operator to a quantum state, the “length" and
“angle" between that state and any other state will remain unchanged. The Schrödinger
equation, which governs how quantum systems evolve, uses unitary operators to represent
time evolution. Additionally, unitary transformations are used to change the basis of a
quantum system while preserving the physical properties
A unitary operator Û is a linear operator on a Hilbert space that satisfies:
Û † Û = Û Û † = Iˆ
where Û † is the Hermitian adjoint (conjugate transpose) of Û , and Iˆ is the identity operator.
This condition ensures that Û preserves inner products and norms of quantum states,
and hence the total probability.
Key Properties
■ Norm Preservation:
Û |ψ⟩ = ∥|ψ⟩∥
⟨ϕ⟩ ψ = ⟨Û ϕ⟩ Û ψ
■ Reversibility:
Û −1 = Û †
|λ| = 1
– 20 –
Applications of Unitary Operators
Û (t) = e−iĤt/ℏ
C. Change of Basis
Switching from one orthonormal basis to another uses a unitary matrix:
X
|fi ⟩ = Uij |ej ⟩
j
is unitary operator?
Now multiply:
" #" # " #
√1 − √12 √1 √1 10
A† A = 2 2 2 = =I
√1 √1 − √12 √12 01
2 2
Thus, A is unitary.
– 21 –
• Application of Unitary Operator on a State
" # " #
01 1
Let σx = (the Pauli-X gate). Apply σx to the state |0⟩ = .
10 0
†
Û † (t) = e−iĤt/ℏ = eiĤt/ℏ
Then:
Û † (t)Û (t) = eiĤt/ℏ e−iĤt/ℏ = Iˆ
is unitary.
Now: " #
10
Ûz† (θ)Ûz (θ) = =I
01
– 22 –
3.4 Commutation and Anticommutation Relation
Commutator: Suppose someone measure an observable, such as position, momentum or
energy. How does that measurement affect subsequent measurements of another observable?
To answer this question, one need to introduce the commutator of two Hermitian
operators and explore its physical interpretation. Further, the proof of a generalisation of
Heisenberg’s uncertainty principle, which sets a fundamental limit on the precision with
which observables can be determined simultaneously. In quantum mechanics, observables
are represented by operators acting on a Hilbert space. The commutator of two operators
tells us whether the order of applying them matters.
Let  and B̂ be two linear operators (such as position x̂, momentum p̂, or the Hamil-
tonian Ĥ). The commutator is defined as:
■ Jacobi Identity:
■ Distributivity:
[Â, B̂ + Ĉ] = [Â, B̂] + [Â, Ĉ]
■ Leibniz Rule:
[Â, B̂ Ĉ] = [Â, B̂]Ĉ + B̂[Â, Ĉ]
– 23 –
Figure 3. (a) Demonstration of particle-wave duality through the build-up of an interference
pattern in the double-slit experiment. (b) Heisenberg’s uncertainty principle illustrating momentum
and position distributions with the relation ∆P · ∆X ≥ ℏ.
– 24 –
Then use the Cauchy-Schwarz inequality:
Let Ĉ = Â + iλB̂ for λ ∈ R, and consider ⟨Ĉ † Ĉ⟩ ≥ 0. The cross terms yield the
commutator and anti-commutator. This leads to:
1
(∆A)2 (∆B)2 ≥ ⟨[Â, B̂]⟩2 + ⟨{Â, B̂}⟩2
4
Taking the imaginary part gives the standard uncertainty principle.
Take Home Message: Only in the classical limit can we simultaneously determine exact
values of non-compatible observables like position and momentum.
■ Symmetry:
{Â, B̂} = {B̂, Â}
■ Distributivity:
{Â, B̂ + Ĉ} = {Â, B̂} + {Â, Ĉ}
■ Product Rule:
{Â, B̂ Ĉ} = {Â, B̂}Ĉ − B̂[Â, Ĉ]
Key Differences
– 25 –
4 Pauli Spin Matrices
ℏ
Si = σi (i = x, y, z).
2
4.1 Key Algebraic Properties
■ Hermitian and Unitary
σi† = σi , σi† σi = I.
■ Product Identity
σi σj = δij I + i ϵijk σk .
where ! !
1 0
|↑z ⟩ = , |↓z ⟩ = .
0 1
– 26 –
Similarly, ! !
1 1 1 1
|↑x ⟩ = √ , |↓x ⟩ = √ ,
2 1 2 −1
! !
1 1 1 1
|↑y ⟩ = √ , |↓y ⟩ = √ .
2 i 2 −i
ℏ2 2 3
S 2 = Sx2 + Sy2 + Sz2 = (σx + σy2 + σz2 ) = ℏ2 I.
4 4
Thus, s(s + 1)ℏ2 = 34 ℏ2 =⇒ s = 12 .
For the reverse (anti-cyclic) order, multiply in the opposite order or note that swap-
ping indices changes the sign:
• Anticommutator
The anticommutator is defined as {A, B} = AB + BA.
– 27 –
{σz , σx } = σz σx + σx σz = iσy + (−iσy ) = 0.
Combining both cases we get the compact result
{σi , σj } = 2δij I .
• Commutator
The commutator is [A, B] = AB − BA.
Using the explicit cyclic products:
Similarly,
[σy , σz ] = 2iσx , [σz , σx ] = 2iσy .
– 28 –
5 Quantum Bit (Qubit)
Representing the next generation in computing power, quantum computing uses special-
ized technology—including computer hardware and algorithms that take advantage of the
principles of quantum mechanics—to solve complex problems that classical computers or
supercomputers can’t solve (or can’t solve quickly enough). The classical computers are
also subject to material restrictions, such as overheating, putting hard limits on their abil-
ity to process information. There are some complex problems, such as the modeling of
individual atoms in a molecule, that we do not know how to solve with classical computers
at any scale. The laws of quantum mechanics dictate the order of the natural world. When
studying quantum computers, it is important to understand that quantum mechanics is not
like traditional physics.
Just as bits are the fundamental object of information in classical computing, qubits (quan-
tum bits) are the fundamental object of information in quantum computing. The term
“qubit” is attributed to American theoretical physicist Benjamin Schumacher.
While a bit, or binary digit, can have a value of either 0 or 1, a qubit can have a value
that is either 0, 1, or a quantum superposition of 0 and 1. At its core, a qubit (quan-
tum bit) encapsulates the essence of superposition, existing in a state that is both 0 and
1 simultaneously, until measured. This inherent duality enables quantum computers to
perform parallel computations, exponentially increasing their processing power compared
to classical counterparts.
are the basis vectors in a two-dimensional complex vector space. Here, α and β are complex
probability amplitudes. The normalization condition is given by:
|α|2 + |β|2 = 1,
Theoretically, any two-level quantum system can be used to make a qubit. A quantum
system is described as two-level when certain system properties can be measured in binary
positions, such as up or down. Multilevel quantum systems can be used to create qubits, as
well, as long as two aspects of that system can be effectively isolated to produce a binary
measurement. Here are a few examples of physical qubit systems
– 29 –
• Electron Spin Qubits: Basis states |0⟩ = | ↑⟩, |1⟩ = | ↓⟩. The electron’s intrinsic
spin has two measurable states along a chosen axis (usually z-axis). Superpositions
occur when the spin is oriented between these states.
• Photon Polarization Qubits: Basis states |0⟩ = |H⟩, |1⟩ = |V ⟩. Photons can be
polarized horizontally (H) or vertically (V). Any linear or circular polarization is a
superposition of these states.
Qubits may be pictured in 3D using the Bloch sphere representation. The Bloch sphere
gives a way of describing a single-qubit quantum state (which is a two-dimensional complex
vector) as a three-dimensional real-valued vector. This is important because it allows us
to visualise single-qubit states and thereby develop reasoning that can be invaluable in
understanding multi-qubit states.
On the quantum level, qubit probability is measured as a wave function. The probability
amplitude of a qubit can be used to encode more than one bit of data and carry out
extremely complex calculations when combined with other qubits.
– 30 –
For a system of n qubits, the total number of possible computational basis states is 2n .
Each qubit individually can exist in the state |0⟩ or |1⟩, or in a superposition of the two.
When multiple qubits are combined, their basis states are formed by taking all possible
tensor products of the single-qubit basis states. This means that for n qubits, we have 2n
orthonormal basis states, each corresponding to a distinct binary string of length n, such
as |00 · · · 0⟩ or |11 · · · 1⟩. A general n-qubit quantum state can therefore be expressed as
n −1
2X
|ψ⟩ = ci |i⟩,
i=0
where |i⟩ represents one of the 2n basis states and ci are complex probability amplitudes
satisfying the normalization condition
n −1
2X
|ci |2 = 1.
i=0
Although a measurement yields only one of these basis states, before measurement the
system can exist in a superposition of all 2n possibilities simultaneously. This exponen-
tial growth of the state space with n is a key factor behind the potential computational
advantage of quantum systems — for example, with just 20 qubits, the Hilbert space has
220 = 1, 048, 576 distinct basis states.
– 31 –
5.3 Challenges with Qubit
While powerful, qubits are also very temperamental. To function, qubits must be cooled to
a temperature only a fraction of a degree higher than absolute zero, which is colder than
outer space.
Quantum particles are said to have coherence when they are sufficiently controlled to
function as qubits. When a qubit loses this ability, it is described as decoherent. The
high-powered refrigeration required to create a state of coherence for functional qubits is a
major challenge for quantum computing.
A single qubit can exist in a superposition of both the |0⟩ and |1⟩ states simultaneously,
meaning it’s not definitively either 0 or 1 until measured. This superposition is described
by the complex coefficients α and β. The Born rule, in the context of a single qubit
measurement, dictates the probability of obtaining a specific outcome (either 0 or 1) when
measuring a qubit in a superposition state.
Statement: The Born rule states that if a quantum system is in a state |ψ⟩ and we
measure it in an orthonormal basis {|i⟩}, the probability of obtaining outcome |i⟩ is given
by:
P (i) = |⟨i|ψ⟩|2
– 32 –
Application to a Single Qubit
A general single-qubit state can be written as:
Post-Measurement State
According to the projection postulate:
• If the result is 0, the state collapses to |0⟩
Example
Consider: √
3 1
|ψ⟩ = |0⟩ + |1⟩
2 2
The probabilities are:
√ 2
3 3
P (0) = = (75%)
2 4
2
1 1
P (1) = = (25%)
2 4
{|0⟩ , |1⟩}
This basis corresponds to the Z-axis of the Bloch sphere and is the native measurement
basis of most quantum hardware.
– 33 –
6.2 Measurement in X-basis
The X-basis is defined by the eigenstates of the Pauli-X operator:
|0⟩ + |1⟩ |0⟩ − |1⟩
|+⟩ = √ , |−⟩ = √ .
2 2
6.3 Measurement in Y-basis
The Y-basis is defined by the eigenstates of the Pauli-Y operator:
|0⟩ + i |1⟩ |0⟩ − i |1⟩
|+i⟩ = √ , |−i⟩ = √ .
2 2
It corresponds to measuring along the Y -axis of the Bloch sphere.
Solution:
√ 2
3 3
P (0) = =
2 4
2
1 1
P (1) = =
2 4
P (0) = 0.75, P (1) = 0.25
– 34 –
Problem 3 – X Basis
A qubit is in the state:
|ψ⟩ = |0⟩
Find the probability of obtaining |+⟩ and |−⟩ when measured in the X basis.
Solution: We use:
|0⟩ + |1⟩ |0⟩ − |1⟩
|+⟩ = √ , |−⟩ = √
2 2
Overlap with |0⟩:
1 1
⟨+|0⟩ = √ , ⟨−|0⟩ = √
2 2
So:
1 1
P (+) = , P (−) =
2 2
Solution:
|0⟩ + |1⟩ |0⟩ − |1⟩
|+⟩ = √ , |−⟩ = √
2 2
√ 2
√ 3
+ 1
3/2 + 1/2 2 2
⟨+|ψ⟩ = √ , P (+) =
2 2
√ 2
√ 3
− 1
3/2 − 1/2 2 2
⟨−|ψ⟩ = √ , P (−) =
2 2
Problem 5 – Y Basis
A qubit is in the state:
|0⟩ + i|1⟩
|ψ⟩ = √ = | + i⟩
2
Find the probability of obtaining | + i⟩ and | − i⟩ when measured in the Y basis.
P (+i) = 1, P (−i) = 0
– 35 –
Problem 6 – Y basis with general state
A qubit is in the state: √ √
2 i 2
|ψ⟩ = |0⟩ + |1⟩
2 2
Find probabilities when measured in the Y basis.
Magnitude squared:
|1 + i|2 1+1 1
P (+) = = =
4 4 2
Similarly:
1
P (−) = 1 − P (+) =
2
P (+) = 0.5, P (−) = 0.5
– 36 –
find P (b0 ) and P (b1 ).
Solution:
π π π π
⟨b0 |ψ⟩ = cos cos + sin sin
4 6 4 6
√ √ √ ! 2
2 3 2 1
P (b0 ) = · + ·
2 2 2 2
P (b1 ) = 1 − P (b0 )
The Bloch Sphere visualization, named after physicist Felix Bloch, is a geometrical repre-
sentation of a qubit’s state space. It is a unit sphere, which is a sphere with a radius of 1.
The vertical z-axis is labelled with |0⟩ at the top and |1⟩ at the bottom. The ends of two
perpendicular horizontal axes, the x and the y, are labelled |+⟩ and |−⟩, and |+i⟩ and |−i⟩,
respectively. The surface of the sphere represents the possible pure states of a qubit, while
the interior of the sphere represents its possible mixed states.
Mathematically, a qubit’s state can be described with two complex numbers. A complex
number has a real part and an imaginary part. From these two complex numbers, three
real numbers are calculated that determine a point on or in the Bloch sphere. A vector
originating at the center of the sphere and terminating at that point represents the state
of the qubit.
A Bloch sphere uses its three axes to represent a qubit’s state. The state vector
originates in the center of the sphere and terminates at a point with z, x, and y coordinates.
where θ, ϕ, γ are real numbers. The range 0 ≤ θ ≤ π and 0 ≤ ϕ < 2π parameterizes the
surface of a unit sphere.
Since the global phase eiγ has no observable effect, the state can be simplified to
θ θ
|ψ⟩ = cos |0⟩ + eiϕ sin |1⟩ .
2 2
This is the Bloch sphere representation.
– 37 –
Figure 7. Bloch Sphere Representation for Single Qubit.
x2 + y 2 = 1,
This leaves one degree of freedom for points on the circle. It has to be noted that a general
qubit state is written as
|ψ⟩ = α |0⟩ + β |1⟩ ,
– 38 –
with rα2 + rβ2 = 1.
Now, one can see that multiplication of e−iϕα removes the phase of α:
Let us take
x = rβ cos ϕ,
y = rβ sin ϕ,
z = rα ,
θ θ
|ψ⟩ = cos |0⟩ + eiϕ sin |1⟩ .
2 2
– 39 –
7.3 Properties of the Bloch Sphere
• Orthogonality of Opposite Points: Let |ψ⟩ be as above and |χ⟩ the opposite
point:
π−θ π−θ
|χ⟩ = cos |0⟩ + ei(ϕ+π) sin |1⟩ .
2 2
One finds
⟨χ|ψ⟩ = 0,
meaning opposite points correspond to orthogonal states.
Rx (θ) = e−iθX/2 ,
Ry (θ) = e−iθY /2 ,
Rz (θ) = e−iθZ/2 .
Traditional computers use electrical signals that represent binary 1s and 0s, or bits. Logic
gates are the fundamental operations that allow these bits to change between 0 and 1, and a
range of examples exists such as ‘AND’, ‘OR’ and ‘NOT’. For example, a NOT gate changes
a bit from a 0 to a 1 (or vice versa). AND and OR gates are two-bit gates that take two
bits as inputs and output a single bit, depending on the inputs.
A surprising fact is that all possible processes, from simple addition on a calculator to
browsing Facebook, can be constructed from a small set of these gates called a ‘universal
gate set’. In other words, you should be able to run any possible algorithm using a universal
computer — an observation first made in 1936 by Alan Turing.
Quantum computers operate using qubits, not bits. Unlike traditional bits which can
only be 0 or 1, a qubit can exist in a ‘superposition’ of 0 and 1. This ability to exist in
multiple states at once gives quantum computers tremendous power. But a qubit is useless
unless you can use it to carry out a quantum calculation. And these quantum calculations
are achieved by performing a series of fundamental operations, known as quantum gates.
– 40 –
Figure 9. NOT Gate
Figure 10. AND Gate
Quantum gates are the building blocks of quantum circuits, like classical logic gates
are for conventional digital circuits. Unlike many classical logic gates, quantum logic gates
are reversible. It is possible to perform classical computing using only reversible gates.
Quantum gates are unitary operators, and are described as unitary matrices relative to
some orthonormal basis. There are lots of types of quantum gates. There are single qubit
gates, which can flip a qubit from 0 to 1 as well as allowing superposition states to be
created.
The Identity gate, denoted as I, leaves the qubit unchanged. Its matrix form is:
" #
10
I=
01
applying I gives
" #" # " #
10 α α
I|ψ⟩ = = = |ψ⟩
01 β β
■ Bloch Sphere Representation: On the Bloch sphere, the Identity gate leaves any
point exactly where it is — no rotation or phase change occurs.
– 41 –
8.3 Pauli-X Gate
The Pauli-X gate, often referred to as the “X gate”, “quantum NOT gate”, and ”bit-flip gate”,
is one of the fundamental quantum logic gates used in quantum computing. Similar to the
classical NOT gate, or logical negation, the gate flips the state of a single qubit, changing
the quantum state |0⟩ to |1⟩ and |1⟩ to |0⟩. Due to its simplicity and crucial function in
quantum computations, the Pauli-X gate is integral to virtually all quantum circuits. It
flips the computational basis states:
As a quantum gate, X is a 2 × 2 unitary matrix acting on a single qubit. The matrix form
is " #
01
X = , X † X = XX = I2 .
10
■ Action on a General Qubit: for a general state |ψ⟩ = α |0⟩+β |1⟩ with |α|2 +|β|2 =
1,
X |ψ⟩ = α X |0⟩ + β X |1⟩ = α |1⟩ + β |0⟩ .
Thus, the X gate swaps the amplitudes α and β.
X ≡ Rx (π) = e−i(π/2) X .
Geometrically, it flips the north and south poles (|0⟩ ↔ |1⟩) and maps ϕ 7→ −ϕ at
θ = π/2.
– 42 –
• Example 3 (Measurement probabilities) Start with |ψ⟩ = α |0⟩ + β |1⟩. After X, the
state is α |1⟩ + β |0⟩. Measuring in the computational basis yields
The Pauli-X gate is a fundamental single-qubit operation that (i) flips |0⟩ and |1⟩, (ii) swaps
amplitudes in a superposition, (iii) corresponds to a π-rotation about the Bloch x-axis, and
(iv) is unitary, Hermitian, and its own inverse. It is ubiquitous in quantum algorithms and
appears as the target operation in controlled-NOT gates.
we have:
Y |ψ⟩ = α(i |1⟩) + β(−i |0⟩) = −iβ |0⟩ + iα |1⟩
The Y gate flips amplitudes like X, but introduces relative phase factors.
– 43 –
■ Bloch Sphere Interpretation: The Pauli-Y gate represents a rotation by π about
the Y -axis:
Y = Ry (π) = e−i(π/2)Y
• Hermitian: Z = Z †
• Traceless: Tr(Z) = 0
– 44 –
■ Bloch Sphere Interpretation: The Pauli-Z gate represents a rotation by π about
the Z-axis:
Z = Rz (π) = e−i(π/2)Z
– |0⟩ and |1⟩ remain on the Z-axis but |1⟩ gains a −1 phase.
– States in the XY-plane are mirrored through the X-axis.
– It is a pure phase-flip with no change in computational basis probability ampli-
tudes.
The Hadamard gate (H) is a single-qubit quantum gate that creates superposition states
from the computational basis states. It is often described as a rotation and reflection
operation that:
|0⟩+|1⟩
• Maps |0⟩ to √
2
|0⟩−|1⟩
• Maps |1⟩ to √
2
It is one of the most important gates in quantum computing, widely used in algorithms
such as Grover’s search and Shor’s algorithm.
Hadamard gate in the form of matrix given by:
" #
1 1 1
H=√
2 1 −1
It satisfies:
• Unitary: H † H = I
• Hermitian: H = H †
• Involution: H 2 = I
– 45 –
■ Action on a General Qubit: For a general qubit
we have:
α+β α−β
H |ψ⟩ = √ |0⟩ + √ |1⟩
2 2
Thus, the Hadamard gate mixes the amplitudes of |0⟩ and |1⟩, effectively performing
a π rotation around the axis halfway between X and Z on the Bloch sphere.
• Unitary: S † S = I
• Not Hermitian: S ̸= S †
• Relation to Pauli-Z: S 2 = Z
• Rotation Form: S = Rz π2
– 46 –
■ Action on a General Qubit: For
we have
S |ψ⟩ = α |0⟩ + iβ |1⟩
Hence, the probability amplitudes remain unchanged in magnitude, but the |1⟩ term
acquires a relative phase of π2 .
– States on the equator (superpositions with equal magnitude) are rotated in the
XY -plane.
– Computational basis states |0⟩ and |1⟩ remain at the poles, unchanged in posi-
tion.
– 47 –
9 Interdisciplinary Applications of Quantum Computing
Quantum computers can simulate molecules and chemical reactions at the quantum
level, which classical computers cannot do efficiently. This makes it possible to de-
sign new drugs faster, discover treatments for complex diseases, and even personalize
medicine for individuals. As future engineers and scientists, you could be part of
breakthroughs that save millions of lives.
• Cybersecurity
The digital world relies on encryption to keep data safe, but powerful quantum com-
puters could break many of today’s codes. At the same time, quantum technology
also provides new, ultra-secure ways of communication through quantum cryptog-
raphy. This means you could contribute to making the internet safer and protecting
everything from personal chats to national defense systems.
AI already powers tools like chatbots, image recognition, and smart assistants. With
quantum computing, AI could process data at much higher speeds, recognize patterns
more efficiently, and solve problems that are impossible today. For students excited
about AI and data science, combining it with quantum technology opens the door to
building the “super-smart” technologies of tomorrow.
Banks and financial institutions face extremely complex problems like portfolio op-
timization, risk management, and fraud detection. Quantum algorithms can handle
these challenges much faster than classical methods. This means more secure trans-
actions, smarter investment decisions, and better economic planning. Students in-
terested in finance, business, or data science will find this a powerful area to apply
quantum skills.
These five applications show that quantum computing is not just physics or computer science—
it is a bridge across disciplines that creates real-world impact.
– 48 –
“Nature isn’t classical, dammit; and if you want to make a sim-
ulation of nature, you’d better make it quantum mechanical.”
– 49 –