Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
antalszava committed Nov 9, 2020
1 parent b87f892 commit 4d7899a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pennylane_qiskit/qiskit_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@ def process_kwargs(self, kwargs):

if "noise_model" in kwargs:
if not aer_provider or self.backend_name != "qasm_simulator":
raise ValueError("Backend {} does not support noisy simulations".format(self.backend_name))
raise ValueError(
"Backend {} does not support noisy simulations".format(self.backend_name)
)

noise_model = kwargs.pop("noise_model")
self.backend.set_options(noise_model=noise_model)
Expand Down

0 comments on commit 4d7899a

Please sign in to comment.