Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add validate_wires_against_backend function #335

Closed
wants to merge 1 commit into from

Add validate_wires_against_backend function

20eac5a
Select commit
Loading
Failed to load commit list.
Closed

Add validate_wires_against_backend function #335

Add validate_wires_against_backend function
20eac5a
Select commit
Loading
Failed to load commit list.
codefactor.io / CodeFactor failed Sep 29, 2023 in 4s

5 issues found.

Annotations

Check notice on line 188 in pennylane_qiskit/qiskit_device.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane_qiskit/qiskit_device.py#L188

Trailing whitespace (trailing-whitespace)

Check notice on line 197 in pennylane_qiskit/qiskit_device.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane_qiskit/qiskit_device.py#L197

Trailing whitespace (trailing-whitespace)

Check notice on line 205 in pennylane_qiskit/qiskit_device.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane_qiskit/qiskit_device.py#L205

Trailing whitespace (trailing-whitespace)

Check notice on line 204 in pennylane_qiskit/qiskit_device.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane_qiskit/qiskit_device.py#L204

Consider explicitly re-raising using 'except AttributeError as exc' and 'raise AttributeError("Neither 'b.configuration().n_qubits' nor 'b.num_qubits' exist.") from exc' (raise-missing-from)

Check notice on line 195 in pennylane_qiskit/qiskit_device.py

See this annotation in the file changed.

@codefactor-io codefactor-io / CodeFactor

pennylane_qiskit/qiskit_device.py#L195

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