Merge branch 'joel_quantum' of https://github.com/joelkurien/Python into joel_quantum

This commit is contained in:
Joelkurien 2024-10-29 22:43:17 +11:00
commit 5305f5a3b4

View File

@ -31,8 +31,8 @@ class Shor:
while pow(num, start, number) != 1: while pow(num, start, number) != 1:
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()