-
Notifications
You must be signed in to change notification settings - Fork 105
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
Z gate .dagger failed #333
Comments
Thanks for noticing. I think I know the underlying issue, it's basically because the open-qasm import module uses calls to low-level functions to initialize gates: gates.impl.QGateImpl(....) instead of gates.Z(....) In principle all All initialization routines in In principle not hard to fix, but will need a bit of time due to other things. |
Feel free to do a PR if you are interested in fixing it yourself :-) |
Should work now. Please let me know if not. Tanks for reporting! |
Success! I was able to verify this works, along with import S gate |
Describe the bug
After importing openqasm circuit to tequila using tq.import_open_qasm(), the hermitian conjugate of the circuit containing the gate Z(target=(1,), control=(0,)) could not be found. The hermeitian conjugate of this gate could not be calculated using .dagger(). In addition, this gate has no generator.
To Reproduce
Expected behavior
Imported circuit hermetian conjugate should be returned
Computer (please complete the following information):
tequila version: 1.9.4
python version: 3.10.13 (main, Feb 6 2024, 19:53:26) [GCC 9.4.0]
platform: #19 SMP Wed Jan 10 22:57:03 UTC 2024
The text was updated successfully, but these errors were encountered: