amazon-braket / amazon-braket-pennylane-plugin-python

A plugin for allowing Xanadu PennyLane to use Amazon Braket devices
https://amazon-braket-pennylane-plugin-python.readthedocs.io/
Apache License 2.0
43 stars 38 forks source link

fix: update test to use DummyOp #236

Closed lillian542 closed 8 months ago

lillian542 commented 8 months ago

Description of changes: A test for how the AHS device handles operators with undefined diagonalizing gates is failing because it uses CNOT, which now does have a definition for diagonalizing gates in PennyLane 0.35.

We update the test to use a DummyOp created in the test, that should continue to have undefined diagonalizing gates.

codecov[bot] commented 8 months ago

Codecov Report

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

Project coverage is 100.00%. Comparing base (918d062) to head (6bb6880).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #236 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 7 7 Lines 1185 1185 Branches 286 286 ========================================= Hits 1185 1185 ```

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

AbeCoull commented 8 months ago

Hi, @lillian542, this looks good to me. Only minor thing is can you prefix the commit title with fix:.

lillian542 commented 8 months ago

@math411, sorry, forgot about that! It's updated now :)