Notesforquantumcomputing
Notesforquantumcomputing
1
• Entanglement: A quantum phenomenon where the states of two or
more qubits become linked, such that the state of one qubit directly
influences the state of the other(s), even if they are separated by large
distances.
2
3 Differences Between Classical and Quan-
tum Computing
Classical Computing Quantum Computing
Information is processed in bits (0 Information is processed in qubits
or 1). (0, 1, or superpositions of both).
Uses classical gates (AND, OR, Uses quantum gates (e.g.,
NOT). Hadamard, CNOT, etc.).
Computations follow deterministic Computations involve probabilistic
algorithms[output is predictable]. outcomes due to quantum mechan-
ics.
Limited by the laws of classical Exploits quantum phenomena like
physics. superposition and entanglement.
Linear scaling: doubling the size Exponential scaling: quantum
of the problem means doubling the algorithms can solve certain prob-
time/resources. lems much faster (e.g., Shors algo-
rithm for factoring).
3
• Interference: Interference is a fundamental feature of quantum sys-
tems and plays a crucial role in quantum computing and quantum
algorithms. Quantum states can interfere with one another, leading to
constructive or destructive interference, which can enhance or diminish
the probability of certain outcomes. In the context of quantum mechan-
ics, interference refers to the way that quantum states combine when
they are superimposed. Since quantum states are described by com-
plex numbers (called amplitudes), their combination follows the rules
of complex addition. When two or more quantum states overlap, their
amplitudes add up (or cancel out) depending on the phase relationship
between them.
5.1 Interpretation
• The north pole represents the state |0i.
4
Figure 1: Block sphere
5
The Bloch Sphere provides an intuitive way to visualize all possible quan-
tum states, particularly superpositions and rotations (quantum gates). Each
qubit is essentially a vector on the Bloch sphere. The vector can be described
using two angles: θ and φ. The angle θ is the angle between the vector and
the z-axis, and the angle φ is the angle between the vector and the positive
x-axis, measured counterclockwise. From the description above, we can see
that all possible qubit states can be represented on the Bloch sphere using
these two angles, where θ is between 0 and π, inclusive, and φ is between 0
and 2π, inclusive. Now, the state of a single qubit is given by the following
equation:
θ θ iφ
|ψi = cos |0i + sin e |1i
2 2
At this point, we may wonder what the x- and y-axes on the Bloch sphere
represent. As we know, the z-axis corresponds to the states |0i and |1i, which
are analogous to the North and South poles of Earth, where the North pole
is |0i and the South pole is |1i. Any vector that isn’t directly along the |0i
or |1i states represents some superposition of both states. In terms of the
equation, |0i corresponds to θ = 0, and φ doesn’t matter, while |1i corre-
sponds to θ = π, and φ is also irrelevant.
6
1
|ψi = √ (|0i + i|1i)
2
π 3π
Negative y-axis On the negative y-axis, we have θ = 2
and φ = 2
.
Plugging these values into the equation:
1
|ψi = √ (|0i − i|1i)
2
This completes the calculation of the qubit states on the axes of the Bloch
sphere.
7
tensor product of those spaces. The tensor product allows us to describe the
states of multiple qubits in a unified way.
8
Entanglement and Two-Qubit States
One of the most important features of two-qubit systems is entanglement,
where the state of the two qubits cannot be factored into the product of their
individual states.
9
For example, for the state:
P (00) = |α00 |2
• The dimension of the tensor product space is the product of the di-
mensions of the individual spaces. For example, a single qubit has a
2-dimensional space, so two qubits have a 2 × 2 = 4-dimensional space.
Summary
• The tensor product is used to combine the states of two (or more)
quantum systems, such as two qubits.
7 N- Qubit
An N-qubit system refers to a quantum system composed of N quantum
bits (qubits), where each qubit can exist in a superposition of both 0 and 1
states simultaneously.The possible states of an N-qubit system are all possi-
ble combinations of the individual qubit states, represented as binary strings
of length N. Thus, an N-qubit system can represent 2N distinct states simul-
taneously due to the superposition principle.
10
When N = 3, the system has 3 qubits, and the possible states are all the
binary strings of length 3. These 8 possible states are:
Dirac Notation
Ket: |ψi
The ket |ψi represents a quantum state as a column vector in the Hilbert
space.
For example, a quantum state |ψi can be represented as:
α1
|ψi = α2
α3
where α1 , α2 , α3 are complex numbers (amplitudes) corresponding to the
coefficients of the basis states.
Bra: hψ|
The bra hψ| represents the dual vector (the conjugate transpose of the ket).
If |ψi is a column vector, then hψ| is the row vector, and its elements are the
complex conjugates of the corresponding elements in the ket.
For example:
11
hψ| = α1∗ α2∗ α3∗
where α1∗ , α2∗ , α3∗ are the complex conjugates of the coefficients α1 , α2 , α3
from the ket.
hφ|ψi
This represents a complex number and is calculated by multiplying the
bra hφ| by the ket |ψi. Its the dot product of two vectors (in the case of
finite-dimensional Hilbert spaces).
For example, for two states:
α1 β1
|ψi = α2 , |φi = β2
α3 β3
the inner product hφ|ψi is:
Outer Product
The outer product of two states |ψi and |φi is denoted by |ψihφ|, and it
results in a matrix (or operator) rather than a scalar.
For example, for the states:
α1 β1
|ψi = α2 , |φi = β2
α3 β3
the outer product |ψihφ| is:
12
α1 α 1 β1
∗
α 1 β2
∗
α 1 β3
∗
13