Skip to content

Conversation

@albi3ro
Copy link
Contributor

@albi3ro albi3ro commented Jan 17, 2025

Context:

Currently, program capture only supports differentiation with backprop. This is only supported on default.qubit

Description of the Change:

Adds the capability to take finite difference derivatives.

Benefits:

We can now differentiate anything, and we can differentiate with the lightnings.

Possible Drawbacks:

finite diff tends to be noisy to the point of uselessness.

Related GitHub Issues:

[sc-82167]

@github-actions
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.
Base automatically changed from setup-jvp-structure to master January 21, 2025 21:21
@codecov
Copy link

codecov bot commented Jan 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.55%. Comparing base (afec979) to head (7ed7f77).
Report is 323 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6853   +/-   ##
=======================================
  Coverage   99.54%   99.55%           
=======================================
  Files         477      478    +1     
  Lines       45246    45343   +97     
=======================================
+ Hits        45042    45140   +98     
+ Misses        204      203    -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.
@albi3ro albi3ro requested a review from mudit2812 January 23, 2025 16:55
@albi3ro albi3ro requested a review from andrijapau January 23, 2025 22:45
Co-authored-by: Mudit Pandey <mudit.pandey@xanadu.ai>
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.

Forgot to say in the last review, but could you also add a test for differentiating for complex parameters? Other than that, I'm ready to approve.

albi3ro and others added 3 commits January 24, 2025 18:45
Co-authored-by: Andrija Paurevic <46359773+andrijapau@users.noreply.github.com>
Copy link
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.

Just some non-blocking suggestions for documentation. I think it aligns more with the documentation guide.

albi3ro and others added 5 commits January 27, 2025 11:07
@albi3ro albi3ro merged commit add9b47 into master Jan 27, 2025
46 checks passed
@albi3ro albi3ro deleted the finite-diff-capture branch January 27, 2025 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants