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.17k stars 568 forks source link

Raise DeprecationWarning only when the qasm code contains measurements #5904

Closed astralcai closed 20 hours ago

astralcai commented 3 days ago

Context: https://github.com/PennyLaneAI/pennylane/pull/5882 led to deprecation warnings raised in non-applicable scenarios

Description of the Change: Only raise deprecation warning if the circuit contains measurements

Benefits: Less confusing deprecation warnings

astralcai commented 3 days ago

[sc-66318]

github-actions[bot] commented 3 days ago

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

codecov[bot] commented 3 days ago

Codecov Report

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

Please upload report for BASE (v0.37.0-rc0@68aeee3). Learn more about missing BASE report.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## v0.37.0-rc0 #5904 +/- ## ============================================== Coverage ? 99.66% ============================================== Files ? 425 Lines ? 40458 Branches ? 0 ============================================== Hits ? 40324 Misses ? 134 Partials ? 0 ```

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

trbromley commented 2 days ago

Interesting branch name!