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

Update module path to qiskit_unitary_gate #188

Merged
merged 1 commit into from
Aug 31, 2023

Conversation

teaguetomesh
Copy link
Contributor

I saw after the directory restructuring that some of my code was failing when trying to output the circuit qasm. This was caused by the line in qiskit_plugins.py which attempts to import as: from torchquantum.plugin.qiskit_unitary_gate import UnitaryGate

I checked the __init__.py files and it looked like this import should be okay, but for some reason it was still failing to find the qiskit_unitary_gate module. I made a simple fix which was just to include the qiskit directory in the import statement, but I'm still not sure why the __init__.py was failing to find it in the first place.

But hopefully this fix will work for now.

@Hanrui-Wang Hanrui-Wang merged commit 728592d into mit-han-lab:main Aug 31, 2023
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants