-
Notifications
You must be signed in to change notification settings - Fork 58
feat: add graph visualization for compiled programs #2216
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
base: main
Are you sure you want to change the base?
Conversation
…neAI/catalyst into migrate-unified-compiler
…_in_dim verify methods
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## migrate-unified-compiler #2216 +/- ##
===========================================================
Coverage ? 97.66%
===========================================================
Files ? 93
Lines ? 10899
Branches ? 1039
===========================================================
Hits ? 10645
Misses ? 195
Partials ? 59 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…rete subclass (#2213) Copied over what was in PennyLaneAI/pennylane#8626. [sc-103457] [sc-103456] --------- Co-authored-by: Mehrdad Malek <[email protected]>
…2229) Main goal of this PR was to add properties to help probe the inner structure of the DAG. This PR also does, - minor clean-up w.r.t naming and formatting - adds validation to add_* methods [sc-103457] [sc-103456] --------- Co-authored-by: Mudit Pandey <[email protected]> Co-authored-by: Mehrdad Malek <[email protected]>
|
|
||
| <h3>New features since last release</h3> | ||
|
|
||
| * Compiled programs can be visualized. |
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.
This entry should probably be significantly more descriptive since it's a pretty big new feature
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.
Yeah - just a place holder for now 😄
This utility is used to traverse the IR and then use the DAGBuilder to generate a DAG to be visualized. [sc-103458] --------- Co-authored-by: Mehrdad Malek <[email protected]> Co-authored-by: Mudit Pandey <[email protected]>
**Context:** Migrates the `chore/xdsl-utils` branch from PennyLane. **Description of the Change:** Renames the visualization module to inspection and improves several xDSL parsing utilities within the python interface. **Benefits:** Simplifies and augments existing utility functions within the ~visualization~ inspection module **Possible Drawbacks:** **Related GitHub Issues:** [sc-104851]
…tions (#2231) This PR adds the ability to view multiple QNodes in a workflow with clusters and their devices as nodes within said clusters. Some examples, ``` dev1 = qml.device("lightning.qubit", wires=5) dev2 = qml.device("null.qubit", wires=5) @qml.qnode(dev1) def my_qnode2(): qml.X(0) @qml.qnode(dev2) def my_qnode1(): qml.H(0) @qml.qjit(autograph=True, target="mlir") def my_workflow(): my_qnode1() my_qnode2() ``` <img width="359" height="180" alt="image" src="https://github.com/user-attachments/assets/9e8aa849-4085-4a71-ac67-6e7d379e5614" /> ``` @qml.qjit(autograph=True, target="mlir") @qml.qnode(dev2) def circuit(): qml.H(0) ``` <img width="233" height="172" alt="image" src="https://github.com/user-attachments/assets/4943d56a-f92c-4572-a894-f98c9e8ab810" /> [sc-104730] [sc-104731] --------- Co-authored-by: Mehrdad Malek <[email protected]> Co-authored-by: Mudit Pandey <[email protected]>
Base branch for feature.