Skip to content

Commit 5305f5a

Browse files
committed
Merge branch 'joel_quantum' of https://github.com/joelkurien/Python into joel_quantum
2 parents 30d41fb + 73ffa24 commit 5305f5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

quantum/shor_algorithm.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ def period_find(self, num: int, number: int) -> int:
3131
while pow(num, start, number) != 1:
3232
start += 1
3333
return start
34-
35-
def shor_algorithm(self, number:int) -> tuple[int, int]:
34+
35+
def shor_algorithm(self, number: int) -> tuple[int, int]:
3636
"""
3737
Run Shor's algorithm to factor a number.
3838
>>> shor = Shor()

0 commit comments

Comments
 (0)