Skip to content

allow circuits with mixed MP types

codefactor.io / CodeFactor failed Nov 22, 2023 in 2s

9 issues found.

Annotations

Check notice on line 204 in pennylane_qiskit/qiskit_device2.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane_qiskit/qiskit_device2.py#L204

Unused argument 'kwargs' (unused-argument)

Check notice on line 408 in pennylane_qiskit/qiskit_device2.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane_qiskit/qiskit_device2.py#L408

Unused argument 'execution_config' (unused-argument)

Check notice on line 241 in pennylane_qiskit/qiskit_device2.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane_qiskit/qiskit_device2.py#L241

Missing function or method docstring (missing-function-docstring)

Check notice on line 244 in pennylane_qiskit/qiskit_device2.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane_qiskit/qiskit_device2.py#L244

Missing function or method docstring (missing-function-docstring)

Check notice on line 405 in pennylane_qiskit/qiskit_device2.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane_qiskit/qiskit_device2.py#L405

Missing function or method docstring (missing-function-docstring)

Check notice on line 42 in pennylane_qiskit/qiskit_device2.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane_qiskit/qiskit_device2.py#L42

Unused broadcast_expand imported from pennylane.transforms (unused-import)

Check notice on line 47 in pennylane_qiskit/qiskit_device2.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane_qiskit/qiskit_device2.py#L47

Unused null_postprocessing imported from pennylane.devices.preprocess (unused-import)

Check notice on line 163 in pennylane_qiskit/qiskit_device2.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane_qiskit/qiskit_device2.py#L163

Unnecessary use of a comprehension, use dict(zip(idx, r)) instead. (unnecessary-comprehension)

Check notice on line 165 in pennylane_qiskit/qiskit_device2.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane_qiskit/qiskit_device2.py#L165

Consider using a generator instead 'tuple(result[i] for i in sorted(result.keys()))' (consider-using-generator)