Skip to content

Commit

Permalink
Add support for StatePrep (#77)
Browse files Browse the repository at this point in the history
* adde support StatePrep

* Update requirements-ci.txt

* changelog

* emojis

---------

Co-authored-by: Matthew Silverman <[email protected]>
  • Loading branch information
Jaybsoni and timmysilv authored Aug 22, 2023
1 parent 5f9ab9f commit e76df60
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
17 changes: 11 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
# Release 0.29.0-dev
# Release 0.32.0-dev

### New features since last release

### Breaking changes
### Breaking changes 💔

### Improvements
### Improvements 🛠

### Documentation
* Added support for `qml.StatePrep` as a state preparation operation.
[(#77)](https://github.com/PennyLaneAI/PennyLane-IonQ/pull/77)

### Bug fixes
### Documentation 📝

### Contributors
### Bug fixes 🐛

### Contributors ✍️

This release contains contributions from (in alphabetical order):

Jay Soni

---
# Release 0.28.0

Expand Down
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

0 comments on commit e76df60

Please sign in to comment.