pennylane-qiskit icon indicating copy to clipboard operation
pennylane-qiskit copied to clipboard

Now transpiles for estimator and sampler

Open austingmhuang opened this issue 9 months ago • 2 comments

Without transpilation, you can't run Estimators and Samplers using Qiskit 1.0. This is a simple change that just transpiles circuits so that it can be submitted to a real hardware backend. Tested on a local notebook that access to the device works as intended and the answers seem reasonable (other than some formatting issues that a different PR is addressing).

austingmhuang avatar May 10 '24 21:05 austingmhuang

[sc-62928]

austingmhuang avatar May 10 '24 21:05 austingmhuang

Codecov Report

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

Project coverage is 100.00%. Comparing base (5e11e3a) to head (6a4c091).

Additional details and impacted files
@@                     Coverage Diff                     @@
##           new_device_feature_branch      #531   +/-   ##
===========================================================
  Coverage                     100.00%   100.00%           
===========================================================
  Files                              8         8           
  Lines                            848       850    +2     
===========================================================
+ Hits                             848       850    +2     

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

codecov[bot] avatar May 10 '24 21:05 codecov[bot]

Can hold off on this one while we decide on if we are going to change to using V2 primitives instead.

austingmhuang avatar May 14 '24 18:05 austingmhuang

This is just a few lines of code so I merged it into #539 as without the transpilation none of the code works 😅

austingmhuang avatar May 24 '24 15:05 austingmhuang