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
Fixes a test in the device test suite #1943
Conversation
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.
Thanks @albi3ro for catching this, there is a problem with the following operation
"QubitDensityMatrix": qml.QubitStateVector(np.array([[0.5, 0.0], [0, 0.5]]), wires=[0])
I think you should extend it to 4 wires as it is defined in the device.
Codecov Report
@@ Coverage Diff @@
## master #1943 +/- ##
=======================================
Coverage 98.81% 98.81%
=======================================
Files 225 225
Lines 17167 17167
=======================================
Hits 16963 16963
Misses 204 204 Continue to review full report at Codecov.
|
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.
Thanks @albi3ro it looks good to me 💯
In
pennylane/devices/tests/test_gates.py
, the testtest_supported_gates_can_be_implemented
was creating an empty circuit and not applying the actual gate, since the operation was instantiated outside the QNode.