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

Bug: loading QAOABenchmark #83

Open
renezander90 opened this issue Sep 27, 2024 · 0 comments
Open

Bug: loading QAOABenchmark #83

renezander90 opened this issue Sep 27, 2024 · 0 comments

Comments

@renezander90
Copy link
Contributor

An instance of QAOABenchmark contains the classical cost function as a Python function. The .save method uses dill to save the QAOABenchmark instance including the cost_function into a .qaoa file.
The resulting .qaoa file can only be loaded on the same system (and at the same place) where it has been created due to dependencies on the local environment.

Possible solution: Instead of saving the cost function, save an additional dictionary of measurement outcomes and their cost values.

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