mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-23 21:11:08 +00:00
Merge branch 'joel_quantum' of https://github.com/joelkurien/Python into joel_quantum
This commit is contained in:
commit
5305f5a3b4
|
@ -32,7 +32,7 @@ class Shor:
|
||||||
start += 1
|
start += 1
|
||||||
return start
|
return start
|
||||||
|
|
||||||
def shor_algorithm(self, number:int) -> tuple[int, int]:
|
def shor_algorithm(self, number: int) -> tuple[int, int]:
|
||||||
"""
|
"""
|
||||||
Run Shor's algorithm to factor a number.
|
Run Shor's algorithm to factor a number.
|
||||||
>>> shor = Shor()
|
>>> shor = Shor()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user