PennyLaneAI / pennylane-qiskit

The PennyLane-Qiskit plugin integrates the Qiskit quantum computing framework and IBM Q with PennyLane.
https://docs.pennylane.ai/projects/qiskit
Apache License 2.0
184 stars 66 forks source link

Use old _execute_runtime_service for observables that are not compatible with SPO representation #525

Closed austingmhuang closed 5 months ago

austingmhuang commented 5 months ago

Although most observables supported by PL do have a pauli rep (therefore an SPO rep), there are certain observables such as Hadamard that do not have a pauli_rep. This is a problem because we can't translate it to an SPO rep to be used with the Estimator primitive. This PR seeks to amend this by having those circuits sent to the old _execute_runtime_service instead, where we can avoid this problem.

austingmhuang commented 5 months ago

[sc-62046]

codecov[bot] commented 5 months ago

Codecov Report

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

Project coverage is 100.00%. Comparing base (fc1f98d) to head (b835588).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## new_device_feature_branch #525 +/- ## =========================================================== Coverage 100.00% 100.00% =========================================================== Files 8 8 Lines 840 843 +3 =========================================================== + Hits 840 843 +3 ```

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