CYS536 Lect2
CYS536 Lect2
2024-2025 - Term 2
Lecture 2
Instructor: Dr. Naya Nagy
Email: nmnagy@iau.edu.sa
Outline
𝑞 = 𝛼 |0ۧ + 𝛽 |1ۧ
𝑞 = 𝛼 |0ۧ + 𝛽 |1ۧ
4
The Qubit - Superposition
𝑞 = 𝛼 |0ۧ + 𝛽 |1ۧ
5
The Qubit – Superposition - Exercises
Solution
𝑞1 = 𝛼 |0ۧ + 𝛼 |1ۧ
2 2 2 1 1 2
𝛼 + 𝛼 =1 ➔ 𝛼 = ➔𝛼 = =
2 2 2
2 2
𝑞1 = |0ۧ + |1ۧ. ➔ This is a BALANCED SUPERPOSITION
2 2
6
The Qubit – Superposition - Exercises
Solution
𝑞2 = 𝛼 |0ۧ + 𝛽 |1ۧ
2 2 2 2
𝛼 + 𝛽 = 1 and 𝛽 =2∗ 𝛼
2 2 1 3 2 6
➔ 𝛼 +2∗ 𝛼 =1➔𝛼 = = , and 𝛽 = =
3 3 3 3
3 6
𝑞2 = |0ۧ + |1ۧ.
3 3 7
The Qubit – Superposition - Exercises
Solution
𝑞3 = 𝛼 |0ۧ + 𝛽 |1ۧ
𝛼 = 1 and 𝛽 = 0
➔ 𝑞3 = |0ۧ.
8
The Qubit – Superposition - Exercises
Solution
𝑞4 = 𝛼 |0ۧ + 𝛽 |1ۧ
𝛼 2 = 0.4 ➔ 𝛼 = 0.4 = 0.63 …
and 𝛽 2 = 0.6 ➔𝛽 = 0.6 = 0.77 …
➔ 𝑞4 = 0.63|0ۧ + 0.77|1ۧ.
9
The Qubit – Superposition - Exercises
10
The Qubit – Superposition - Exercises
Solution
This problem has no solution!
As 𝛼 2 + 𝛽 2 = 1 ➔ 0 ≤ 𝛽 2 ≤ 0
11
The Qubit – Superposition - Exercises
Solution
2 2 2 3 2 2 9
𝛼 + 𝛽 =1➔ 𝛼 + =1➔ 𝛼 + =1
5 25
2 16 4
𝛼 = ➔𝛼 =
25 5
4 3
Then 𝑞6 = |0ۧ + |1ۧ
5 5 12
The Qubit –
Superposition and
the Fundamental Theorem of Trigonometry
and
For any given angle ∡𝐴, the fundamental theorem of
trigonometry says
sin ∡𝐴 2 + cos ∡𝐴 2 = 1
... hmmm 13
The Qubit – Superposition and
the Fundamental Theorem of Trigonometry
Is it unitary?? YES!!
This folks ... is TRUE ELEGANCE! 14
The Qubit – Superposition written with an angle
Now go through all exercises before and write the qubit
using the angle notation for probabilities.
2 2 𝜋 𝜋 𝜋
𝑞1 = |0ۧ + |1ۧ = cos |0ۧ + sin |1ۧ, and 𝜃 = .
2 2 4 4 2
16
The Qubit – Superposition written with an angle
For Exercise 2.
3 6 3 6
𝑞2 = |0ۧ
+ |1ۧ
= arccos |0ۧ
+ arcsin |1ۧ
3 3 3 3
= 0.955 ∗ |0ۧ + 0.955 ∗ |1ۧ, and 𝜃 = 2 ∗ 0.955 = 1.91 𝑟𝑎𝑑.
For computation of arccos and arcsin, you may use
https://www.rapidtables.com/calc/math/Arccos_Calculator.html
https://www.rapidtables.com/calc/math/Arcsin_Calculator.html.
17
Lab Activity
18
Practical Activity No.2 = Lab 2
19
Practical Activity No.2 = Lab 2
21
Practical Activity No.2 = Lab 2
𝜋
For example, what happens for 𝜃 = ?. The supersposition is
2
balanced. What is the qubit 𝑞 in this case?
22
Practical Activity No.2 = Lab 2
23
Some One Qubit Gates
24
The NOT Gate
1 3
Exercise 1: Find X𝑞1 , where 𝑞1 = |0ۧ + |1ۧ.
2 2
Solution:
1 3 1 3
X𝑞1 = 𝑋 |0ۧ + |1ۧ = 𝑋 |0ۧ + 𝑋 |1ۧ
2 2 2 2
1 3 1 3 3 1
= 𝑋|0ۧ + 𝑋|1ۧ = |1ۧ + |0ۧ = |0ۧ + |1ۧ
2 2 2 2 2 2
26
Quantum Presence
27
Get Your Textbook!!
https://www.amazon.com/Securing-
Secrets-Beyond-Supercomputers-
Cryptography/dp/B0CN4PP63Z
35