-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add StatePrep
support
#146
Conversation
Codecov Report
@@ Coverage Diff @@
## master #146 +/- ##
===========================================
+ Coverage 0.00% 99.14% +99.14%
===========================================
Files 8 8
Lines 352 352
===========================================
+ Hits 0 349 +349
+ Misses 352 3 -349
|
[sc-43547] |
@@ -112,7 +112,7 @@ def test_qubit_state_vector(self, init_state, shots, tol): | |||
state = init_state(1) | |||
|
|||
with mimic_execution_for_apply(dev): | |||
dev.apply([qml.QubitStateVector(state, wires=[0])]) | |||
dev.apply([qml.StatePrep(state, wires=[0])]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can also rename the test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just left some suggestions feel free to ignore.
The CI was experiencing some failures: https://github.com/PennyLaneAI/plugin-test-matrix/actions/runs/5930704451/job/16080993219?pr=46
but updating to natively support
StatePrep
as well asQubitStateVector
seems to fix the problem.