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

Integrate new device interface with qml.execute and autograd #3903

Merged
merged 79 commits into from May 16, 2023

Conversation

albi3ro
Copy link
Contributor

@albi3ro albi3ro commented Mar 14, 2023

Now that devices.experimental.DefaultQubit2 is added to master, we need to start integrating it with the workflow.

This PR adds support to qml.execute for the autograd interface for backprop and gradient transforms. The new device will only be supported with the new return types specification.

albi3ro and others added 30 commits January 6, 2023 12:38
Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
Co-authored-by: Tom Bromley <49409390+trbromley@users.noreply.github.com>
Co-authored-by: Romain Moyard <rmoyard@gmail.com>
Co-authored-by: Tom Bromley <49409390+trbromley@users.noreply.github.com>
Co-authored-by: Romain Moyard <rmoyard@gmail.com>
Copy link
Contributor

@rmoyard rmoyard left a comment

Choose a reason for hiding this comment

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

Thanks @albi3ro! I have left a couple of comments. I think we should separate the execution: better for readability, coverage and testing. Also you should add the QNode test from autograd.

pennylane/interfaces/autograd.py Outdated Show resolved Hide resolved
pennylane/interfaces/execution.py Outdated Show resolved Hide resolved
pennylane/interfaces/execution.py Outdated Show resolved Hide resolved
pennylane/interfaces/execution.py Show resolved Hide resolved
pennylane/interfaces/execution.py Outdated Show resolved Hide resolved
@albi3ro albi3ro removed the review-ready 👌 PRs which are ready for review by someone from the core team. label May 3, 2023
pennylane/interfaces/execution.py Outdated Show resolved Hide resolved
pennylane/interfaces/execution.py Show resolved Hide resolved
pennylane/interfaces/execution.py Show resolved Hide resolved
pennylane/interfaces/execution.py Show resolved Hide resolved
tests/interfaces/test_execute_default_qubit_2.py Outdated Show resolved Hide resolved
tests/interfaces/test_autograd_default_qubit_2.py Outdated Show resolved Hide resolved
Copy link
Contributor

@timmysilv timmysilv left a comment

Choose a reason for hiding this comment

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

🥳

@albi3ro albi3ro requested a review from rmoyard May 15, 2023 21:21
@albi3ro albi3ro requested a review from mudit2812 May 16, 2023 13:30
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.

Thanks for the changes Christina! 🎉

@albi3ro albi3ro merged commit 00a1972 into master May 16, 2023
43 checks passed
@albi3ro albi3ro deleted the integrate-default-qubit2 branch May 16, 2023 16:15
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

4 participants