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.38k stars 607 forks source link

Update `default.mixed` to `default.qubit.legacy` in `test_qnode_legacy.py` #6634

Closed andrijapau closed 2 days ago

andrijapau commented 3 days ago

Context:

default.mixed is currently being ported over to the new device API. Therefore, test_qnode_legacy.py should be updated to remove default.mixed and replace it with DefaultQubitLegacy.

Description of the Change:

qml.device("default.mixed", ...)DefaultQubitLegacy(...)

Benefits: Code clean-up.

Possible Drawbacks: None

[sc-78490]

github-actions[bot] commented 3 days ago

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

andrijapau commented 3 days ago

Do I need a changelog for this? @mudit2812 / @lillian542

codecov[bot] commented 3 days ago

Codecov Report

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

Project coverage is 99.65%. Comparing base (672ba48) to head (b2927c9). Report is 1 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #6634 +/- ## ======================================= Coverage 99.65% 99.65% ======================================= Files 455 455 Lines 42820 42820 ======================================= Hits 42671 42671 Misses 149 149 ```

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