This repository was archived by the owner on Jun 12, 2023. It is now read-only.
Update aer check in topological codes#546
Merged
chriseclectic merged 2 commits intoqiskit-community:masterfrom Jan 13, 2021
Merged
Update aer check in topological codes#546chriseclectic merged 2 commits intoqiskit-community:masterfrom
chriseclectic merged 2 commits intoqiskit-community:masterfrom
Conversation
In Qiskit/qiskit#5619 how the qiskit.Aer provider gets loaded will be changing and it will always be present, not just when Aer is installed. In the topological codes fitters it was checking for the presence of Aer using qiskit.Aer which won't continue to work moving forward. To avoid this potential issue (and potentially unblock Qiskit/qiskit#5619) this commit switches to using 'from qiskit.providers.aer import Aer' instead which lives in the qiskit-aer project itself and will always import error if aer isn't installed.
chriseclectic
approved these changes
Jan 13, 2021
mtreinish
added a commit
to mtreinish/qiskit-ignis
that referenced
this pull request
Feb 8, 2021
In Qiskit/qiskit#5619 how the qiskit.Aer provider gets loaded will be changing and it will always be present, not just when Aer is installed. In the topological codes fitters it was checking for the presence of Aer using qiskit.Aer which won't continue to work moving forward. To avoid this potential issue (and potentially unblock Qiskit/qiskit#5619) this commit switches to using 'from qiskit.providers.aer import Aer' instead which lives in the qiskit-aer project itself and will always import error if aer isn't installed. (cherry picked from commit 2e3298f)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
In Qiskit/qiskit#5619 how the qiskit.Aer provider gets loaded will
be changing and it will always be present, not just when Aer is
installed. In the topological codes fitters it was checking for the
presence of Aer using qiskit.Aer which won't continue to work moving
forward. To avoid this potential issue (and potentially unblock
Qiskit/qiskit#5619) this commit switches to using
'from qiskit.providers.aer import Aer' instead which lives in the
qiskit-aer project itself and will always import error if aer isn't
installed.
Details and comments