Add Shor's Algorithm implementation #16540
Annotations
4 errors
|
ruff
Process completed with exit code 1.
|
|
Ruff (RUF001):
quantum/shors_algorithm.py#L497
quantum/shors_algorithm.py:497:36: RUF001 String contains ambiguous `×` (MULTIPLICATION SIGN). Did you mean `x` (LATIN SMALL LETTER X)?
|
|
Ruff (RUF001):
quantum/shors_algorithm.py#L469
quantum/shors_algorithm.py:469: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
|