Adding entry points for desired functions#2481
Merged
isaacdevlugt merged 25 commits intomainfrom Mar 13, 2026
Merged
Conversation
isaacdevlugt
commented
Feb 12, 2026
Contributor
Author
|
NB: docstrings in the |
Contributor
Author
|
Sorry I should have opened this as a draft 😬. Whoops! |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2481 +/- ##
==========================================
- Coverage 96.89% 96.89% -0.01%
==========================================
Files 155 155
Lines 16922 16917 -5
Branches 1616 1616
==========================================
- Hits 16397 16392 -5
Misses 390 390
Partials 135 135 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
andrijapau
reviewed
Feb 27, 2026
andrijapau
reviewed
Feb 27, 2026
isaacdevlugt
commented
Feb 27, 2026
isaacdevlugt
commented
Feb 27, 2026
isaacdevlugt
commented
Mar 2, 2026
dime10
reviewed
Mar 2, 2026
dime10
approved these changes
Mar 4, 2026
**Context:** The base branch allows for compilation passes (like `disentangle_cnot` and `disentangle_swap`) in Catalyst to be callable from PennyLane. **Description of the Change:** Entry points for `disentangle_cnot`, `disentangle_swap`, docs updates to `disentangle_cnot` and `disentangle_swap`, and change the names of `disentangle_cnot` and `disentangle_swap` to use all lower-case kebab style. **Benefits:** **Possible Drawbacks:** **Related GitHub PR:** PennyLaneAI/pennylane#9133
Contributor
Author
|
The code examples need to be updated to use the specs changes (level ordering + tabular output) |
dime10
reviewed
Mar 13, 2026
andrijapau
approved these changes
Mar 13, 2026
Contributor
andrijapau
left a comment
There was a problem hiding this comment.
Thanks for walking me through the changes and demoing the feature @isaacdevlugt 🎉
Looks good to me. :letsgo:
github-merge-queue Bot
pushed a commit
to PennyLaneAI/pennylane
that referenced
this pull request
Apr 10, 2026
**Context:** We have functions that live in all sorts of namespaces, and their documentation lives in different places. We need to have a better one-stop-shop for consulting our documentation for these functions (particularly, transforms). Additionally, there are many features in the Catalyst frontend that need to be exposed to the PL frontend while making sure that there is one source of truth for documenting these functions that renders both on Catalyst's and PL's documentation pages. **Description of the Change:** - Entry-point infra in PennyLane for several Catalyst passes and `draw_graph` (related: PennyLaneAI/catalyst#2481) - Removal of all source code in PennyLane pertaining to passes that are only defined by an empty (or nearly empty) `setup_inputs` function and then a `pass_name` (e.g., PBC passes and `disentangle_cnot/swap`) - Added `Usage with qjit` sections in some functions that must have separate documentation in PennyLane and Catalyst (e.g., `cancel_inverses`) - Added section to development guide - Docs-related GitHub workflows now install the nightly Catalyst build on TestPyPi **Benefits:** Better documentation standards and single source of truth **Possible Drawbacks:** **Related GitHub Issues:** [sc-113798](https://app.shortcut.com/xanaduai/story/113798/infrastructure-for-entry-points-coming-from-catalyst) --------- Co-authored-by: andrijapau <andrija.paurevic@xanadu.ai> Co-authored-by: Andrija Paurevic <46359773+andrijapau@users.noreply.github.com> Co-authored-by: Gabriela Sánchez Díaz <gsdiaz21@gmail.com> Co-authored-by: Diego <67476785+DSGuala@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context: This PR will add entry points in Catalyst for functionality that is implemented in Catalyst only, making it so that the user can access these functions from PennyLane instead.
Description of the Change: Adds entry points to several functions
Benefits: Scalable docs
Possible Drawbacks:
Related: PennyLaneAI/pennylane#9020
sc-113789