From 38171b625398a49f1d3a0423f88f48c794de83c1 Mon Sep 17 00:00:00 2001 From: WrathfulSpatula Date: Fri, 19 Jul 2024 16:41:53 -0400 Subject: [PATCH 1/2] 'rotations' param. is redundant if Qrack converts to observable basis --- pennylane_qrack/qrack_device.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pennylane_qrack/qrack_device.py b/pennylane_qrack/qrack_device.py index 8888ecd..2ca2a6c 100644 --- a/pennylane_qrack/qrack_device.py +++ b/pennylane_qrack/qrack_device.py @@ -167,14 +167,8 @@ def _reverse_state(self): self._state.swap(i, end - i) def apply(self, operations, **kwargs): - rotations = kwargs.get("rotations", []) - self.apply_operations(operations) - # Rotating the state for measurement in the computational basis - if rotations: - self.apply_operations(rotations) - def apply_operations(self, operations): """Apply the circuit operations to the state. From 0faf33de9f6e3efa15e122f11f34e72df559e137 Mon Sep 17 00:00:00 2001 From: WrathfulSpatula Date: Fri, 19 Jul 2024 17:06:29 -0400 Subject: [PATCH 2/2] Per @cosenal suggestion --- pennylane_qrack/qrack_device.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/pennylane_qrack/qrack_device.py b/pennylane_qrack/qrack_device.py index 2ca2a6c..1191a8b 100644 --- a/pennylane_qrack/qrack_device.py +++ b/pennylane_qrack/qrack_device.py @@ -167,9 +167,6 @@ def _reverse_state(self): self._state.swap(i, end - i) def apply(self, operations, **kwargs): - self.apply_operations(operations) - - def apply_operations(self, operations): """Apply the circuit operations to the state. This method serves as an auxiliary method to :meth:`~.QrackDevice.apply`.