Skip to content

Commit

Permalink
Merge pull request #20 from unitaryfund/bugfix_observable_bases
Browse files Browse the repository at this point in the history
'rotations' parameter is redundant if Qrack converts to observable basis
  • Loading branch information
WrathfulSpatula authored Jul 19, 2024
2 parents d620c3f + 0faf33d commit 183aa4b
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions pennylane_qrack/qrack_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,15 +167,6 @@ 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.
This method serves as an auxiliary method to :meth:`~.QrackDevice.apply`.
Expand Down

0 comments on commit 183aa4b

Please sign in to comment.