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

DocFix: computing `qml.jacobian` for multiple measurement outcomes #6283

Closed PietropaoloFrisoni closed 1 month ago

PietropaoloFrisoni commented 1 month ago

Context: The documentation for qml.jacobian seems quite old and contains several examples that should be updated.

Description of the Change: We updated the examples according to the meaning in the documentation. For instance, one example stated that the provided circuit outputs the probability for each basis state, while it was actually computing the expectation values of an operator.

Benefits: Better documentation with working examples.

Possible Drawbacks: None that I can think of.

Related GitHub Issues: #6259

Related Shortcut Stories: [sc-73557]

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 (215ab98) to head (9e5f199). Report is 5 commits behind head on master.

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

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