-
Notifications
You must be signed in to change notification settings - Fork 627
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
Stop using _wire setter and use map_wires instead. #3186
Conversation
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.
- Changelog
- Think there might be some merge artifacts
- Little confused by the different locations of wire mapping in the pattern matching PR
- Should test that the warning is emitted by
remap_tape_wires
withpytest.warns
Done
Fixed
Some of the changes were wrong, so thank you for catching this! Now I fixed the
Done |
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.
Always love removing TODO
's :)
_wires
properties.op._wires = new_wires
, useqml.map_wires(op, wire_map=dict(zip(op.wires, new_wires)))
instead.remap_tape_wires