PennyLaneAI / pennylane-aqt

The PennyLane-AQT plugin integrates Alpine Quantum Technologies' ion-trap quantum computing hardware with with PennyLane's quantum machine learning capabilities.
https://docs.pennylane.ai/projects/aqt
Apache License 2.0
9 stars 3 forks source link

Replace .inv with Adjoint #45

Closed lillian542 closed 1 year ago

lillian542 commented 1 year ago

Replaces logic based on op.inv with qml.ops.Adjoint.

Note that some self-adjoint operators are approximated (up to a phase) by the native gates of the system and are NOT self-adjoint in their implementation, so for example Adjoint(Hadamard) is not the same as Hadamard. None of the logic surrounding how to handle inverse operators has been changed. It just uses Adjoint now.

codecov[bot] commented 1 year ago

Codecov Report

Merging #45 (42a9fa0) into master (5030e43) will not change coverage. The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master       #45   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            6         6           
  Lines          180       176    -4     
=========================================
- Hits           180       176    -4     
Impacted Files Coverage Δ
pennylane_aqt/device.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

lillian542 commented 1 year ago

[sc-33454]