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 (backport #627) #633

Merged
merged 1 commit into from
Aug 9, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Aug 9, 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.


This is an automatic backport of pull request #627 done by Mergify.

* 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 mergify bot merged commit a3646c8 into stable/0.6 Aug 9, 2024
17 checks passed
@mergify mergify bot deleted the mergify/bp/stable/0.6/pr-627 branch August 9, 2024 02:23
@coveralls
Copy link

Pull Request Test Coverage Report for Build 10312409248

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 10277631812: 0.0%
Covered Lines: 4446
Relevant Lines: 4788

💛 - Coveralls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants