From 09a7f6452c7a3b638d643a1c7902fe540501e6f2 Mon Sep 17 00:00:00 2001 From: WrathfulSpatula Date: Wed, 22 May 2024 16:51:14 -0400 Subject: [PATCH] Per @vprusso review --- pennylane_qrack/qrack_device.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pennylane_qrack/qrack_device.py b/pennylane_qrack/qrack_device.py index f8b964d..c5cebda 100644 --- a/pennylane_qrack/qrack_device.py +++ b/pennylane_qrack/qrack_device.py @@ -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"""