Skip to content
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

Deprecate max expansion from qml.device and qml.QNode #6026

Merged
merged 7 commits into from
Jul 23, 2024

Conversation

EmilianoG-byte
Copy link
Contributor

@EmilianoG-byte EmilianoG-byte commented Jul 22, 2024

Context:

max_expansion only serves to prevent decompositions from reach the gateset they need to reach. Therefore, we are deprecating it in 0.38 and removing it in 0.39.

Description of the Change:

The max_expansion is deprecated from qml.QNode and the analogous decomp_depth is deprecated from qml.device

Benefits:

Specifying this only prevents the decomposition for reaching the target gateset, leading to things falling over uncontrollably later. Deprecating it (and later removing it) will avoid this.

Possible Drawbacks:

Users currently utilizing this argument must update their code after 0.39.

[sc-64693]

Copy link
Contributor

Hello. You may have forgotten to update the changelog!
Please edit doc/releases/changelog-dev.md with:

  • A one-to-two sentence description of the change. You may include a small working example for new features.
  • A link back to this PR.
  • Your name (or GitHub username) in the contributors section.

Copy link

codecov bot commented Jul 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.65%. Comparing base (f454f59) to head (2ff6a7e).
Report is 293 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6026      +/-   ##
==========================================
- Coverage   99.66%   99.65%   -0.01%     
==========================================
  Files         427      427              
  Lines       41059    40774     -285     
==========================================
- Hits        40920    40634     -286     
- Misses        139      140       +1     

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

@EmilianoG-byte EmilianoG-byte marked this pull request as ready for review July 22, 2024 19:27
Copy link
Contributor

@mudit2812 mudit2812 left a comment

Choose a reason for hiding this comment

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

One blocking comment left above for now. I'll give a 2nd pass after this is addressed.

@EmilianoG-byte EmilianoG-byte enabled auto-merge (squash) July 22, 2024 21:08
Copy link
Contributor

@PietropaoloFrisoni PietropaoloFrisoni left a comment

Choose a reason for hiding this comment

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

It looks all good to me!

@EmilianoG-byte EmilianoG-byte merged commit cdf7810 into master Jul 23, 2024
40 checks passed
@EmilianoG-byte EmilianoG-byte deleted the deprecate-max-expansion branch July 23, 2024 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants