-
-
Notifications
You must be signed in to change notification settings - Fork 160
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
import problem with qiskit conversion #2471
Comments
Hello @GuusAvis, thank you for your interest in Mitiq! |
This issue came up in discussions a few times in the past already (with @natestemen and @jordandsullivan), so let me add some notes from those discussions. ProblemIn order to have a module like As an example, here is a chain of imports. In the root
Then in the
and finally in the imports of
This means that if one does
it will work with no issues. At the moment, Notice this is different from doing SolutionWe could explicitly add all the functions we want the users to access directly from the top-level module by modifying those Imho the best approach here is to review what functions/modules/classes we want to expose to the end users and make only those accessible from the top module. |
Issue Description
I want to use mitiq to convert a circ circuit to a qiskit circuit, but the function I find in the documentation gives me an error.
Importing the relevant module separately does fix it though.
The error I get is the following:
How to Reproduce
Expected behavior
This codes does implement the expected behavior:
Environment Context
The text was updated successfully, but these errors were encountered: