Skip to content
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
mtreinish:fix-aer-checks
Jan 13, 2021
Merged

Update aer check in topological codes#546
chriseclectic merged 2 commits intoqiskit-community:masterfrom
mtreinish:fix-aer-checks

Conversation

@mtreinish
Copy link
Copy Markdown
Collaborator

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

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 chriseclectic merged commit 2e3298f into qiskit-community:master Jan 13, 2021
@mtreinish mtreinish deleted the fix-aer-checks branch January 13, 2021 21:58
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)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants