Skip to content

[qml->qp] data / pytrees module#9333

Open
comp-phys-marc wants to merge 30 commits intomainfrom
data_qml_to_qp
Open

[qml->qp] data / pytrees module#9333
comp-phys-marc wants to merge 30 commits intomainfrom
data_qml_to_qp

Conversation

@comp-phys-marc
Copy link
Copy Markdown
Contributor

Context: We would like to update a number of PennyLane modules to import pennylane as qp and to use qp instead of qml throughout. This is a part of a wider rebrand of the package.

Description of the Change: Updates names, imports and references to qml.

Benefits: Updated to the new branding.

Possible Drawbacks: Requires updates to the datasets from the Cloud team.

Related GitHub Issues: [sc-117238]

@PennyLaneAI PennyLaneAI deleted a comment from github-actions Bot Apr 20, 2026
Copy link
Copy Markdown
Contributor

@gabrielasd gabrielasd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I looked at the rendered doc for qp.data and followed a few of the hyperlinks. It looks good to me

@andrijapau andrijapau added the qml->qp migration Label to help track the effort for migrating our qml alias to qp label Apr 20, 2026
obliviateandsurrender and others added 3 commits April 20, 2026 16:41
**Context:** Fallback handling for data module

**Description of the Change:**

**Benefits:**

**Possible Drawbacks:**

**Related GitHub Issues:**
@comp-phys-marc comp-phys-marc added the review-ready 👌 PRs which are ready for review by someone from the core team. label Apr 21, 2026
Copy link
Copy Markdown
Contributor

@andrijapau andrijapau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay, but I was doing some due diligence to make sure the changes here don't impact anything. Just some comments.

Comment thread pennylane/data/attributes/operator/operator.py
return None

def __delitem__(self, __name: str) -> None:
del self.attrs_bind[self.bind_key(__name)]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't this be affected too?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@obliviateandsurrender are you able to comment?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me check in a bit and see if it needs patching.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes please

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@obliviateandsurrender , do you know if these changes also impact anything in the datasets module?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They might with the pytree serialization. I will test them and include them in my PR as well.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much! 🙏🏼 🙌🏼

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opened the PR, will tag you guys when it is ready for your review!

@andrijapau andrijapau added the do not merge ⚠️ Do not merge the pull request until this label is removed label Apr 24, 2026
@andrijapau andrijapau marked this pull request as ready for review April 29, 2026 18:11
Comment thread doc/releases/changelog-dev.md Outdated
@andrijapau andrijapau changed the title Data qml to qp change data / pytrees module qml->qp Apr 29, 2026
@andrijapau andrijapau changed the title data / pytrees module qml->qp [qml->qp] data / pytrees module Apr 29, 2026
@andrijapau andrijapau removed the review-ready 👌 PRs which are ready for review by someone from the core team. label Apr 29, 2026
@andrijapau andrijapau self-requested a review April 29, 2026 18:42
@andrijapau andrijapau added this to the v0.45 milestone Apr 29, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 29, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.44%. Comparing base (6198602) to head (a95d3e6).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #9333   +/-   ##
=======================================
  Coverage   99.44%   99.44%           
=======================================
  Files         610      610           
  Lines       66958    66965    +7     
=======================================
+ Hits        66586    66594    +8     
+ Misses        372      371    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not merge ⚠️ Do not merge the pull request until this label is removed qml->qp migration Label to help track the effort for migrating our qml alias to qp

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants