Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove sample collection redundancy in QPUDevice.expval #45

Open
msohaibalam opened this issue Feb 11, 2020 · 3 comments
Open

Remove sample collection redundancy in QPUDevice.expval #45

msohaibalam opened this issue Feb 11, 2020 · 3 comments
Labels
code quality enhancement New feature or request

Comments

@msohaibalam
Copy link
Contributor

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.

@mariaschuld
Copy link
Contributor

Closing for now, feel free to re-open.

@antalszava
Copy link
Contributor

This issue is still relevant.

@antalszava antalszava added the enhancement New feature or request label Oct 21, 2022
@antalszava
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code quality enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants