Skip to content

Add the support class for the Adjoint Jacobian to the new device (#907)

codefactor.io / CodeFactor failed Sep 17, 2024 in 5s

12 issues found.

Annotations

Check notice on line 25 in pennylane_lightning/lightning_gpu/_measurements.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane_lightning/lightning_gpu/_measurements.py#L25

Too few public methods (0/2) (too-few-public-methods)

Check notice on line 221 in pennylane_lightning/lightning_gpu/lightning_gpu.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane_lightning/lightning_gpu/lightning_gpu.py#L221

Unused variable 'name' (unused-variable)

Check notice on line 44 in pennylane_lightning/lightning_gpu/_measurements.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane_lightning/lightning_gpu/_measurements.py#L44

Imports from package pennylane_lightning are not grouped (ungrouped-imports)

Check notice on line 50 in pennylane_lightning/lightning_gpu/_mpi_handler.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane_lightning/lightning_gpu/_mpi_handler.py#L50

Too many arguments (6/5) (too-many-arguments)

Check notice on line 35 in pennylane_lightning/lightning_gpu/_measurements.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane_lightning/lightning_gpu/_measurements.py#L35

Unnecessary pass statement (unnecessary-pass)

Check notice on line 45 in pennylane_lightning/lightning_gpu/_state_vector.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane_lightning/lightning_gpu/_state_vector.py#L45

Imports from package pennylane_lightning are not grouped (ungrouped-imports)

Check notice on line 118 in pennylane_lightning/lightning_gpu/_state_vector.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane_lightning/lightning_gpu/_state_vector.py#L118

Unnecessary "else" after "return", remove the "else" and de-indent the code inside it (no-else-return)

Check notice on line 112 in pennylane_lightning/lightning_gpu/_measurements.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane_lightning/lightning_gpu/_measurements.py#L112

Redefining name 'ex' from outer scope (line 27) (redefined-outer-name)

Check notice on line 35 in pennylane_lightning/lightning_gpu/_mpi_handler.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane_lightning/lightning_gpu/_mpi_handler.py#L35

Too few public methods (0/2) (too-few-public-methods)

Check notice on line 76 in pennylane_lightning/lightning_gpu/_state_vector.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane_lightning/lightning_gpu/_state_vector.py#L76

Too many arguments (6/5) (too-many-arguments)

Check notice on line 43 in pennylane_lightning/lightning_gpu/_adjoint_jacobian.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane_lightning/lightning_gpu/_adjoint_jacobian.py#L43

Unnecessary pass statement (unnecessary-pass)

Check notice on line 271 in pennylane_lightning/lightning_kokkos/_state_vector.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane_lightning/lightning_kokkos/_state_vector.py#L271

Access to a protected member _hyperparameters of a client class (protected-access)