Add Shor's Algorithm implementation #16541
Annotations
4 errors
|
ruff
Process completed with exit code 1.
|
|
Ruff (RUF001):
quantum/shors_algorithm.py#L494
quantum/shors_algorithm.py:494:36: RUF001 String contains ambiguous `×` (MULTIPLICATION SIGN). Did you mean `x` (LATIN SMALL LETTER X)?
|
|
Ruff (RUF001):
quantum/shors_algorithm.py#L466
quantum/shors_algorithm.py:466:44: RUF001 String contains ambiguous `×` (MULTIPLICATION SIGN). Did you mean `x` (LATIN SMALL LETTER X)?
|
|
Ruff (SIM110):
quantum/shors_algorithm.py#L78
quantum/shors_algorithm.py:78:5: SIM110 Use `return all(n % i != 0 for i in range(3, int(math.sqrt(n)) + 1, 2))` instead of `for` loop
|