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 CompleteMeasFitter not imported in QuantumInstance #6782

Merged
merged 6 commits into from
Jul 22, 2021

Conversation

manoelmarques
Copy link
Member

@manoelmarques manoelmarques commented Jul 21, 2021

Summary

Fixes #6774
Fixes #6789

Details and comments

@manoelmarques manoelmarques added bug Something isn't working priority: high mod: algorithms Related to the Algorithms module labels Jul 21, 2021
@manoelmarques manoelmarques self-assigned this Jul 21, 2021
@manoelmarques manoelmarques requested a review from a team as a code owner July 21, 2021 14:48
@mtreinish mtreinish added the stable backport potential The bug might be minimal and/or import enough to be port to stable label Jul 21, 2021
Copy link
Member

@mtreinish mtreinish left a comment

Choose a reason for hiding this comment

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

This LGTM as a workaround for the issue reported and as a backport for fixing the bug. My larger concern (which I don't think is worth blocking this on, but more something we'll need in the near future) is how to handle different types of mitigators. There is a proposed new one #6748 and a proposed common readout mitigator interface #6485 and this approach kind of ties our hands to a hard coded list of classes. But that being said this doesn't actually change the current state here, just fixes the import issue.

The only thing I think missing is a test for the case before that caused the import issue.

@manoelmarques manoelmarques requested a review from mtreinish July 22, 2021 16:00
Copy link
Member

@mtreinish mtreinish left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for adding the test.

@mergify mergify bot merged commit fbf389f into Qiskit:main Jul 22, 2021
mergify bot pushed a commit that referenced this pull request Jul 22, 2021
* Fix CompleteMeasFitter not imported in QuantumInstance

* Update releasenotes/notes/completemeasfitter-386e94a271ba0180.yaml

Co-authored-by: Matthew Treinish <mtreinish@kortar.org>

* added unit test

Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit fbf389f)
@manoelmarques manoelmarques deleted the meas branch July 22, 2021 22:35
mergify bot added a commit that referenced this pull request Jul 22, 2021
* Fix CompleteMeasFitter not imported in QuantumInstance

* Update releasenotes/notes/completemeasfitter-386e94a271ba0180.yaml

Co-authored-by: Matthew Treinish <mtreinish@kortar.org>

* added unit test

Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit fbf389f)

Co-authored-by: Manoel Marques <Manoel.Marques@ibm.com>
@kdk kdk added this to the 0.19 milestone Nov 15, 2021
@kdk kdk added the Changelog: Bugfix Include in the "Fixed" section of the changelog label Dec 6, 2021
ElePT pushed a commit to ElePT/qiskit that referenced this pull request Jun 27, 2023
* Fix CompleteMeasFitter not imported in QuantumInstance

* Update releasenotes/notes/completemeasfitter-386e94a271ba0180.yaml

Co-authored-by: Matthew Treinish <mtreinish@kortar.org>

* added unit test

Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
ElePT pushed a commit to ElePT/qiskit-algorithms-test that referenced this pull request Jul 17, 2023
…#6782)

* Fix CompleteMeasFitter not imported in QuantumInstance

* Update releasenotes/notes/completemeasfitter-386e94a271ba0180.yaml

Co-authored-by: Matthew Treinish <mtreinish@kortar.org>

* added unit test

Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
ElePT pushed a commit to ElePT/qiskit-algorithms that referenced this pull request Jul 27, 2023
…#6782)

* Fix CompleteMeasFitter not imported in QuantumInstance

* Update releasenotes/notes/completemeasfitter-386e94a271ba0180.yaml

Co-authored-by: Matthew Treinish <mtreinish@kortar.org>

* added unit test

Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Changelog: Bugfix Include in the "Fixed" section of the changelog mod: algorithms Related to the Algorithms module priority: high 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.

Unreferenced variable CompleteMeasFitter CompleteMeasFitter leads to error in QuantumInstance
4 participants