-
Notifications
You must be signed in to change notification settings - Fork 603
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
Convert a directed multigraph to tape #2165
Convert a directed multigraph to tape #2165
Conversation
…ithub.com:PennyLaneAI/pennylane into sc-13390-a-user-can-convert-a-tape-to-an-accurate
…stateprep conversion logic
…ithub.com:PennyLaneAI/pennylane into sc-13390-a-user-can-convert-a-tape-to-an-accurate
Co-authored-by: Tom Bromley <49409390+trbromley@users.noreply.github.com>
Co-authored-by: Tom Bromley <49409390+trbromley@users.noreply.github.com>
…of github.com:PennyLaneAI/pennylane into sc-13394-a-user-can-convert-a-multigraph-to-a-quantum
not sure about the CodeFactor error for the missing docstring in |
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 @anthayes92! Looking at the code, I'm not sure the subscript approach is worth the added logic and suggest we consider going back to the original approach.
Co-authored-by: Tom Bromley <49409390+trbromley@users.noreply.github.com>
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 @anthayes92! This is looking good, I have a few more comments/suggestions to be resolved but happy to approve once done.
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.
Approved, although would still like to resolve this comment end potentially remove test_non_unique_node_order
unless it is different to test_graph_to_tape
. Thanks @anthayes92!
Context:
In the circuit cutting pipeline, once we have the subgraphs corresponding to the circuit fragments we must then to convert these to tapes in order to execute them.
Description of the Change:
A method for converting directed multigraphs to tapes has been added.
Benefits:
Facilitates circuit cutting.