PennyLaneAI / pennylane

PennyLane is a cross-platform Python library for quantum computing, quantum machine learning, and quantum chemistry. Train a quantum computer the same way as a neural network.
https://pennylane.ai
Apache License 2.0
2.36k stars 604 forks source link

Test param shift and hadamard in device test suite #6296

Closed albi3ro closed 1 month ago

albi3ro commented 1 month ago

Context:

We have tests to check that the device works with various differentiation methods, (backprop, param shift, and hadamard). But we were skipping the test if the device didn't natively support that differentiation method. parameter shift and hadamard shouldn't need to be natively supported. Pennylane itself handles that. So we should always be checking parameter shift and hadamard grad with any device.

Description of the Change:

Benefits:

Possible Drawbacks:

Related GitHub Issues:

github-actions[bot] commented 1 month ago

Hello. You may have forgotten to update the changelog! Please edit doc/releases/changelog-dev.md with:

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 99.70%. Comparing base (9bd2f5d) to head (9192894). Report is 1 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #6296 +/- ## ======================================= Coverage 99.70% 99.70% ======================================= Files 444 444 Lines 42226 42226 ======================================= Hits 42103 42103 Misses 123 123 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.