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

Update casting for `apply_operation` #6268

Closed mudit2812 closed 1 month ago

mudit2812 commented 2 months ago
github-actions[bot] commented 2 months ago

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

mudit2812 commented 1 month ago

I'm going to open a temporary PR in qml to promote ComplexWarnings to errors and install this branch to verify that all warnings are fixed after this PR is merged.

PietropaoloFrisoni commented 1 month ago

I'm going to open a temporary PR in qml to promote ComplexWarnings to errors and install this branch to verify that all warnings are fixed after this PR is merged.

Makes sense! Are these failures expected?

mudit2812 commented 1 month ago

I'm going to open a temporary PR in qml to promote ComplexWarnings to errors and install this branch to verify that all warnings are fixed after this PR is merged.

Makes sense! Are these failures expected?

@PietropaoloFrisoni In hindsight, I should've expected those failures. I've fixed them now by having a separate branch for casting when the interface is "tensorflow".

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 (de54c54) to head (6ccb3fb). Report is 7 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #6268 +/- ## ======================================= Coverage 99.70% 99.70% ======================================= Files 444 444 Lines 42133 42202 +69 ======================================= + Hits 42008 42079 +71 + Misses 125 123 -2 ```

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