Skip to content
This repository has been archived by the owner on Dec 7, 2021. It is now read-only.

Sort parameters in variational distributions #985

Merged

Conversation

Cryoris
Copy link
Contributor

@Cryoris Cryoris commented May 14, 2020

Summary

Follow up on #967, sort the parameters by name in the variational uncertainty distributions to ensure reproducible results.

Details and comments

Since the input varform can be a QuantumCircuit, the list of parameters is not sorted in the same order every time. Since the parameters are optimized via an optimizer that returns an update step as array, the way that these parameters are bound to the paramterized circuit is not constant. This can lead to reproducibility issues.

@manoelmarques manoelmarques merged commit 7d2c19c into qiskit-community:master May 14, 2020
manoelmarques pushed a commit to manoelmarques/qiskit-aqua that referenced this pull request May 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants