Quantum Computing Notes
Quantum Computing Notes
Abstract
1
Contents
1 Mathematical Foundations of Quantum Mechanics 3
1.1 Vector Spaces and the Hilbert Space . . . . . . . . . . . . . . . . . . . . 3
1.2 The Qubit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.3 The Bloch Sphere Representation . . . . . . . . . . . . . . . . . . . . . . 3
1.4 The Four Postulates of Quantum Mechanics . . . . . . . . . . . . . . . . 4
1.4.1 Postulate 1: State Space . . . . . . . . . . . . . . . . . . . . . . . 4
1.4.2 Postulate 2: Evolution . . . . . . . . . . . . . . . . . . . . . . . . 4
1.4.3 Postulate 3: Measurement . . . . . . . . . . . . . . . . . . . . . . 4
1.4.4 Postulate 4: Composite Systems . . . . . . . . . . . . . . . . . . . 5
6 Physical Implementations 11
7 Conclusion 12
2
1 Mathematical Foundations of Quantum Mechanics
1.1 Vector Spaces and the Hilbert Space
The mathematical foundation of quantum computing is built upon linear algebra. The
state of a quantum system is mathematically described by a vector in a complex vector
space equipped with an inner product. This specific type of vector space is known as a
Hilbert space, denoted as H.
For a finite-dimensional quantum system, the Hilbert space is isomorphic to Cd , where
d is the dimension of the system. We utilize Dirac notation (bra-ket notation) to represent
vectors. A column vector is represented as a "ket" |ψ⟩, while its conjugate transpose (row
vector) is represented as a "bra" ⟨ψ|.
3
where 0 ≤ θ ≤ π and 0 ≤ ϕ < 2π. The parameters θ and ϕ define a point on the surface
of a unit sphere in three-dimensional real space R3 , known as the Bloch sphere. The
North Pole corresponds to |0⟩, the South Pole to |1⟩, and points on the equator represent
equal superpositions (e.g., |+⟩ = √1 (|0⟩
2
+ |1⟩)).
Associated with any isolated physical system is a complex vector space with an inner
product (that is, a Hilbert space) known as the state space of the system. The system
is completely described by its state vector, which is a unit vector in the system’s state
space.
The time evolution of the state of a closed quantum system is described by the Schrödinger
equation:
d|ψ(t)⟩
iℏ = H|ψ(t)⟩ (5)
dt
where ℏ is the reduced Planck constant and H is a Hermitian operator known as the
Hamiltonian of the system. For quantum computing, we often prefer the discrete-time
picture. The evolution of a closed quantum system between two times t1 and t2 is de-
scribed by a unitary operator U (such that U † U = I):
p(m) = ⟨ψ|Mm
†
Mm |ψ⟩ (7)
4
The state of the system immediately after the measurement collapses to:
Mm |ψ⟩
q (8)
p(m)
The state space of a composite physical system is the tensor product of the state spaces
of the component physical systems. If we have systems A and B, the joint state space is
HA ⊗ HB . If system A is prepared in state |ψA ⟩ and system B is in state |ϕB ⟩, the joint
state is |ψA ⟩ ⊗ |ϕB ⟩.
5
Z|0⟩ = |0⟩ and Z|1⟩ = −|1⟩. It alters the relative phase of the qubit without changing
the measurement probabilities in the computational basis.
Hadamard Gate: The Hadamard gate (H) is one of the most widely used gates in
quantum algorithms. It maps the computational basis states to mutually unbiased basis
states (equal superpositions):
1 1 1
H=√ (12)
2 1 −1
H|0⟩ = √1 (|0⟩
2
+ |1⟩) ≡ |+⟩
H|1⟩ = √1 (|0⟩
2
− |1⟩) ≡ |−⟩
Phase Gate (S gate) and T Gate:
1 0 1 0
S= , T = (13)
0 i 0 eiπ/4
The T gate is particularly important for fault-tolerant quantum computing and achieving
universality.
6
by a CNOT gate with the first qubit as control and the second as target:
1
|Φ± ⟩ = √ (|00⟩ ± |11⟩) (16)
2
1
|Ψ± ⟩ = √ (|01⟩ ± |10⟩) (17)
2
2. Encoding: Depending on the two classical bits (b1 , b2 ) Alice wants to send, she
applies a local unitary operation to her qubit:
4. Decoding: Bob now has both qubits of the Bell pair. He applies a CNOT gate
followed by a Hadamard gate on the first qubit, and measures both qubits in the
computational basis, deterministically obtaining (b1 , b2 ).
7
3.2 Quantum Teleportation
Quantum teleportation is the converse of superdense coding. It allows Alice to transmit
an unknown quantum state |ψ⟩ = α|0⟩ + β|1⟩ to Bob by sending two classical bits of
information, assuming they pre-share an entangled pair.
1. Setup: Alice wants to send |ψ⟩. Alice and Bob share |Φ+ ⟩AB . The total initial
state is |ψ⟩ ⊗ |Φ+ ⟩AB .
2. Interaction: Alice applies a CNOT gate using |ψ⟩ as the control and her half of
the Bell pair as the target, followed by a Hadamard gate on |ψ⟩.
3. Measurement: Alice measures her two qubits in the computational basis. The
joint state collapses into one of four possibilities, and Bob’s qubit collapses into a
state that is a unitary transformation away from |ψ⟩.
Importantly, the original state |ψ⟩ at Alice’s end is destroyed, upholding the No-Cloning
Theorem, which states that it is impossible to create an identical copy of an arbitrary
unknown quantum state.
8
in |1⟩. 2. Apply Hadamard gates to all n + 1 qubits. The state becomes:
n −1
1 2X |0⟩ − |1⟩
√ |x⟩ ⊗ √ (18)
2 x=0
n 2
3. Apply the oracle Uf . This utilizes the "phase kickback" trick, where the function value
is encoded into the phase of the input states:
n −1
1 2X |0⟩ − |1⟩
√ (−1) f (x)
|x⟩ ⊗ √ (19)
2n x=0 2
4. Apply Hadamard gates to the n-qubit input register again. 5. Measure the input
register. If f is constant, the final state is ±|0⟩⊗n , so measuring all zeros occurs with
probability 1. If f is balanced, the amplitude of |0⟩⊗n is exactly 0 due to destructive
interference. Hence, a single query determines the function’s nature.
9
Transform (QFT) to find the period r efficiently. - The QFT is a linear transformation
analogous to the discrete Fourier transform, but it acts on the quantum amplitudes. It
can be implemented using O(n2 ) quantum gates, providing an exponential speedup over
the classical Fast Fourier Transform (FFT). - The algorithm creates a superposition of
all values of x, computes f (x) in superposition, measures the output register (which
leaves the input register in a superposition of states separated by the period r), and then
applies the QFT to the input register. The QFT extracts the periodicity r from the
superposition. 4. Once the period r is found classically, if r is even, the factors of N can
be found by calculating gcd(ar/2 ± 1, N ).
1
|0L ⟩ = √ (|000⟩ + |111⟩) ⊗ (|000⟩ + |111⟩) ⊗ (|000⟩ + |111⟩) (20)
2 2
1
|1L ⟩ = √ (|000⟩ − |111⟩) ⊗ (|000⟩ − |111⟩) ⊗ (|000⟩ − |111⟩) (21)
2 2
10
To detect errors without collapsing the logical state, QEC utilizes syndrome mea-
surements. We measure operators (stabilizers) that yield information about what error
occurred without revealing any information about the actual encoded quantum state.
Once the error syndrome is known, the corresponding unitary correction can be applied.
6 Physical Implementations
Building a quantum computer requires satisfying DiVincenzo’s criteria: well-characterized
qubits, long coherence times, universal gate operations, ability to initialize states, and
capability to measure states accurately.
Several physical platforms are actively being developed:
• Trapped Ions: Atomic ions confined in vacuum using electromagnetic fields and
manipulated using highly tuned lasers. They boast extremely long coherence times
and high-fidelity gates but face challenges in scaling interconnects (e.g., IonQ,
Quantinuum).
11
non-Abelian anyons, leveraging topological properties to achieve intrinsic hardware-
level error protection (e.g., Microsoft).
7 Conclusion
Quantum computation represents a paradigm shift in our understanding of information
processing. By harnessing the strange laws of quantum mechanics, we unlock computa-
tional capabilities previously thought impossible. While profound engineering challenges
remain in the quest for large-scale, fault-tolerant machines, the theoretical foundations
laid out in these notes—from the Hilbert space formalism to complex algorithmic de-
sign—form the bedrock upon which the next generation of computing will be built. The
intersection of physics, computer science, and mathematics will continue to drive this
extraordinary field forward.
12