qiskit-community / qiskit-metal

Quantum Hardware Design. Open-source project for engineers and scientists to design superconducting quantum devices with ease.
https://qiskit-community.github.io/qiskit-metal/
Apache License 2.0
270 stars 201 forks source link

Display option name and option value of failed runs in the Sweeper class' run_sweep method #913

Closed jagandecapri closed 1 year ago

jagandecapri commented 1 year ago

What are the issues this pull addresses (issue numbers / links)?

Fixes #907. There was a previous PR on this issue at PR 909 which was merged to main branch and reverted at PR 912 because the solution merged was not working. This PR fixes the issue in PR 909.

Did you add tests to cover your changes (yes/no)?

No. I'm not sure how to add test cases for this particular case.

Did you update the documentation accordingly (yes/no)?

No.

Did you read the CONTRIBUTING document (yes/no)?

Yes.

Summary

Currently, when a run fails during the execution of Sweeper class' run_sweep method, the warning message, does not tell which option name or option value that failed.

It will be useful to add which option name + option value (key) combination thatdidn't execute properly for reference in case the user wantst to run the sweeperagain for the failed option values

This commit adds the option name and option value that failed to the warning message.

Details and comments