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

[from qiskit] Extend qiskit_algorithms.eval_observables to allow returning a callable #52

Open
ElePT opened this issue Aug 22, 2023 · 1 comment

Comments

@ElePT
Copy link
Collaborator

ElePT commented Aug 22, 2023

What should we add?

If we want to evaluate a set of expectation values for the same observables and circuits, but with different circuit parameters, we can cache the whole transpilation and basis transformation processes. Qiskit's opflow easily allows this and to leverage this it would be nice if we extended the eval_observables to allow returning a callable that takes as input circuit parameters and returns the (efficiently) evaluated expectation values.

Something like this is already used in #8304 and can be extracted and merged with the existing eval_observables in a follow-up.

@ElePT
Copy link
Collaborator Author

ElePT commented Aug 22, 2023

Opened by @Cryoris
Original issue & discussion: Qiskit/qiskit#8347

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant