Handled type hinds

This commit is contained in:
Joelkurien 2024-10-29 21:36:23 +11:00
commit ebf66fb78c
2 changed files with 18 additions and 19 deletions

View File

@ -1192,6 +1192,7 @@
## Quantum ## Quantum
* [Q Fourier Transform](quantum/q_fourier_transform.py) * [Q Fourier Transform](quantum/q_fourier_transform.py)
* [Shor Algorithm](quantum/shor_algorithm.py)
## Scheduling ## Scheduling
* [First Come First Served](scheduling/first_come_first_served.py) * [First Come First Served](scheduling/first_come_first_served.py)

View File

@ -13,6 +13,8 @@ idea actually works.
Website referred for shor algorithm: Website referred for shor algorithm:
https://www.geeksforgeeks.org/shors-factorization-algorithm/ https://www.geeksforgeeks.org/shors-factorization-algorithm/
""" """
class Shor: class Shor:
def period_find(self, num: int, number: int) -> int: def period_find(self, num: int, number: int) -> int:
""" """
@ -61,7 +63,3 @@ class Shor:
shor = Shor() shor = Shor()
print(shor.shor_algorithm(15)) print(shor.shor_algorithm(15))