Quantum Computing Note
Quantum Computing Note
There are intrinsically hard problems that today’s classical computers cannot handle
efficiently.
To solve such complex computational problems, Quantum Computing is introduced as
an alternative to Classical Computing.
Quantum Computing is a modern field of technology that combines the concepts of Quantum
Mechanics and Computer Science. Unlike classical computers, which use bits represented as
0 or 1, quantum computers use Qubits that can exist in multiple states at the same time
because of a property called superposition. Quantum computing aims to solve certain
complex problems much faster than classical computers.
The history of quantum computing begins with the development of quantum theory in the
early 1900s. In 1900, Max Planck introduced the idea that energy is emitted in small packets
called quanta. This became the foundation of quantum mechanics. Later, in 1905, Albert
Einstein explained the photoelectric effect and proved that light behaves like particles called
photons. These discoveries changed the understanding of physics completely.
Further developments in quantum mechanics were made by scientists such as Niels Bohr,
who proposed the Bohr atomic model explaining electron energy levels, and Werner
Heisenberg, who introduced the Uncertainty Principle. Erwin Schrödinger developed the
Schrödinger Equation, which describes the behaviour of quantum particles mathematically.
iℏ(∂/∂t)Ψ = H’ Ψ
At the same time, the field of classical computing was also developing. Alan Turing
introduced the concept of the Turing Machine, which became the theoretical foundation of
computer science. John von Neumann later developed the architecture used in modern
computers. However, these computers were completely classical and used binary logic.
The idea of quantum computing started becoming serious during the 1970s and 1980s.
Stephen Wiesner proposed early concepts of quantum information, which later became
important in quantum cryptography. In 1980, Paul Benioff created the first theoretical model
of a quantum computer using quantum mechanical principles.
A major breakthrough came in 1981 when Richard Feynman explained that classical
computers cannot efficiently simulate quantum systems. He suggested building computers
based on quantum mechanics itself. This idea officially launched the field of quantum
computing. Feynman famously stated that nature is quantum mechanical, so simulations of
nature should also use quantum systems.
In 1985, David Deutsch proposed the idea of a Universal Quantum Computer. He also
developed the first quantum algorithm called the Deutsch Algorithm. This algorithm
demonstrated that quantum computers could solve certain problems differently and more
efficiently than classical computers.
The 1990s became a revolutionary period for quantum computing because of the discovery of
powerful quantum algorithms. In 1994, Peter Shor developed Shor's Algorithm, which can
factor large numbers exponentially faster than classical algorithms. This discovery was very
important because it showed that many modern encryption systems, such as RSA, could
theoretically be broken by quantum computers.
In 1996, Lov Grover developed Grover's Algorithm. This algorithm provides a faster method
for searching unsorted databases and gives quadratic speedup over classical searching
methods. Grover’s algorithm became one of the most important quantum search techniques.
During the 2000–2015 period, researchers started building real quantum hardware. Different
technologies were developed for creating qubits, including superconducting qubits, trapped
ion qubits, and photonic qubits. Companies such as IBM Quantum and Google Quantum AI
focused on superconducting quantum computers, while IonQ worked on trapped ion systems.
A major milestone was achieved in 2019 when Google announced that its quantum processor
called Sycamore had achieved Quantum Supremacy. The processor completed a specialized
computation faster than the world’s most powerful classical supercomputers. This event
showed that quantum computers could outperform classical computers in certain tasks.
Today, quantum computing is one of the fastest-growing research fields in the world. Major
companies including IBM Quantum, Microsoft Quantum, Amazon Braket, and Intel
Quantum are investing heavily in quantum technologies.
One of the most important concepts in quantum computing is the representation of a qubit in
superposition.
∣ψ⟩ = α∣0⟩+β∣1⟩
In this equation, α and β are probability amplitudes representing the likelihood of measuring
the qubit in states |0⟩ and |1⟩. This property allows quantum computers to process massive
amounts of information simultaneously.
Although quantum computing has achieved major progress, several challenges still exist.
Researchers are working on reducing noise, improving error correction, increasing qubit
stability, and developing fault-tolerant quantum systems. These challenges must be solved
before large-scale practical quantum computers become common.
Overall, the history of quantum computing shows the journey from early quantum physics
discoveries to advanced quantum technologies capable of transforming the future of science
and computing. From the foundational work of Max Planck and Albert Einstein to modern
developments by companies like Google Quantum AI and IBM Quantum, quantum
computing has become one of the most important technological revolutions of the 21st
century.
Comparison Between Classical Computing and Quantum Computing
Classical Computing Quantum Computing
Uses Bits Uses Qubits
Bit states are: 0 or 1 Qubit states are: 0 or 1 or a
superposition of both states
simultaneously
State is deterministic (A deterministic state State is probabilistic (A probabilistic
means the output or state is fixed and certain. state means the qubit does not have a
In classical computing, a bit always has a fixed value before measurement, and the
definite value — either 0 or 1 — before outcome is determined based on
measurement.) probabilities.)
Can represent only one state at a time Can represent multiple states
simultaneously
Data storage capacity of n bits stores only n qubits can represent (2^n) states
one combination at a time simultaneously
Information is processed sequentially Information can be processed in
parallel using superposition
Based on classical physics Based on quantum mechanics
Uses classical logic gates such as AND, OR, Uses quantum gates such as
NOT Hadamard, Pauli-X, CNOT
Copying data is easy Exact copying of unknown quantum
states is impossible (No-Cloning
Theorem)
Errors are mainly caused by hardware Errors occur due to
faults decoherence(Decoherence is the process
by which a qubit loses its quantum
properties due to interaction with the
surrounding environment.) and quantum
noise
Computation is generally slower for certain Can solve some complex problems
complex problems exponentially faster
No concept of entanglement(Entanglement is Uses quantum entanglement for
a quantum phenomenon where two or more correlated operations
qubits become connected such that the state of
one qubit instantly affects the state of the
other, regardless of the distance between
them.)
Output is always definite Output is obtained after probabilistic
measurement
Easy to build and maintain Requires extremely controlled
environments
Works at normal room conditions Often requires ultra-low temperatures
Security mainly depends on mathematical Can provide highly secure
complexity communication using quantum
cryptography
Suitable for everyday applications Suitable for optimization,
Example: Classical computers, laptops, cryptography, simulation, and
smartphones advanced research
Example: IBM Quantum Computer,
Google Sycamore
rangle∣0⟩ or ∣1⟩|1\rangle∣1⟩.
For example, if a classical bit is 0 or 1,
reading it will still keep the bit unchanged
as 0 or 1.
Parallelism is achieved using multiple Quantum parallelism is achieved through
processors superposition, where a qubit can exist in
multiple states simultaneously and
perform computations on many
possibilities at the same time.
Bits are independent unless programmed Qubits can become entangled and
otherwise strongly correlated
Classical algorithms solve problems step- Quantum algorithms use interference to
by-step strengthen the probability of correct
answers while reducing the probability of
incorrect answers.
Performance improvement is usually Certain quantum algorithms provide
incremental exponential or quadratic speedup
Information is stored in transistor states Information is stored in quantum
states of particles like electrons or
photons
Classical computers are commercially Quantum computers are still in
mature and widely available experimental and early development
stages
Classical memory is stable for long Quantum states are fragile(means
durations easily disturbed, damaged, or affected
by external conditions.) and can lose
information quickly
Debugging and testing are comparatively Debugging quantum systems is highly
easier complex
Classical communication uses electrical Quantum communication may use
signals photons and quantum channels
Classical algorithms are easy to simulate on Quantum algorithms are difficult to
normal computers simulate efficiently on classical
systems
Classical computers cannot efficiently Quantum computers are naturally
simulate complex quantum systems suitable for quantum system
simulation
Power increase mainly depends on faster Power increase depends on increasing
hardware stable qubits and reducing noise
Classical encryption can theoretically be Quantum cryptography can detect
broken with enough computation time eavesdropping during communication
Transistors are the core hardware Qubits may be implemented using
components trapped ions, superconductors,
photons, etc.
Uses Boolean algebra Uses linear algebra and complex vector
spaces
Classical operations are mostly irreversible Quantum operations are reversible
in practice using unitary transformations
One wrong operation usually affects only Quantum decoherence can affect the
local computation entire quantum state
2. Unitary Property
Every quantum gate must satisfy U†U=I, where U† is the conjugate transpose of U
and I is the identity matrix.
3. Preservation of Probability
Quantum gates do not destroy probability, so the total probability of all possible
outcomes remains equal to 1.
4. Linear Operation
• Quantum gates act linearly on qubit states, meaning if a qubit exists in superposition,
the gate operates on all components of the superposition simultaneously.
7. Phase Sensitivity
• Quantum gates can modify the relative phase between basis states, and these phase
differences are essential for quantum interference and the functioning of many quantum
algorithms.
1. Superposition Generation
Some gates, especially the Hadamard gate, create superposition from basis
states.
2. Entanglement Creation
Certain multi-qubit gates, such as CNOT and CZ, can create entanglement
between qubits.
3. Control-based Operations
Many gates work conditionally, meaning one qubit controls the operation on
another qubit.
4. Parameterized Behaviour
• Some quantum gates depend on parameters or rotation angles, such as Rx(θ), Ry(θ),
and Rz(θ), and are widely used in variational quantum algorithms and quantum
machine learning.
1. Single-qubit gates
• Single-qubit gates operate on one qubit and are represented by 2×2 unitary matrices;
examples include I, X, Y, Z, H, S, T, Rx(θ), Ry(θ), Rz(θ), and U/U3 gates.
2. Two-qubit gates
• Two-qubit gates operate on two qubits simultaneously; examples include CNOT, CZ,
CY, SWAP, iSWAP, and sqrt(SWAP) gates.
3. Three-qubit gates
Operate on three qubits; examples include Toffoli (CCNOT), Fredkin (CSWAP).
4. Multi-control gates
• Multi-control gates use more than one control qubit to perform conditional operations;
examples include (C^n(X)), (C^n(Z)), and CCCNOT gates.
1. Single-Qubit Gates
In Quantum Computing, single-qubit gates are quantum gates that operate on only one qubit
at a time. These gates are mathematically represented using 2 × 2 unitary matrices. A
unitary matrix preserves the total probability of the quantum state, which is necessary in
quantum mechanics.
∣ψ⟩=α∣0⟩+β∣1⟩
where:
∣α∣^2 + ∣β∣^2 = 1
α and β are complex probability amplitudes
A) Basic Gates
Basic gates are the most fundamental operations in quantum computing. These gates directly
manipulate the state of a qubit.
Matrix Representation
I∣0⟩ = ∣0⟩
I∣1⟩ = ∣1⟩
Important Characteristics
Does not alter amplitudes
Does not change phase
Does not rotate the qubit
Maintains the same quantum state
Additional Notes
Often used as a placeholder operation
Helps maintain uniform circuit depth
Important in hardware-level scheduling
Matrix Representation
X=\begin{bmatrix}0&1\1&0\end{bmatrix}
X|1\rangle = |0\rangle
Important Characteristics
Performs quantum bit flip
Equivalent to classical NOT operation
Changes probability amplitudes
Swaps north and south poles on Bloch sphere
Additional Notes
One of the three Pauli matrices
Hermitian and unitary
Self-inverse:
X^2=I
Bit flipping
Phase shifting
Matrix Representation
Y=\begin{bmatrix}0&-i\i&0\end{bmatrix}
Action on Basis States
Y|0\rangle = i|1\rangle
Y|1\rangle = -i|0\rangle
Important Characteristics
Combines effects of X and Z gates
Introduces imaginary phase factors
Performs simultaneous rotation and phase transformation
Geometric Meaning
Rotates state around Y-axis
Changes orientation of qubit state vector
Additional Notes
Also Hermitian and unitary
Self-inverse:
Y^2=I
Important in advanced quantum mechanics
Phase-Flip Gate
Unlike the X gate, the Z gate does not change the basis state directly. Instead, it changes the
phase of the qubit.
Matrix Representation
Z=\begin{bmatrix}1&0\0&-1\end{bmatrix}
Z|1\rangle = -|1\rangle
Important Characteristics
Does not flip the qubit value
Introduces negative phase to ( |1\rangle )
Important for quantum interference
Geometric Meaning
Rotates state around Z-axis
Changes phase relationship between basis states
Applications in Algorithms
Used heavily in:
Grover's Algorithm
Quantum Fourier Transform
Phase estimation algorithms
B) Superposition gate
Description: creates equal superposition of basis states; maps the Z basis to the X
basis and vice versa.
Matrix:
Actions:
H∣0⟩=∣0⟩+∣1⟩2,H∣1⟩=∣0⟩−∣1⟩2H\lvert 0\rangle = \frac{\lvert 0\rangle + \lvert 1\rangle}
{\sqrt{2}},\quad H\lvert 1\rangle = \frac{\lvert 0\rangle - \lvert 1\rangle}{\
sqrt{2}}H∣0⟩=2∣0⟩+∣1⟩,H∣1⟩=2∣0⟩−∣1⟩
C) Phase gates
Phase gates change only the relative phase of ∣1⟩\lvert 1\rangle∣1⟩ relative to ∣0⟩\lvert
0\rangle∣0⟩.
1. S gate (square-root of Z)
Matrix:
Matrix:
Matrix:
D) Rotation gates
Rotation-Y:
Rotation-Z:
U / U3 gate
Bloch Sphere
Matrix example:
For two qubits, the computational basis states are ∣00⟩, ∣01⟩, ∣10⟩, ∣11⟩\lvert 00\
rangle∣00⟩, ∣01⟩, ∣10⟩, ∣11⟩. There are 22=42^2 = 422=4 basis states.
rangle,\ \lvert 01\rangle,\ \lvert 10\rangle,\ \lvert 11\
For an n-qubit system, there are 2n2^n2n basis states that can exist in
superposition simultaneously.
2. Two-Qubit Gates
A) Controlled gates
2. Controlled-Z (CZ)
3. Controlled-Y (CY)
4. Controlled-U (CU)
B) SWAP-type gates
1. SWAP gate
o ∣01⟩→∣10⟩\lvert 01\rangle \rightarrow \lvert 10\rangle∣01⟩→∣10⟩
Swaps the states of two qubits:
2. SWAP\sqrt{\text{SWAP}}SWAP gate
3. iSWAP gate
3. Three-Qubit Gates
4. Toffoli (CCNOT) — controlled-controlled-NOT
4. Multi-Control Gates
5. Parameterized Gates