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
Map wires #2: Add top-level qml.map_wires
function
#3145
Conversation
qml.map_wires
functionqml.map_wires
function
Codecov Report
@@ Coverage Diff @@
## master #3145 +/- ##
=======================================
Coverage 99.69% 99.69%
=======================================
Files 275 276 +1
Lines 24170 24216 +46
=======================================
+ Hits 24097 24143 +46
Misses 73 73
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
[sc-27112] |
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.
Looks good to go for me 💯! Just a few small comments and failing tests to address then happy to approve
… into map-wires-function
Co-authored-by: Christina Lee <christina@xanadu.ai>
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.
Left a couple of comments about switching references from QuantumTape
to QuantumScript
in the documentation.
But looks great! Glad to have this 🚀
Co-authored-by: Christina Lee <christina@xanadu.ai>
Co-authored-by: Christina Lee <christina@xanadu.ai>
@Jaybsoni I will wait for your approval before merging |
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.
💯
NOTE: Review after the following PR is merged into master:
map_wires
method toOperator
class #3143Added the
qml.map_wires
function, that changes the wires of the given operator,QNode
,QuantumTape
or quantum function according to the given wire map.Using
qml.map_wires
with an operator:Using
qml.map_wires
with aQNode
: