Skip to content

Capture value and grad#8814

Open
albi3ro wants to merge 30 commits intomasterfrom
capture-value-and-grad
Open

Capture value and grad#8814
albi3ro wants to merge 30 commits intomasterfrom
capture-value-and-grad

Conversation

@albi3ro
Copy link
Contributor

@albi3ro albi3ro commented Dec 23, 2025

Context:

We are trying to unify the pennylane and catalyst frontends into a single plxpr pipeline.

Description of the Change:

Adds a qml.value_and_grad function that works with both catalyst frontends.

Benefits:

Users can efficiently calculate the results and gradient at the same time.

Possible Drawbacks:

Related GitHub Issues:

[sc-106504]

@albi3ro albi3ro changed the base branch from master to capture-jvp December 23, 2025 15:42
@codecov
Copy link

codecov bot commented Dec 23, 2025

Codecov Report

❌ Patch coverage is 89.24731% with 10 lines in your changes missing coverage. Please review.
✅ Project coverage is 99.42%. Comparing base (240e2c5) to head (99f8f0d).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
pennylane/_grad/value_and_grad.py 88.46% 9 Missing ⚠️
pennylane/tape/plxpr_conversion.py 66.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8814      +/-   ##
==========================================
- Coverage   99.44%   99.42%   -0.02%     
==========================================
  Files         601      602       +1     
  Lines       64894    64985      +91     
==========================================
+ Hits        64533    64613      +80     
- Misses        361      372      +11     

☔ 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.

Base automatically changed from capture-jvp to master January 29, 2026 17:48
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.

2 participants