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

Enable serialization of Optimizers #6385

Closed
Cryoris opened this issue May 10, 2021 · 1 comment · Fixed by #6545
Closed

Enable serialization of Optimizers #6385

Cryoris opened this issue May 10, 2021 · 1 comment · Fixed by #6545
Labels
mod: algorithms Related to the Algorithms module

Comments

@Cryoris
Copy link
Contributor

Cryoris commented May 10, 2021

What is the expected enhancement?

Enable serialization and de-serialization of the Optimizers such that they can be sent to Qiskit Runtime as algorithm settings. This is easily done by adding to_dict and from_dict methods and agree on a common structure, such as

{'name': 'SPSA',  # required key
 'maxiter': 100,
 # other settings
}

It's probably best to wait after #6319 is merged and then add it to the SciPyMinimizer base class.

@Cryoris
Copy link
Contributor Author

Cryoris commented Jul 2, 2021

This will be closed by #6545 but for serialization for Qiskit Runtime we'll have to add encoding and decoding logic in the provider.

@Cryoris Cryoris changed the title Serializable Optimizers Enable serialization of Optimizers Jul 2, 2021
@mergify mergify bot closed this as completed in #6545 Jul 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mod: algorithms Related to the Algorithms module
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant