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

Added jax support to private function _qsp_to_qsvt() which handles convention changes. #5853

Merged
merged 12 commits into from
Jun 21, 2024

Conversation

Jaybsoni
Copy link
Contributor

@Jaybsoni Jaybsoni commented Jun 13, 2024

Context:
Allow for qml.qsvt() to accept phase angles as jax arrays and perform convention conversions.

@Jaybsoni Jaybsoni requested review from josh146 and dime10 June 13, 2024 19:38
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.

@Jaybsoni Jaybsoni requested a review from soranjh June 13, 2024 19:41
Copy link
Contributor

@soranjh soranjh left a comment

Choose a reason for hiding this comment

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

Thanks @Jaybsoni.

Copy link

codecov bot commented Jun 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.66%. Comparing base (96a3d56) to head (f4caa0a).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5853      +/-   ##
==========================================
- Coverage   99.67%   99.66%   -0.01%     
==========================================
  Files         425      425              
  Lines       40751    40457     -294     
==========================================
- Hits        40618    40323     -295     
- Misses        133      134       +1     

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

Copy link
Contributor

@dime10 dime10 left a comment

Choose a reason for hiding this comment

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

Thanks for the quick turnaround on this!

pennylane/templates/subroutines/qsvt.py Outdated Show resolved Hide resolved
pennylane/templates/subroutines/qsvt.py Outdated Show resolved Hide resolved
@Jaybsoni Jaybsoni requested review from soranjh and dime10 June 20, 2024 21:24
Copy link
Contributor

@dime10 dime10 left a comment

Choose a reason for hiding this comment

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

Thanks @Jaybsoni, definitely useful to have the new math function!

pennylane/math/multi_dispatch.py Outdated Show resolved Hide resolved
pennylane/templates/subroutines/qsvt.py Outdated Show resolved Hide resolved
pennylane/templates/subroutines/qsvt.py Outdated Show resolved Hide resolved
Jaybsoni and others added 2 commits June 21, 2024 09:45
Co-authored-by: David Ittah <dime10@users.noreply.github.com>
@Jaybsoni Jaybsoni requested a review from dime10 June 21, 2024 13:52
Copy link
Contributor

@dime10 dime10 left a comment

Choose a reason for hiding this comment

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

🥳

@Jaybsoni Jaybsoni enabled auto-merge (squash) June 21, 2024 15:53
@Jaybsoni Jaybsoni merged commit e1bea42 into master Jun 21, 2024
39 checks passed
@Jaybsoni Jaybsoni deleted the qsp_jax_bug branch June 21, 2024 16:20
mudit2812 pushed a commit that referenced this pull request Jul 2, 2024
…convention changes. (#5853)

**Context:**
Allow for `qml.qsvt()` to accept phase angles as jax arrays and perform
convention conversions.

---------

Co-authored-by: David Ittah <dime10@users.noreply.github.com>
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.

None yet

3 participants