0% found this document useful (0 votes)
3 views

Quantum Computing Handbook

The document outlines the course COMP 458/558 on Quantum Computing Algorithms, covering fundamental concepts such as quantum bits, quantum states, and linear algebra necessary for understanding quantum computing. It discusses the historical development, applications, and differences between classical and quantum computing paradigms. Additionally, it introduces key mathematical definitions and properties relevant to quantum mechanics and computation, including qubits, superposition, and inner products.

Uploaded by

ISLAM OMAR
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Quantum Computing Handbook

The document outlines the course COMP 458/558 on Quantum Computing Algorithms, covering fundamental concepts such as quantum bits, quantum states, and linear algebra necessary for understanding quantum computing. It discusses the historical development, applications, and differences between classical and quantum computing paradigms. Additionally, it introduces key mathematical definitions and properties relevant to quantum mechanics and computation, including qubits, superposition, and inner products.

Uploaded by

ISLAM OMAR
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 28

COMP 458/558

Quantum Computing Algorithms

Micah Kepe
Table of Contents

Chapter 1 Phase I: Introduction and Background Page 2


1.1 Lecture 1: Overview of Quantum Computing Concepts 2
1.2 Lecture 2: Review of Linear Algebra Concepts 3
1.3 Lecture 3: Quantum Bits and Quantum States 7
1.4 Lecture 4: Quantum Gates and Transformations 11
1.5 Lecture 5: Other Quantum Gates, Measurement, Multi-Qubit Systems 15
1.6 Lecture 6: Multi-Qubit Gates and Circuit Construction 18
1.7 Lecture 7: More Multi-Qubit Gates, Reversibility Property, No-Cloning Theorem 21

Chapter Appendix Page 27

1
Chapter 1

Phase I: Introduction and Background

1.1 Lecture 1: Overview of Quantum Computing Concepts


Definition 1.1.1: Quantum Computing

Quantum computing is a computational paradigm leveraging quantum mechanical principles such as


superposition, entanglement, and interference to perform computations that can surpass the capabilities
of classical systems for specific tasks.
a

a Superposition allows quantum bits (qubits) to exist in multiple states simultaneously, and entanglement enables correla-

tions between qubits even at a distance.

Historical Development of Quantum Computing


• 1980s-1990s: Conception of quantum computing, with foundational ideas like the quantum Turing machine
and quantum gates.
• 1990s-2000s: Demonstration of key building blocks, such as quantum algorithms (e.g., Shor’s and Grover’s
algorithms).
• 2016: Emergence of quantum computing clouds, enabling access to quantum hardware via the internet.
• 2019: First claims of quantum advantage, showcasing tasks where quantum computers outperform
classical counterparts.
• 2024: Increasing qubit counts and improvements in quantum error correction techniques.

Applications of Quantum Computing


Quantum computing offers speedup in areas such as:

1. Quantum Simulation: Applications in chemistry, physics, and materials science, such as simulating
molecular energy levels and drug discovery.
2. Security and Encryption: Developing quantum-safe cryptographic protocols and random number gen-
eration.
3. Search and Optimization: Enhancing solutions for weather forecasting, financial modeling, traffic plan-
ning, and resource allocation.

Example 1.1.1 (Example: Quantum Speedup in Drug Discovery)


Drug discovery benefits from quantum simulation by enabling more accurate modeling of molecular inter-
actions, which classical computers struggle to achieve efficiently.

2
Classical vs. Quantum Computing Paradigms
• Classical Computing: Utilizes traditional processing units (CPU, GPU, FPGA) and executes determin-
istic computations.
• Quantum Computing: Employs quantum processing units (QPU) with probabilistic computation based
on quantum states.

Note:-
Note: Classical computing paradigms still dominate in tasks that require precision and deterministic results.
Quantum computing excels in probabilistic or exponentially large state-space problems.

1.2 Lecture 2: Review of Linear Algebra Concepts


Linear algebra provides the foundation for manipulating quantum states, which are represented using vectors and
matrices in a complex vector space.
Definition 1.2.1: Vectors: Row and Column Vectors

A vector is an ordered list of numbers, which can be represented as either a row or column vector. The
components of vectors in quantum computing belong to the field of complex numbers (ℂ).

Column Vectors
A column vector is a vertical arrangement of numbers:

 𝑣1 
 𝑣2 
 
v =  .  , 𝑣 𝑖 ∈ ℂ.
 .. 
𝑣 
 𝑛

Row Vectors
A row vector is the complex conjugate transpose vector of a column vector:

v† = 𝑣 1 𝑣2 ... 𝑣𝑛 .
 

The adjoint of a column vector is a row vector, and vice versa. We represent the adjoint of a vector using
the dagger symbol (†).

Dirac Notation
In quantum computing, vectors are represented using Dirac notation (bra-ket notation):

• Ket |𝑣⟩: Represents a column vector.


• Bra ⟨𝑣|: Represents the adjoint (conjugate transpose) of the ket.

1+𝑖
 
• Example: |𝑣⟩ = , ⟨𝑣| = 1 − 𝑖
 
2 .
2

Definition 1.2.2: Euler’s Formula

Euler’s formula relates complex exponentials to trigonometric functions:

𝑒 𝑖𝜔 = cos(𝜔) + 𝑖 sin(𝜔)
This is fundamental in representing quantum states and transformations.

3
Definition 1.2.3: Inner Product

The inner product of two vectors v, w ∈ ℂ𝑛 is defined as:


𝑛
Õ
⟨v, w⟩ = v† w = 𝑣𝑖 𝑤𝑖
𝑖=1

which measures the overlap between two quantum states.

Example 1.2.1 (Inner Product Example)


Given two vectors:
   
1 2
v= , w=
𝑖 1
The inner product is:
 
 2
=2−𝑖

⟨v, w⟩ = 1 −𝑖
1

We also have the following property that the inner product is equivalent to the square of the Euclidean
norm of a vector:

⟨v, v⟩ = ∥v∥2

Definition 1.2.4: Outer Product

The outer product of two vectors v ∈ ℂ𝑚 and w ∈ ℂ𝑛 produces an 𝑚 × 𝑛 matrix:

 𝑣1 
 𝑣2  
 
vw =  .  𝑤 1

𝑤2 ... 𝑤𝑛

 .. 
𝑣 
 𝑚
This operation is useful for constructing quantum operators.

Definition 1.2.5: Tensor Product

The tensor product (or Kronecker product) allows us to describe multi-qubit systems. Given two vectors:

𝑣1 𝑤1
   
v= , w=
𝑣2 𝑤2
Their tensor product is:

𝑣 1 𝑤 1 
𝑣 𝑤 
 
v ⊗ w =  1 2
𝑣 2 𝑤 1 
𝑣 𝑤 
 2 2
The tensor product expands the state space, allowing representation of entangled states.

Orthagonality
Two vectors 𝑣, 𝑤 ∈ ℂ𝑛 are orthogonal if their inner product is zero:

4
⟨v, w⟩ = 0
Orthogonal vectors are linearly independent and span a subspace of the vector space. As you might
remember from linear algebra, a set of orthogonal vectors can be used to construct an orthonormal basis, and
any vector can be expressed as a linear combination of the basis vectors.

This will be useful when we cover the quantum bases in section 1.3.

Definition 1.2.6: Adjoint of a Matrix

The adjoint (or Hermitian conjugate) of a matrix 𝐴 is obtained by taking the transpose and complex
conjugate of each entry:
𝐴† = 𝐴𝑇
If 𝐴 is:
𝑖
 
1
𝐴=
2 3
Then its adjoint is:  
† 1 2
𝐴 =
−𝑖 3

Definition 1.2.7: Unitary Matrix

A square matrix 𝑈 is called unitary if its adjoint is equal to its inverse:

𝑈 †𝑈 = 𝐼
where 𝐼 is the identity matrix. Unitary matrices preserve the norm of quantum states and represent
reversible quantum operations. Example:
 
1 1 1
𝑈=√ , 𝑈 †𝑈 = 𝐼
2 1 −1

5
Definition 1.2.8: Hermitian Matrix

A square matrix 𝐻 is called Hermitian if it is equal to its adjoint:

𝐻 = 𝐻†
Hermitian matrices represent observable quantities in quantum mechanics and have real eigenvalues. Ex-
ample:

𝑖
 
2
𝐻=
−𝑖 2

Since 𝐻 † = 𝐻, it is Hermitian.
Note:-
Hermitian matrices can’t have complex numbers in their diagonal General case illustration:

𝑎 + 𝑖𝑏 𝑐 + 𝑖𝑑 𝑎 − 𝑖𝑏 𝑒 −𝑖𝑓
   

𝑀= ⇒ 𝑀 = ⇒ 𝑀 ≠ 𝑀†
𝑒 +𝑖𝑓 𝑔 + 𝑖ℎ 𝑐 − 𝑖𝑑 𝑔 − 𝑖ℎ

∴ Hermitian matrices have real diagonal elements.


Additionally, the general matrix 𝑀 shown above is Hermitian iff. 𝑐 = 𝑒 , 𝑑 = − 𝑓

Hermitian matrices are unitary, but unitary matrices are not necessarily Hermitian:

𝐻 → 𝑈, 𝑈↛𝐻

Definition 1.2.9: Eigenvalues and Eigenvectors

For a square matrix 𝐴 ∈ ℂ𝑛×𝑛 , a vector v ≠ 0 is an eigenvector if:

𝐴v = 𝜆v
where 𝜆 ∈ ℂ is the eigenvalue. Eigenvalues provide insight into the structure of linear transformations.
In Braket notation, the eigenvalue equation is:

𝐴|v⟩ = 𝜆|v⟩

Example 1.2.2 (Example: Eigenvalues)


For the matrix

𝑖
 
1
𝐴=
−𝑖 1
The characteristic equation is:

det(𝐴 − 𝜆𝐼) = (1 − 𝜆)2 + 1 = 0


Solving gives eigenvalues 𝜆 = 1 ± 𝑖.

6
Definition 1.2.10: Quantum Bits/ Qubits

A qubit can be defined mathematically as follows:

𝛼
 
𝜓 = 1 ∈ ℂ2
𝛼2
where:

𝛼1 , 𝛼 2 ∈ ℂ and |𝛼 1 |2 + |𝛼 2 |2 = 1

The first property ensures that the qubit is normalized, while the second property ensures that the qubit
is in a superposition of the basis states.

The first universal basis that we will look at is the computational basis, which consists of the states |0⟩
and |1⟩:
   
1 0
Zero state = |0⟩ = One state = |1⟩ =
0 1
A quantum state vector 𝜓 can be expressed as a linear combination of the basis states:

𝜓 = 𝛼 1 |0⟩ + 𝛼 2 |1⟩
Note:-
Properties of the computational basis:

• The computational basis states are orthogonal:


 

  0
⟨0|1⟩ = |0⟩ |1⟩ = 1 0 =0
1

• The computational basis states are normalized:


 

  1
⟨0|0⟩ = |0⟩ |0⟩ = 1 0 =1
0

Question 1

Show that any unitary matrix preserves the inner product of two vectors.

Solution: Since a unitary matrix satisfies 𝑈 †𝑈 = 𝐼, we have:

⟨𝑈v, 𝑈w⟩ = v† (𝑈 †𝑈)w = v† w

Thus, inner products are preserved.

1.3 Lecture 3: Quantum Bits and Quantum States


Definition 1.3.1: Qubit

A qubit is the fundamental unit of quantum information. Unlike a classical bit, which is either 0 or 1, a
qubit can exist in a superposition of states:

|𝜓⟩ = 𝛼|0⟩ + 𝛽|1⟩, where 𝛼, 𝛽 ∈ ℂ and ||𝛼||2 + ||𝛽||2 = 1

Key features of qubits include:


7
• Superposition: A qubit can exist simultaneously in multiple basis states.
• Complex Amplitudes: Coefficients 𝛼 and 𝛽 are complex numbers carrying magnitude and phase infor-
mation.
• Interference: Quantum states can interfere constructively or destructively.
• Entanglement: Qubits can be correlated in ways that classical bits cannot.

Classical Computing Paradigms


Quantum computing introduces a fundamentally different computational model. Here are some key paradigms
in classical computing that quantum computing challenges:

• Deterministic Computing: Uses discrete states (0 or 1) with predictable transitions.


• Analog Computing: Uses continuous values susceptible to noise accumulation.
• Probabilistic Computing: Represents probabilistic mixtures of states.

In contrast, for quantum computing:

• Quantum Computing: Allows coherent superposition with complex amplitudes and quantum interfer-
ence.

Definition 1.3.2: Dirac Notation

Quantum states are represented using Dirac notation (bra-ket notation):

• Ket: |0⟩, |1⟩ represent computational basis states


• Computational basis vectors:
   
1 0
|0⟩ = , |1⟩ =
0 1

• General state: |𝜓⟩ = 𝛼|0⟩ + 𝛽|1⟩

Definition 1.3.3: Basis States

Common qubit bases include:


• Computational Basis: |0⟩, |1⟩
• Hadamard Basis:
 √ 
1 1/√2
|+⟩ = √ (|0⟩ + |1⟩) =
2 1/ 2
 √ 
1 1/ √2
|−⟩ = √ (|0⟩ − |1⟩) =
2 −1/ 2

• Phase/ Circular Polarization Basis:

1
|𝐿⟩ = |+𝑖⟩ = √ (|0⟩ + 𝑖|1⟩)
2

1
|𝑅⟩ = |−𝑖⟩ = √ (|0⟩ − 𝑖|1⟩)
2

8
Bloch Sphere Representation
Definition 1.3.4: Bloch Sphere

A geometric representation of a single qubit state:

𝜃 𝜃
     
|𝜓⟩ = cos |0⟩ + 𝑒 𝑖𝜙 sin |1⟩ 𝑒 𝑖𝛾
2 2

Where:
• 𝜃 ∈ [0, 𝜋] is the polar angle
• 𝜙 ∈ [0, 2𝜋) is the azimuthal angle

• 𝛾 is a global phase, often omitted since it cannot be represented on the Bloch sphere directly

Aside
Bloch Sphere Conversion to Cartesian Coordinates:

𝑥 = sin 𝜃 cos 𝜙, 𝑦 = sin 𝜃 sin 𝜙, 𝑧 = cos 𝜃

Rearranging the Bloch sphere formula, we obtain that 𝜃 and 𝜙 can be expressed as:
!
𝛼2
𝜃 = 2 arccos(𝛼1 ), 𝜙 = −𝑖 ln 𝜃

sin 2

Example 1.3.1 (Example Bloch Sphere Representation)


𝜋
For the state 𝜃 = 2,𝜙 = 0:

𝑧 |0⟩

𝑦
|𝜓⟩
𝑥
|1⟩

Example 1.3.2 (Factoring Out the Global Phase)


Let’s say that we have the following quantum state vector 𝜓 :

9
1
𝜓 = √ (𝑖 |0⟩ + |1⟩)
2
𝑖 1
= √ |0⟩ + √ |1⟩
2 2
 
1 1
= 𝑖 √ |0⟩ + √ |1⟩
|{z} 2 2
global phase

Quantum Measurement
When a qubit is measured:

• The quantum state collapses to an eigenstate


• Measurement probability depends on squared amplitude

• Computational basis measurement probabilities:

𝑃(0) = |𝛼|2 , 𝑃(1) = |𝛽|2

• Post-measurement state:
|𝑏⟩⟨𝑏|𝜓⟩
|𝜓new ⟩ = p
𝑃(𝑏)

Example 1.3.3 (Measurement Example)


q
For the state |𝜓⟩ = √1 |0⟩ + 2
3 3 |1⟩:

• Probability of measuring |0⟩: 𝑃(0) = 1


3

• Probability of measuring |1⟩: 𝑃(1) = 2


3

Question 2: Orthonormality Check

Verify the inner products of basis states:

⟨0|1⟩ = 0
⟨0|0⟩ = 1
⟨+|+⟩ = 1
⟨+|−⟩ = 0

Solution: These relations hold due to the orthonormal nature of quantum basis states.
Note:-
Quantum Bases and Their 𝜃 and 𝜙 Values:

• Computational Basis: |0⟩ → 𝜃 = 0, 𝜙 = 0, |1⟩ → 𝜃 = 𝜋, 𝜙 = 0


𝜋 𝜋
• Hadamard Basis: |+⟩ → 𝜃 = 2,𝜙 = 0, |−⟩ → 𝜃 = 2,𝜙 =𝜋
𝜋 𝜋 𝜋
• Phase Basis: |𝐿⟩ = |+𝑖⟩ → 𝜃 = 2,𝜙 = 2, |𝑅⟩ = |−𝑖⟩ → 𝜃 = 2,𝜙 = − 𝜋2

10
1.4 Lecture 4: Quantum Gates and Transformations
Quantum gates manipulate qubits through unitary transformations, preserving quantum information and enabling
quantum computation. This section explores key quantum operations, their mathematical properties, and circuit
representations.
Definition 1.4.1: Qubit Superposition and Hilbert Space

A qubit exists in a complex vector space called a Hilbert space. The state of a qubit is given by:

|𝜓⟩ = 𝛼|0⟩ + 𝛽|1⟩, where 𝛼, 𝛽 ∈ ℂ and |𝛼|2 + |𝛽|2 = 1.

Measurement and Superposition Collapse


When a qubit is measured in the computational basis {|0⟩, |1⟩}, it collapses to one of the basis states with
probability:

𝑃(0) = ∥𝛼 1 ∥2 , 𝑃(1) = ∥𝛼2 ∥2 .


The post-measurement state is:

|𝑏⟩⟨𝑏|𝜓⟩
|𝜓measurement ⟩ = p
𝑃(𝑏)

where 𝑏 ∈ {0, 1}. This formula captures the quantum measurement postulate and ensures proper normalization
of the post-measurement state.

In the computational basis, the probability of measuring |𝑏⟩ is:

2
𝑃(𝑏) = ⟨𝑏|𝜓⟩

Note:-
Probability Properties of Measurement:
𝑃(0) = 1 − 𝑃(1)
𝑃(+) = 1 − 𝑃(−)
𝑃(+𝑖) = 1 − 𝑃(−𝑖)

Quantum Gates and Operations


Quantum gates are unitary matrices that transform qubits. A general qubit transformation is given by:

|𝜓final ⟩ = 𝑈|𝜓initial ⟩
where 𝑈 is a unitary matrix satisfying 𝑈 †𝑈 = 𝐼. Key properties of quantum gates include:

• Reversibility: All quantum operations are reversible due to unitarity


• Preservation of Norm: The normalization condition |𝛼|2 + |𝛽|2 = 1 is preserved
• Linearity: Gates act linearly on superposition states

11
Definition 1.4.2: Rotation Gates

Rotation gates rotate a qubit state around the Bloch sphere:


• Rotation about X-axis:
cos 𝜔2 −𝑖 sin 𝜔2
 
𝑅 𝑋 (𝜔) =
−𝑖 sin 𝜔2 cos 𝜔2

Effect: Rotates state by angle 𝜔 around X-axis


• Rotation about Y-axis:
cos 𝜔2 − sin 𝜔2
 
𝑅𝑌 (𝜔) =
sin 𝜔2 cos 𝜔2

Effect: Rotates state by angle 𝜔 around Y-axis


• Rotation about Z-axis:
𝑒 −𝑖𝜔/2
 
0
𝑅 𝑍 (𝜔) =
0 𝑒 𝑖𝜔/2

Effect: Adds a relative phase between |0⟩ and |1⟩ components

12
Definition 1.4.3: Pauli Matrices and Gates

The Pauli matrices define fundamental quantum operations:

• Pauli-X (NOT Gate, Bit-Flip):


 
0 1
𝑋=
1 0

Effect: 𝑋|0⟩ = |1⟩, 𝑋|1⟩ = |0⟩


• Pauli-Y (Combination of X and Z with phase):
 
0 −𝑖
𝑌=
𝑖 0

Effect: 𝑌|0⟩ = 𝑖|1⟩, 𝑌|1⟩ = −𝑖|0⟩


• Pauli-Z (Phase-Flip Gate):
 
1 0
𝑍=
0 −1

Effect: 𝑍|0⟩ = |0⟩, 𝑍|1⟩ = −|1⟩

Aside

Each of these matrices is both Hermitian (𝐴 = 𝐴† ) and unitary (𝐴† 𝐴 = 𝐼).

Important relationships:
• 𝑋 2 = 𝑌2 = 𝑍2 = 𝐼

• 𝑋𝑌 = 𝑖𝑍, 𝑌𝑍 = 𝑖𝑋, 𝑍𝑋 = 𝑖𝑌
• 𝑌𝑋 = −𝑖𝑍, 𝑍𝑌 = −𝑖𝑋, 𝑋𝑍 = −𝑖𝑌

Circuit Notation
Quantum circuits visually represent quantum operations. Each qubit is represented as a horizontal line, and gates
are applied sequentially from left to right. Important circuit elements include: 1

• Single-qubit gates: Represented as boxes with gate symbols


• Measurements: Depicted with a meter symbol
• Time flow: Left to right in circuits (opposite of matrix multiplication order ) 2

Example 1.4.1 (Example: Complex Circuit Analysis)


Consider the circuit applying the sequence 𝐻𝑍𝐻 to |0⟩:

1 For rendering quantum circuits, consider using the quantikz package in LATEX.
2 Dor example, the circuit 𝑈1 𝑈2 corresponds to the matrix product 𝑈2 𝑈1 .

13
1
|𝜓1 ⟩ = 𝐻|0⟩ = √ (|0⟩ + |1⟩)
2
1
|𝜓2 ⟩ = 𝑍|𝜓1 ⟩ = √ (|0⟩ − |1⟩)
2
|𝜓3 ⟩ = 𝐻|𝜓2 ⟩ = |1⟩
This sequence performs a NOT operation on |0⟩ using only Hadamard and Phase-flip gates.

|0⟩ 𝐻 𝑍 𝐻 |1⟩

Example 1.4.2 (Another Circuit Example)


  
0 −𝑖 1
𝑋𝑌 |0⟩ = 𝑋
𝑖 0 0
  
0 1 0
=
1 0 𝑖
𝑖
 
= = 𝑖 |1⟩
0

|0⟩ 𝑌 𝑋 𝑖 |0⟩

Question 3: Exercise 1

Apply the sequence 𝑆𝑋𝐻 to |0⟩ and calculate:

• The final state vector


• The probabilities of measuring |0⟩ and |1⟩
• The possible post-measurement states

Solution:
1
𝐻|0⟩ = √ (|0⟩ + |1⟩)
2
1 1
𝑋𝐻|0⟩ = √ (|1⟩ + |0⟩) = √ (|0⟩ + |1⟩)
2 2
1
𝑆𝑋𝐻|0⟩ = √ (|0⟩ + 𝑖|1⟩)
2
Therefore:

• Final state: |𝜓⟩ = √1 (|0⟩ + 𝑖|1⟩)


2

• Measurement probabilities: 𝑃(0) = 𝑃(1) = 1


2

• Post-measurement states: Either |0⟩ or |1⟩ with equal probability

14
Question 4: Exercise 2

Show that the Hadamard gate is its own inverse by calculating 𝐻 2 .

Solution: " #" #


√1 √1 √1 √1
 
1 0
𝐻 =2
√1
2 2 2 2
= =𝐼
− √1 √1 − √1 0 1
2 2 2 2

Question 5: Exercise 3

Calculate the effect of applying 𝑅 𝑍 (𝜋/2) to the state |+⟩.

Solution:  " √1 # " #


√1
𝑒 −𝑖𝜋/4

0
𝑅 𝑍 (𝜋/2)|+⟩ = 2
= 2
= | + 𝑖⟩
0 𝑒 𝑖𝜋/4 √1 √𝑖
2 2

1.5 Lecture 5: Other Quantum Gates, Measurement, Multi-Qubit


Systems
Definition 1.5.1: Single-Qubit Gates

Quantum gates manipulate individual qubits. Single-qubit gates are represented by unitary matrices that
operate on a single qubit.

The following are common single-qubit gates:


• Hadamard Gate (H):
 
1 1 1
𝐻=√
2 1 −1

Creates superposition: 𝐻 |0⟩ = |+⟩ , 𝐻 |1⟩ = |−⟩

Properties:

– Self-inverse: 𝐻 2 = 𝐼
– Maps computational basis to |±⟩ basis:
1
|+⟩ = √ (|0⟩ + |1⟩)
2
1
|−⟩ = √ (|0⟩ − |1⟩)
2

Note:-
𝐻 |0⟩ = |+⟩ , 𝐻 |1⟩ = |−⟩ , 𝐻 |+⟩ = |0⟩ , 𝐻 |−⟩ = |1⟩

• Phase Gate (S):

 
1 0
𝑆=
0 𝑖

Adds a 𝜋/2 phase to |1⟩, so it is also referred to as the ”𝜋/4 gate” due to 𝜃/2 term in the Bloch sphere
equation.

Properties:
15
– Unitary but not Hermitian
– 𝑆2 = 𝑍
1
– Effect on |+⟩ : 𝑆 |+⟩ = √ (|0⟩ + 𝑖 |1⟩)
2

• T Gate:

 
1 0
𝑇=
0 𝑒 𝑖𝜋/4

Adds a 𝜋/4 phase to |1⟩, so it is also known as the ”𝜋/8 gate”.

Properties:

– 𝑇2 = 𝑆
– 𝑇4 = 𝑍
– Often used in quantum error correction

• General Phase Gate 𝑃(𝜃):


 
1 0
𝑃(𝜃) =
0 𝑒 𝑖𝜃

Generalizes S and T gates: 𝑆 = 𝑃(𝜋/2), 𝑇 = 𝑃(𝜋/4)

Example 1.5.1 (Example of Applying the Hadamard Gate)

  
1 1 1 1
𝐻 |0⟩ = √
2 1 −1 0
 
1 1
√ = |+⟩
2 1

Note:-
The following properties arise from applying the Hadamard gate:

𝑍 = 𝐻𝑋𝐻
𝑋 = 𝐻𝑍𝐻

Proof.       
1 1 1 0 1 1 1 1 1 0
𝐻𝑋𝐻 = √ √ = =𝑍
2 1 −1 1 0 2 1 −1 0 −1

Back to Measurement
Measurement collapses quantum states to basis states with probabilities determined by amplitudes.

• Z-basis: Standard computational basis (|0⟩, |1⟩)

16
* For state 𝜓 = 𝛼 |0⟩ + 𝛽 |1⟩:

𝑃(0) = ||𝛼||2
𝑃(1) = ||𝛽||2

• X-basis: Hadamard basis (|+⟩, |−⟩)

* Measure in Z-basis after applying H gate


* 𝑃(+) = | ⟨+| 𝜓⟩|2
* 𝑃(−) = | ⟨−| 𝜓⟩|2

• Y-basis: Eigenstates of Y

* |+𝑖⟩ = √1 (|0⟩ + 𝑖 |1⟩)


2

* |−𝑖⟩ = √1 (|0⟩ − 𝑖 |1⟩)


2

Multi-Qubit Systems
States for multiple qubits are represented as tensor products:

2 𝑛 −1
𝑘=Õ Õ
𝜓 = 𝛼 𝑘 |𝑘⟩ , ||𝛼 𝑘 ||2 = 1
𝑘=0

Properties of tensor products:

• Not commutative: (|0⟩ ⊗ |1⟩ ≠ |1⟩ ⊗ |0⟩)


• Associative: ((|𝑎⟩ ⊗ |𝑏⟩) ⊗ |𝑐⟩ = |𝑎⟩ ⊗ (|𝑏⟩ ⊗ |𝑐⟩))
• Distributive: ((𝛼 |𝑎⟩ + 𝛽 |𝑏⟩) ⊗ |𝑐⟩ = 𝛼(|𝑎⟩ ⊗ |𝑐⟩) + 𝛽(|𝑏⟩ ⊗ |𝑐⟩))

Question 6: Exercise 1

Prove that the Hadamard gate is unitary and Hermitian.

Solution: To prove H is unitary and Hermitian:

 
†1 1 1
𝐻 =√ =𝐻
2 1 −1
    
1 1 1 1 1 1 0
𝐻𝐻 = = =𝐼
2 1 −1 1 −1 0 1

Thus, H is both unitary (𝐻𝐻 † = 𝐼) and Hermitian (𝐻 = 𝐻 † ).

Question 7: Exercise 2

For 𝜓 = √1 (|00⟩ + |11⟩), find measurement probabilities for |00⟩ and |11⟩.
2

Solution: For 𝜓 = √1 (|00⟩ + |11⟩):


2

17
2
1 1
𝑃(00) = | ⟨00| 𝜓⟩|2 = √ =
2 2
2
1 1
𝑃(11) = | ⟨11| 𝜓⟩|2 = √ =
2 2

Question 8: Exercise 3

𝑖
 
1
Determine if 𝑈 = √1 is unitary.
2 𝑖 1

Solution: To verify unitarity, compute 𝑈𝑈 † :

 
1 1 −𝑖
𝑈† = √
2 −𝑖 1
1 1 𝑖
     
† 1 −𝑖 1 0
𝑈𝑈 = =
2 𝑖 1 −𝑖 1 0 1

∴ U is unitary.

Question 9: Exercise 4

If we apply H ⊗ H to |00⟩, what state do we get?

Solution:

(𝐻 ⊗ 𝐻) |00⟩ = (𝐻 |0⟩) ⊗ (𝐻 |0⟩)


1 1
= √ (|0⟩ + |1⟩) ⊗ √ (|0⟩ + |1⟩)
2 2
1
= (|00⟩ + |01⟩ + |10⟩ + |11⟩)
2
This creates an equal superposition of all two-qubit basis states.

1.6 Lecture 6: Multi-Qubit Gates and Circuit Construction


𝑛-qubit gates are unitary transformations that operate on 𝑛 qubits. This section explores key multi-qubit gates,
their properties, and how to construct quantum circuits using these gates.

18
Controlled Gates
Definition 1.6.1: Controlled X Gate

(CNOT) is a two-qubit gate that flips the target qubit if the control qubit is in state |1⟩, and does nothing
if the control qubit is in state |0⟩. The matrix representation of CNOT is given by:

1 0 0 0
­ 0 1 0 0®
© ª
𝐶𝑁 𝑂𝑇 = 𝐶𝑋 = ­
­ 0 0 0 1®
®

« 0 0 1 0¬
Representing the gate in a circuit diagram:

|𝑐⟩

|𝑡⟩ 𝑋

The control qubit is denoted by |𝑐⟩ and the target qubit is denoted by |𝑡⟩.

Applying the CNOT gate to a two-qubit state 𝜓 = 𝛼 |00⟩ + 𝛽 |01⟩ + 𝛾 |10⟩ + 𝛿 |11⟩:

1 0 0 0 1 1
0 1 0 0 0 0
     
𝐶𝑋 |00⟩ = 0 = = |00⟩
0 0 1
 0 0
    
0 0 1 0 0 0
    
1 0 0 0 0 0
0 1 0 0 1 1
     
𝐶𝑋 |01⟩ = 0 = = |01⟩
0 0 1
 0 0
    
0 0 1 0 0 0
    
(1.1)
1 0 0 0 0 0
0 1 0 0 0 0
     
𝐶𝑋 |10⟩ = 0 = = |11⟩
0 0 1
 1 0
    
0 0 1 0 0 1
    
1 0 0 0 0 0
0 1 0 0 0 0
     
𝐶𝑋 |11⟩ = 0 = = |10⟩
0 0 1
 0 1
    
0 0 1 0 1 0
    

Controlled-Z Gate
Definition 1.6.2: Controlled-Z Gate

(CZ) applies a phase flip if both qubits are in state |1⟩:

1 0 0 0
­0 1 0 0 ®
© ª
𝐶𝑍 = ­
­0 0 1 0 ®
®

«0 0 0 −1¬

Circuit Representations
The standard circuit representations for these multi-qubit gates are:
19
CNOT:

CZ:

Tensor Product Ordering and Circuit Representations


When converting quantum circuits to mathematical expressions, it’s important to understand that tensor products
are not commutative: 𝐴 ⊗ 𝐵 ≠ 𝐵 ⊗ 𝐴 in general. However, we can modify the ordering of tensor products in our
mathematical representation as long as we maintain the dependencies established by the circuit diagram. This
leads to multiple valid mathematical representations of the same quantum circuit.
Definition 1.6.3: Bit Ordering Convention

Due to the non-commutativity of tensor products, we adopt the convention of representing qubits from
most significant to least significant in our mathematical expressions. For an 𝑛-qubit system:

𝑞 𝑛−1 𝑞 𝑛−2 ...𝑞 1 𝑞 0 = 𝑞 𝑛−1 ⊗ 𝑞 𝑛−2 ⊗ ... ⊗ 𝑞1 ⊗ 𝑞 0


where 𝑞 0 is the least significant qubit.

For example, consider a circuit with two Hadamard gates applied to different qubits:

𝑞1 𝐻

𝑞0 𝐻

This circuit can be represented mathematically in equivalent ways:

(𝐻 ⊗ 𝐻) 𝑞 1 𝑞0 = (𝐻 𝑞1 ) ⊗ (𝐻 𝑞0 ) = 𝐻 𝑞1 ⊗ 𝐻 𝑞0
When gates have dependencies (like controlled operations), the ordering must respect these dependencies. For
the CNOT gate:

𝑞1

𝑞0 𝑋

The mathematical representation must preserve the control-target relationship, though intermediate calculations
may use different but equivalent orderings:

𝐶𝑁 𝑂𝑇1,0 𝑞 1 𝑞0 = 𝐶𝑁 𝑂𝑇( 𝑞1 ⊗ 𝑞0 )
This flexibility in representation, while maintaining functional equivalence, is particularly useful when
analyzing complex quantum circuits or optimizing quantum computations.

20
1.7 Lecture 7: More Multi-Qubit Gates, Reversibility Property, No-
Cloning Theorem
Review Questions
Question 10: Number of Measurement Bases

How many different bases can we measure a 𝑛-qubit system in?

Solution: Infinite
2
𝑃(𝑏) = ⟨𝑏|𝜓⟩
In quantum mechanics, a measurement basis for an 𝑛-qubit system is a set of orthonormal basis states in
a 2𝑛 -dimensional Hilbert space. The most common measurement basis is the computational basis, given by
{|0⟩, |1⟩}⊗𝑛 . However, we can measure in any orthonormal basis.
The space of all possible measurement bases corresponds to the space of all possible orthonormal bases,
which is parameterized by the unitary group 𝑈(2𝑛 ). The set of all 2𝑛 -dimensional orthonormal bases is described
by the unitary group 𝑈(2𝑛 ), modulo the global phase 𝑈(1). Since this space is continuous and has infinitely many
parameters, there exist an infinite number of measurement bases.

Question 11: Output of Quantum Circuit

What is the output quantum state of the following quantum circuit:

|0⟩ 𝑞 2 𝑋 𝑋

|0⟩ 𝑞 1 𝑆 𝑋

|0⟩ 𝑞 0 𝑋

Solution: 011

• For 𝑞 2 , the two 𝑋 gates essentially cancel each other out as the gate is Hermitian (𝑋𝑋 = 𝐼).

• For 𝑞 1 , the 𝑆 gate does not affect the starting state |0⟩, and then the 𝑋 gate flips the signal to |1⟩.
• For 𝑞 0 , the 𝑋 gate simply flips the signal from |0⟩ to |1⟩.

Remembering that we read the diagram top-down as the most significant bit to the least significant bit,
respectively, the output is 001.

21
More Multi-Qubit Gates
More 2-Qubit Gates

Definition 1.7.1: 𝐶𝑋(𝑞 0 → 𝑞 1 ) Gate

The control and target qubits of a CNOT gate can be swapped using Hadamard gates:

(𝐻 ⊗ 𝐻) · 𝐶𝑁 𝑂𝑇control,target · (𝐻 ⊗ 𝐻) = 𝐶𝑁 𝑂𝑇target,control
This transformation can be visualized in a circuit diagram:

|𝑐⟩ 𝐻 𝐻

|𝑡⟩ 𝐻 𝑋 𝐻

The 𝐶𝑋(𝑞 0 → 𝑞1 ) gate, also known as 𝐶𝑁 𝑂𝑇𝑡𝑎𝑟 𝑔𝑒𝑡,𝑐𝑜𝑛𝑡𝑟𝑜𝑙 , is a variant of the CNOT gate where the control
and target qubits are swapped. Its matrix representation is:

1 0 0 0
­0 0 0 1®
© ª
𝐶𝑁 𝑂𝑇𝑡𝑎𝑟 𝑔𝑒𝑡,𝑐𝑜𝑛𝑡𝑟𝑜𝑙 =­
­0 0 1 0®
®

«0 1 0 0¬
This gate flips the target qubit (𝑞1 ) if the control qubit (𝑞0 ) is in state |1⟩.

Derivation of the 𝐶𝑋(𝑞0 → 𝑞1 ) Gate


The control and target qubits of a CNOT gate can be swapped using Hadamard (𝐻) gates applied to both qubits.
Mathematically, this operation is represented as:

(𝐻 ⊗ 𝐻) · CNOTcontrol,target · (𝐻 ⊗ 𝐻) = CNOTtarget,control
The transformed CNOT gate is:

(𝐻 ⊗ 𝐻) · CNOT · (𝐻 ⊗ 𝐻).

Step 1: Compute CNOT · (𝐻 ⊗ 𝐻)


First, multiply the CNOT matrix with 𝐻 ⊗ 𝐻:

1 0 0 0 1 1 1 1
­0 1 0 0® 1 ­1 −1 1 −1®
© ª © ª
CNOT · (𝐻 ⊗ 𝐻) = ­ · ­
­0 0 0 1® 2 ­1 1 −1 −1®
® ®

« 0 0 1 0¬ «1 −1 −1 1 ¬
This results in:

1 1 1 1
1 ­1 −1 1 −1®
© ª
CNOT · (𝐻 ⊗ 𝐻) = ­
2 ­1 −1 −1 1®
®

«1 1 −1 −1¬
Notice that the third and fourth rows of the matrix switch places due to the CNOT gate’s effect.

Step 2: Multiply (𝐻 ⊗ 𝐻) to the Above Result


Now, multiply 𝐻 ⊗ 𝐻 from the left:

22
1 1 1 1
1 ­1 −1 1 −1®
© ª
(𝐻 ⊗ 𝐻) · ­
2 ­1 −1 −1 1®
®

«1 1 −1 −1¬
Expanding this:

1 1 1 1 1 1 1 1
1 ­1 −1 1 −1® 1 ­1 −1 1 −1®
© ª © ª
−1
®· ­
−1® 2 ­1 −1 −1
2 ­1 1 1®
­ ®

«1 −1 −1 1¬ «1 1 −1 −1¬
After computation, the resulting matrix is:

1 0 0 0
­0 0 0 1®
© ª
CNOTtarget,control =­
­0 0 1 0®
®

«0 1 0 0¬
This matrix corresponds to the CNOT gate with the control and target qubits swapped.

SWAP Gate
Definition 1.7.2: SWAP Gate

The SWAP gate exchanges the states of two qubits. Its matrix representation is:

1 0 0 0
­0 0 1 0®
© ª
𝑆𝑊 𝐴𝑃 = ­
­0 1 0 0®
®

«0 0 0 1¬
The action of SWAP on basis states is given by:

𝑆𝑊 𝐴𝑃 |𝑎𝑏⟩ = |𝑏𝑎⟩ , 𝑎, 𝑏 ∈ {0, 1}

Effects of SWAP Gate The SWAP gate interchanges the states of two qubits. For any 2-qubit computational
basis state, its action is:
Note:-
𝑆𝑊 𝐴𝑃 |00⟩ = |00⟩ ,
𝑆𝑊 𝐴𝑃 |01⟩ = |10⟩ ,
𝑆𝑊 𝐴𝑃 |10⟩ = |01⟩ ,
𝑆𝑊 𝐴𝑃 |11⟩ = |11⟩ .

Thus, for any superposition of 2-qubit states, the SWAP gate exchanges the amplitudes corresponding to
each qubit’s position.

𝑛-Qubit Gates
Before we just looked at the 2-qubit version of the Controlled X gate, but it extends to 𝑛-qubits.

23
Toffoli Gate
Definition 1.7.3: Toffoli Gate

(CCX) is a three-qubit gate with two control qubits and one target qubit. Its matrix representation is:

1 0 0 0 0 0 0 0
©0 1 0 0 0 0 0 0ª®
­
­0 0 1 0 0 0 0 0®®
­
­0 0 0 1 0 0 0 0®®
Toffoli = ­­
­0 0 0 0 1 0 0 0®®
­0 0 0 0 0 1 0 0®®
­
­0 0 0 0 0 0 0 1®
«0 0 0 0 0 0 1 0¬
The Toffoli gate is Hermitian and only flips the target qubit if both control qubits are in state |1⟩.

Effects of Toffoli Gate The Toffoli (CCX) gate acts on a 3-qubit system, where the first two qubits serve as
control qubits and the third is the target. Its effect on the computational basis states is:
Note:-
Toffoli |000⟩ = |000⟩ ,
Toffoli |001⟩ = |001⟩ ,
Toffoli |010⟩ = |010⟩ ,
Toffoli |011⟩ = |011⟩ ,
Toffoli |100⟩ = |100⟩ ,
Toffoli |101⟩ = |101⟩ ,
Toffoli |110⟩ = |111⟩ ,
Toffoli |111⟩ = |110⟩ .

In essence, the target qubit is flipped only when both control qubits are in the |1⟩ state; otherwise, the
state remains unchanged.
As you would expect, multi-controlled 𝑋 gates are Hermitian.

Example 1.7.1 (Quantum Circuit Showing Hermitian Property)


A quantum circuit composed of Hermitian gates (e.g., 𝑋, 𝑍, 𝐻) will cancel out when the circuit is reversed,
resulting in the identity operation.

𝜓 𝐻 𝑍 𝑋 𝑋 𝑍 𝐻 𝜓

In this example, the quantum circuit consists of a sequence of Hermitian gates: the Hadamard (𝐻), Pauli-Z
(𝑍), and Pauli-X (𝑋) gates. These gates satisfy the property:

𝐻 = 𝐻†, 𝑋 = 𝑋†, 𝑍 = 𝑍†
Since these gates are their own inverses (i.e., 𝐻𝐻 = 𝐼, 𝑋𝑋 = 𝐼, and 𝑍𝑍 = 𝐼), if we apply the same sequence
of gates in reverse order, they cancel out, leaving the identity operation.
The circuit above first applies 𝐻, then 𝑍, then 𝑋 twice (which cancels itself out), then 𝑍 again, and finally
𝐻 again. This results in:

𝐻𝑍𝑋𝑋𝑍𝐻 = 𝐼
Hence, the overall operation on the qubit is the identity transformation, meaning the final state remains
the same as the initial state 𝜓 .

24
Definition 1.7.4: Reversibility Property of Quantum Computing

Quantum operations are inherently reversible due to the unitary nature of quantum gates. This means
that any quantum circuit can be reversed by applying the inverse of each gate in the reverse order.
Mathematically, if a quantum circuit is represented by a unitary matrix 𝑈, its reverse is represented by
𝑈 † , and since quantum gates are unitary, they satisfy the property:

𝑈 †𝑈 = 𝑈𝑈 † = 𝐼
This reversibility is a fundamental difference between quantum and classical computing and is directly
tied to the no information loss principle in quantum mechanics.

Why Reversibility is Important: In classical computing, operations such as the AND gate lose information.
For example, given the output of an AND gate, we cannot uniquely determine the original input:

(0, 0) ↦→ 0, (0, 1) ↦→ 0, (1, 0) ↦→ 0, (1, 1) ↦→ 1


Since multiple inputs can produce the same output, information is lost, making the operation irreversible.

Classical AND Gate (Irreversible)

𝐴
𝐴 𝐵 𝐴∧𝐵
𝐴∧𝐵
0 0 0
𝐵 0 1 0
1 0 0
1 1 1

This classical AND gate demonstrates information loss (irreversibility) because multiple distinct input states map
to the same output state. As shown in the truth table, three different input combinations (0,0), (0,1), and (1,0)
all produce the same output 0. Given only the output 0, it is impossible to determine which of these three input
states generated it—this loss of information about the system’s initial state makes the operation irreversible.

Quantum Reversibility: In contrast, quantum gates are always unitary, meaning they preserve the total
amount of information. Given the final state of a quantum system, we can always determine its previous state by
applying the inverse transformation. This is why quantum circuits must be composed of reversible operations.

Example 1.7.2 (Example of a Reversible Quantum Circuit:)

𝜓 𝐻 𝑋 𝑋 𝐻 𝜓

In this example, the quantum circuit consists of a sequence of unitary gates: the Hadamard (𝐻) and the
Pauli-X (𝑋) gates. These gates satisfy:

𝐻 = 𝐻†, 𝑋 = 𝑋†
Since these gates are their own inverses (i.e., 𝐻𝐻 = 𝐼 and 𝑋𝑋 = 𝐼), if we apply the same sequence of gates
in reverse order, they cancel out, leaving the identity operation:

𝐻𝑋𝑋𝐻 = 𝐼

Key Properties of Reversible Quantum Gates:


1. Every quantum gate 𝑈 has an inverse 𝑈 † , ensuring that no information is lost.

25
2. The composition of unitary gates remains unitary, preserving reversibility.
3. Classical Toffoli and Fredkin gates are reversible and can be used to construct reversible classical circuits,
which is why they are also fundamental in quantum computing.
4. Measurement is not reversible, as it collapses the quantum state and introduces information loss.
The reversibility of quantum computing is crucial for error correction, fault-tolerant quantum computation,
and simulating physical systems where information is conserved.

Example 1.7.3 (Example of Reversing a Quantum Circuit)


Consider a circuit composed of gates 𝐴, 𝐵, and 𝐶:

|𝜓final ⟩ = 𝐶𝐵𝐴|𝜓initial ⟩.
The reverse circuit applies 𝐶†, 𝐵† , and 𝐴† in reverse order:

|𝜓reversed ⟩ = 𝐴† 𝐵† 𝐶 † |𝜓final ⟩ = 𝐴† 𝐵† 𝐶 † 𝐶𝐵𝐴|𝜓initial ⟩ = |𝜓initial ⟩.

Definition 1.7.5: Quantum No-Cloning Theorem

The no-cloning theorem states that it is impossible to create an identical copy of an arbitrary unknown
quantum state. This result follows directly from the linearity of quantum mechanics.

Example 1.7.4 (Simple 2-Qubit Example)


Consider two qubits in states 𝜓 and |0⟩. The no-cloning theorem implies that there is no unitary operation
𝑈 such that:

𝑈( 𝜓 ⊗ |0⟩) = 𝜓 ⊗ 𝜓 .

Proof. Proof of the Quantum No-Cloning Theorem


Assume a unitary operator 𝑈 exists that can clone an arbitrary quantum state 𝜓 . Then, for two different
states 𝜓 and 𝜙 , we would have:

𝑈( 𝜓 ⊗ |0⟩) = 𝜓 ⊗ 𝜓 ,

𝑈( 𝜙 ⊗ |0⟩) = 𝜙 ⊗ 𝜙 .
Now, consider the superposition state |𝜉⟩ = 𝑎 𝜓 + 𝑏 𝜙 . Applying 𝑈 to |𝜉⟩ ⊗ |0⟩ should produce:

𝑈(|𝜉⟩ ⊗ |0⟩) = 𝑎𝑈( 𝜓 ⊗ |0⟩) + 𝑏𝑈( 𝜙 ⊗ |0⟩) = 𝑎( 𝜓 ⊗ 𝜓 ) + 𝑏( 𝜙 ⊗ 𝜙 ).


However, if 𝑈 could clone |𝜉⟩, the result should be:

𝑈(|𝜉⟩ ⊗ |0⟩) = |𝜉⟩ ⊗ |𝜉⟩ = (𝑎 𝜓 + 𝑏 𝜙 ) ⊗ (𝑎 𝜓 + 𝑏 𝜙 ).


Expanding this, we get:

|𝜉⟩ ⊗ |𝜉⟩ = 𝑎 2 ( 𝜓 ⊗ 𝜓 ) + 𝑎𝑏( 𝜓 ⊗ 𝜙 ) + 𝑎𝑏( 𝜙 ⊗ 𝜓 ) + 𝑏 2 ( 𝜙 ⊗ 𝜙 ).


Comparing the two expressions, we see that the terms 𝜓 ⊗ 𝜙 and 𝜙 ⊗ 𝜓 appear in the expanded
|𝜉⟩ ⊗ |𝜉⟩, but they do not appear in 𝑎( 𝜓 ⊗ 𝜓 ) + 𝑏( 𝜙 ⊗ 𝜙 ). This inconsistency demonstrates that a unitary
operator 𝑈 cannot clone an arbitrary quantum state, proving the no-cloning theorem. ■

26
Appendix

Bloch sphere, 9 T gate, 16


azimuthal angle, 9 quantum measurement, 10, 16
Cartesian coordinates conversion, 9 measurement bases, 16
global phase, 9 properties, 11
polar angle, 9 Quantum No-Cloning Theorem, 26
proof, 26
Circuit notation, 13 qubit, 7
multi-qubit gates, 19 properties, 7
classical computing, 3, 8 superposition, 11

Euler’s formula, 3 Reversibility Property of Quantum Computing, 25


matrix superposition, 2, 7
eigenvalue, 6
eigenvalue equation, 6 universal bases
Hermitian, 6 computational, 7, 8
Pauli matrices, 12 angles, 10
unitary, 5 properties, 7
multi-qubit systems, 17 Hadamard basis, 8
angles, 10
quantum gates, 11 phase basis, 8
𝑛-qubit gates, 23 angles, 10
multi-qubit gates, 18 univesal basis
CNOT with swapped target and control, 22 computational
controlled gates, 19 measurement, 11
controlled-Z gate, 19
SWAP gate, 23 vector, 3
Toffoli gate, 23 adjoint, 3
NOT gate, 13 column, see ket 3
Pauli-Y gate, 13 dagger, see adjoint 3
Phase-Flip gate, 13 Dirac notation, 3, 8
properties, 11 bra, 3
rotation gates, 11 ket, 3
X-axis, 12 eigenvector, 6
Y-axis, 12 Euclidean norm, 4
Z-axis, 12 inner product, 4
single-qubit gates, 15 orthogonality, 4
General Phase gate, 16 outer product, 4
Hadamard gate, 15 tensor product, 4
Phase gate, 15 properties, 17

27

You might also like