Skip to content

Commit

Permalink
adde support StatePrep
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaybsoni committed Aug 22, 2023
1 parent 5f9ab9f commit 2c8a865
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pennylane_ionq/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def apply(self, operations, **kwargs):
warnings.warn("Circuit is empty. Empty circuits return failures. Submitting anyway.")

for i, operation in enumerate(operations):
if i > 0 and operation.name in {"BasisState", "QubitStateVector"}:
if i > 0 and operation.name in {"BasisState", "QubitStateVector", "StatePrep"}:
raise DeviceError(
f"The operation {operation.name} is only supported at the beginning of a circuit."
)
Expand Down
2 changes: 1 addition & 1 deletion requirements-ci.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
numpy
pennylane
git+https://github.com/PennyLaneAI/pennylane.git
python-dateutil
requests

0 comments on commit 2c8a865

Please sign in to comment.