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

Update the LQ new device API to work with Catalyst #665

Merged
merged 20 commits into from
Apr 17, 2024

Conversation

maliasadi
Copy link
Member

@maliasadi maliasadi commented Mar 28, 2024

PR #646 replaced the old device API with the new one for LQ. This migration and a few followup PRs break the Catalyst support for "lightning.qubit" against the master branch due to,

  • Missing the config device attribute,
  • The C++ runtime issue with default value of _num_burnin, and
  • Incompatible lists of supported operations in the python interface and LQ toml file.
  • Remove MidMeasureMP and Conditional from the list of supported operations in LQ (to fix the inconsistency with toml files)
  • Add stopping_condition_shots.

This PR fixes these issues.

[sc-59103]

Copy link
Contributor

Hello. You may have forgotten to update the changelog!
Please edit .github/CHANGELOG.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 Mar 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.65%. Comparing base (bc9dbcb) to head (9fddd8b).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #665      +/-   ##
==========================================
+ Coverage   93.69%   97.65%   +3.96%     
==========================================
  Files         173      173              
  Lines       24499    24509      +10     
==========================================
+ Hits        22954    23934     +980     
+ Misses       1545      575     -970     

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

@maliasadi maliasadi mentioned this pull request Apr 12, 2024
12 tasks
@AmintorDusko
Copy link
Contributor

@maliasadi, we still have some tests failing, and the changelog needs to be updated. Could you please look into this?

@maliasadi
Copy link
Member Author

maliasadi commented Apr 12, 2024

@AmintorDusko yeah, will update the PR after fixing the remaining issues in Catalyst :)

@maliasadi maliasadi force-pushed the maa/catalyst-work-with-new-device-api branch from 35af21e to 8e552c3 Compare April 16, 2024 20:48
Copy link
Contributor

@AmintorDusko AmintorDusko left a comment

Choose a reason for hiding this comment

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

Nice Job, @maliasadi. Let me know if you need more review here.

@maliasadi maliasadi added the ci:build_wheels Activate wheel building. label Apr 17, 2024
Copy link
Contributor

@vincentmr vincentmr left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks @maliasadi . Glad to know Catalyst compatibility will be restored.

@maliasadi maliasadi merged commit 6d374fd into master Apr 17, 2024
82 of 83 checks passed
@maliasadi maliasadi deleted the maa/catalyst-work-with-new-device-api branch April 17, 2024 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci:build_wheels Activate wheel building.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants