You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, when using the QPUDevice.expval method, both pyQuil's measure_observables as well as PennyLane's generate_samples methods are called. This leads to redundancy, as both methods generate samples, while only those from measure_observables are actually (currently) used in the estimation of the expectation value. See the discussion at #42 (comment).
We could either over-ride generate_samples when using measure_observables, or try to use the samples from generate_samples and the error mitigation routines from measure_observables.
The text was updated successfully, but these errors were encountered:
Note that this is a major shortcoming of using the QPU device with operator estimation. Users will see an increased number of device execution in such cases that could be significantly decreased.
Currently, when using the
QPUDevice.expval
method, both pyQuil'smeasure_observables
as well as PennyLane'sgenerate_samples
methods are called. This leads to redundancy, as both methods generate samples, while only those frommeasure_observables
are actually (currently) used in the estimation of the expectation value. See the discussion at #42 (comment).We could either over-ride
generate_samples
when usingmeasure_observables
, or try to use the samples fromgenerate_samples
and the error mitigation routines frommeasure_observables
.The text was updated successfully, but these errors were encountered: