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

Log calibrated learning rate and perturbation in (QN-)SPSA #7109

Merged
merged 3 commits into from
Oct 8, 2021

Conversation

Cryoris
Copy link
Contributor

@Cryoris Cryoris commented Oct 7, 2021

Summary

Fixes #7092.

Details and comments

Log the result of the calibration of the learning rate and perturbation for the SPSA/QNSPSA optimizers.

If the calibration method is called, the logger now contains the following lines

INFO:qiskit.algorithms.optimizers.spsa:SPSA: Starting calibration of learning rate and perturbation.
INFO:qiskit.algorithms.optimizers.spsa:Finished calibration:
INFO:qiskit.algorithms.optimizers.spsa: -- Learning rate: a / ((A + n) ^ alpha) with a = 0.6453260869105845, A = 0, alpha = 0.602
INFO:qiskit.algorithms.optimizers.spsa: -- Perturbation: c / (n ^ gamma) with c = 0.2, gamma = 0.101

which contain the functional structure and parameters of the learning rate and perturbation.

@jakelishman jakelishman added automerge Changelog: None Do not include in changelog labels Oct 8, 2021
@mergify mergify bot merged commit 4ac6fe9 into Qiskit:main Oct 8, 2021
@kdk kdk added this to the 0.19 milestone Nov 15, 2021
ElePT pushed a commit to ElePT/qiskit that referenced this pull request Jun 27, 2023
* log calibrated learning rate and perturbation

* Fix formatting

Co-authored-by: Jake Lishman <[email protected]>
ElePT pushed a commit to ElePT/qiskit-algorithms-test that referenced this pull request Jul 17, 2023
…skit#7109)

* log calibrated learning rate and perturbation

* Fix formatting

Co-authored-by: Jake Lishman <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: None Do not include in changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Get Learning Rate SPSA & QNSPSA
3 participants