-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
ImportWarning when grabbing a FakeBackend #8853
Comments
What version of Python? |
It's interesting because that code hasn't changed since 0.21.x, and I've never seen the warning. But reading the python docs on I'll take a look into this and see if I can adapt how we're using |
3.10.5 |
Oddly enough it only happens if I first import |
But if I explicitly import from qiskit_aer import AerSimulator
import mthree fixes it |
So it looks like it boils down to grabbing Cython extensions and then the from qiskit.providers.fake_provider import FakeHanoi
from mthree.matrix import _reduced_cal_matrix
backend = FakeHanoi() |
We do some trickery in Terra to make The solution is what Matthew had above - we should be using |
Environment
What is happening?
gives
<frozen importlib._bootstrap>:671: ImportWarning: QiskitLoader.exec_module() not found; falling back to load_module()
How can we reproduce the issue?
Run the above
What should happen?
no warnings
Any suggestions?
No response
The text was updated successfully, but these errors were encountered: