Benchmark compilation time for cancel_inverses and merge_rotations, catalyst-vs-PL #1207
30 issues found.
Annotations
Check notice on line 1 in my_toy_circuit.py
codefactor-io / CodeFactor
my_toy_circuit.py#L1
Unused import jax (unused-import)
Check notice on line 5 in my_toy_circuit.py
codefactor-io / CodeFactor
my_toy_circuit.py#L5
Unused import catalyst (unused-import)
Check notice on line 2 in my_toy_circuit.py
codefactor-io / CodeFactor
my_toy_circuit.py#L2
Unused numpy imported as np (unused-import)
Check notice on line 39 in my_toy_circuit.py
codefactor-io / CodeFactor
my_toy_circuit.py#L39
Unused variable 'i' (unused-variable)
Check notice on line 38 in my_toy_circuit.py
codefactor-io / CodeFactor
my_toy_circuit.py#L38
Missing function or method docstring (missing-function-docstring)
Check notice on line 64 in my_toy_circuit.py
codefactor-io / CodeFactor
my_toy_circuit.py#L64
Missing function or method docstring (missing-function-docstring)
Check notice on line 6 in peephole_benchmark_driver.py
codefactor-io / CodeFactor
peephole_benchmark_driver.py#L6
Missing function or method docstring (missing-function-docstring)
Check notice on line 59 in peephole_benchmark_driver.py
codefactor-io / CodeFactor
peephole_benchmark_driver.py#L59
Redefining name 'loopsize' from outer scope (line 79) (redefined-outer-name)
Check notice on line 62 in peephole_benchmark_driver.py
codefactor-io / CodeFactor
peephole_benchmark_driver.py#L62
Unused variable 'i' (unused-variable)
Check notice on line 46 in peephole_benchmark_driver.py
codefactor-io / CodeFactor
peephole_benchmark_driver.py#L46
Unused variable 'i' (unused-variable)
Check notice on line 65 in my_toy_circuit.py
codefactor-io / CodeFactor
my_toy_circuit.py#L65
Unused variable 'i' (unused-variable)
Check notice on line 59 in peephole_benchmark_driver.py
codefactor-io / CodeFactor
peephole_benchmark_driver.py#L59
Missing function or method docstring (missing-function-docstring)
Check notice on line 1 in peephole_benchmark_driver.py
codefactor-io / CodeFactor
peephole_benchmark_driver.py#L1
Missing module docstring (missing-module-docstring)
Check failure on line 7 in peephole_benchmark_driver.py
codefactor-io / CodeFactor
peephole_benchmark_driver.py#L7
subprocess call with shell=True identified, security issue. (B602)
Check notice on line 10 in peephole_benchmark_driver.py
codefactor-io / CodeFactor
peephole_benchmark_driver.py#L10
Missing function or method docstring (missing-function-docstring)
Check notice on line 63 in plot.py
codefactor-io / CodeFactor
plot.py#L63
Consider using '{"facecolor": 'none', "edgecolor": 'none'}' instead of a call to 'dict'. (use-dict-literal)
Check notice on line 81 in my_toy_circuit.py
codefactor-io / CodeFactor
my_toy_circuit.py#L81
Line too long (124/100) (line-too-long)
Check notice on line 110 in my_toy_circuit.py
codefactor-io / CodeFactor
my_toy_circuit.py#L110
Using open without explicitly specifying an encoding (unspecified-encoding)
Check notice on line 57 in plot.py
codefactor-io / CodeFactor
plot.py#L57
Consider using '{"color": 'black', "fontsize": 14}' instead of a call to 'dict'. (use-dict-literal)
Check notice on line 14 in peephole_benchmark_driver.py
codefactor-io / CodeFactor
peephole_benchmark_driver.py#L14
Using open without explicitly specifying an encoding (unspecified-encoding)
Check notice on line 1 in plot.py
codefactor-io / CodeFactor
plot.py#L1
Missing module docstring (missing-module-docstring)
Check notice on line 77 in my_toy_circuit.py
codefactor-io / CodeFactor
my_toy_circuit.py#L77
Import "from matplotlib.patches import Rectangle" should be placed at the top of the module (wrong-import-position)
Check notice on line 29 in peephole_benchmark_driver.py
codefactor-io / CodeFactor
peephole_benchmark_driver.py#L29
Using open without explicitly specifying an encoding (unspecified-encoding)
Check notice on line 68 in plot.py
codefactor-io / CodeFactor
plot.py#L68
String statement has no effect (pointless-string-statement)
Check notice on line 79 in plot.py
codefactor-io / CodeFactor
plot.py#L79
Line too long (107/100) (line-too-long)