Skip to content

Commit b9f0984

Browse files
authored
Apply suggestion from @cclauss
1 parent 5305f5a commit b9f0984

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

quantum/shor_algorithm.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,6 @@ def shor_algorithm(self, number: int) -> tuple[int, int]:
6262
return p_value, q_value
6363

6464

65-
shor = Shor()
66-
print(shor.shor_algorithm(15))
65+
if __name__ == "__main__":
66+
shor = Shor()
67+
print(shor.shor_algorithm(15))

0 commit comments

Comments
 (0)