mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-03-31 02:46:43 +00:00
Handled type hinds
This commit is contained in:
commit
ebf66fb78c
@ -1192,6 +1192,7 @@
|
||||
|
||||
## Quantum
|
||||
* [Q Fourier Transform](quantum/q_fourier_transform.py)
|
||||
* [Shor Algorithm](quantum/shor_algorithm.py)
|
||||
|
||||
## Scheduling
|
||||
* [First Come First Served](scheduling/first_come_first_served.py)
|
||||
|
@ -13,6 +13,8 @@ idea actually works.
|
||||
Website referred for shor algorithm:
|
||||
https://www.geeksforgeeks.org/shors-factorization-algorithm/
|
||||
"""
|
||||
|
||||
|
||||
class Shor:
|
||||
def period_find(self, num: int, number: int) -> int:
|
||||
"""
|
||||
@ -61,7 +63,3 @@ class Shor:
|
||||
|
||||
shor = Shor()
|
||||
print(shor.shor_algorithm(15))
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user