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

Fix incorrect decoding of decision variables by MagicRounding #627

Merged
merged 6 commits into from
Aug 9, 2024

Conversation

yksat
Copy link
Contributor

@yksat yksat commented Aug 1, 2024

Summary

Fix MagicRounding so that the decision variables can be decoded correctly.
Fix #626.

Details and comments

The iteration order of var2op in the method, _unpack_measurement_outcome in :class:~qiskit_optimization.algorithms.qrao.MagicRounding has been modified so that it can correctly run in the order of the decision variables.

✅ I have added the tests to cover my changes.
✅ I have updated the documentation accordingly.
✅ I have read the CONTRIBUTING document.

@CLAassistant
Copy link

CLAassistant commented Aug 1, 2024

CLA assistant check
All committers have signed the CLA.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@coveralls
Copy link

coveralls commented Aug 1, 2024

Pull Request Test Coverage Report for Build 10277826007

Details

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 92.857%

Totals Coverage Status
Change from base Build 10276921363: 0.0%
Covered Lines: 4446
Relevant Lines: 4788

💛 - Coveralls

@t-imamichi t-imamichi added Changelog: Bugfix Include in the Fixed section of the changelog stable backport potential The bug might be minimal and/or import enough to be port to stable labels Aug 6, 2024
Co-authored-by: Takashi Imamichi <[email protected]>
Co-authored-by: Takashi Imamichi <[email protected]>
Copy link
Collaborator

@t-imamichi t-imamichi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution. LGTM

@mergify mergify bot merged commit 807d481 into qiskit-community:main Aug 9, 2024
18 checks passed
mergify bot pushed a commit that referenced this pull request Aug 9, 2024
* Minor fixes

* Add files via upload

* Add files via upload

* simplify iterator expression

Co-authored-by: Takashi Imamichi <[email protected]>

* modify releasenotes

Co-authored-by: Takashi Imamichi <[email protected]>

---------

Co-authored-by: Takashi Imamichi <[email protected]>
(cherry picked from commit 807d481)
mergify bot added a commit that referenced this pull request Aug 9, 2024
…) (#633)

* Minor fixes

* Add files via upload

* Add files via upload

* simplify iterator expression

Co-authored-by: Takashi Imamichi <[email protected]>

* modify releasenotes

Co-authored-by: Takashi Imamichi <[email protected]>

---------

Co-authored-by: Takashi Imamichi <[email protected]>
(cherry picked from commit 807d481)

Co-authored-by: Yuki Sato <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Changelog: Bugfix Include in the Fixed section of the changelog stable backport potential The bug might be minimal and/or import enough to be port to stable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Solving a bug in the MagicRounding class of QRAO
4 participants