Skip to content

Commit 73ffa24

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent ebf66fb commit 73ffa24

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

quantum/shor_algorithm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ def period_find(self, num: int, number: int) -> int:
3030
while pow(num, start, number) != 1:
3131
start += 1
3232
return start
33-
34-
def shor_algorithm(self, number:int) -> tuple[int, int]:
33+
34+
def shor_algorithm(self, number: int) -> tuple[int, int]:
3535
"""
3636
Run Shor's algorithm to factor a number.
3737
>>> shor = Shor()

0 commit comments

Comments
 (0)