mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-12-18 01:00:15 +00:00
Handled type hinds
This commit is contained in:
commit
ebf66fb78c
|
@ -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)
|
||||||
|
|
|
@ -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))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user