Skip to content

Commit

Permalink
Per @vprusso review
Browse files Browse the repository at this point in the history
  • Loading branch information
WrathfulSpatula committed May 22, 2024
1 parent c0efef0 commit 09a7f64
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pennylane_qrack/qrack_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,9 +426,7 @@ def _apply_gate(self, op):
elif opname == "QFT.inv":
self._state.iqft(device_wires.labels)
elif not opname in ["Identity", "Identity.inv", "C(Identity)", "C(Identity).inv"]:
raise DeviceError(
"Operation {} is not supported on a {} device.".format(opname, self.short_name)
)
raise DeviceError(f"Operation {opname} is not supported on a {self.short_name} device.")

def _apply_qubit_unitary(self, op):
"""Apply unitary to state"""
Expand Down

0 comments on commit 09a7f64

Please sign in to comment.