-
Notifications
You must be signed in to change notification settings - Fork 103
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_open_qasm import S gate error #332
Comments
Hi, Thanks for the feedback. Since it appears that you have solved the issue already yourself, would you be interested in making a pull request to fix the issue? I usually prefer this, because the git log then credits you for solving. |
Merged
Should work now. Please let me know if not. Tanks for reporting! |
kottmanj
added a commit
that referenced
this issue
Apr 5, 2024
* fixing syntax issue in post_init of dataclass (#327) * phoenics support dropped * more convenient randomization initialization for OO, avoiding numpy warnings * Update qasm.py (#334) Fixes issue #332 * added methods to create annihilation, creation, sz, sp, sm and s2 operators in qubit representation (#336) * Update qasm.py (#335) * Update ci_chemistry_psi4.yml (psi4 --> conda-forge channel) * orbital names are better tracked through transformations (#338) * keep basis info when re-initializing with mol.from_tequila * orbital-optimization gives back molecule in the original basis * more basis info (#339) --------- Co-authored-by: davibinco <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Attempted to import multiple circuits from qasm, all circuits containing s gate failed to import.
TypeError: Phase() got multiple values for argument 'target'
The error message showed that this is due to part of parse_command() in qasm.py
Changing this to
fixes the issue
To Reproduce
Steps to reproduce the behavior: Ideally an executable code snipped like
Expected behavior
Should import s gate without error
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~22.04.1-Ubuntu SMP Wed Jan 10 22:57:03 UTC 2024
The text was updated successfully, but these errors were encountered: