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

[Capture] add eval_jaxpr method to device api #6580

Merged
merged 5 commits into from
Nov 15, 2024
Merged

Conversation

albi3ro
Copy link
Contributor

@albi3ro albi3ro commented Nov 12, 2024

Context:

Now that we can capture a variety of programs into hybrid quantum-classical pennylane-variant jaxpr, we want to develop a new execution pipeline for natively executing it.

Description of the Change:

Adds a eval_jaxpr method to the device interface.

Benefits:

We start making devices natively execute jaxpr.

Possible Drawbacks:

Still figuring out exactly what that workflow is going to look like.

Related GitHub Issues:

[sc-72589]

Copy link

codecov bot commented Nov 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.29%. Comparing base (7da8831) to head (81bc79e).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6580   +/-   ##
=======================================
  Coverage   99.29%   99.29%           
=======================================
  Files         454      454           
  Lines       43270    43272    +2     
=======================================
+ Hits        42966    42968    +2     
  Misses        304      304           

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

tests/devices/experimental/test_device_api.py Outdated Show resolved Hide resolved
pennylane/devices/device_api.py Outdated Show resolved Hide resolved
doc/releases/changelog-dev.md Show resolved Hide resolved
pennylane/devices/device_api.py Outdated Show resolved Hide resolved
Co-authored-by: Pietropaolo Frisoni <[email protected]>
Co-authored-by: Mudit Pandey <[email protected]>
@albi3ro albi3ro enabled auto-merge (squash) November 15, 2024 16:31
@albi3ro albi3ro merged commit 447dad1 into master Nov 15, 2024
46 checks passed
@albi3ro albi3ro deleted the device-execute-jaxpr branch November 15, 2024 16:52
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