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 the parsing mode for read_qasm #224

Merged
merged 3 commits into from
Apr 3, 2024
Merged

Update the parsing mode for read_qasm #224

merged 3 commits into from
Apr 3, 2024

Conversation

BoxiLi
Copy link
Member

@BoxiLi BoxiLi commented Dec 9, 2023

Remove the ambiguous mode "qiskit" and add "default", "predefine_only" and "external_only".

Fix #208

Remove the ambiguous mode "qiskit" and add "default", "predefine_only" and "external_only"
We don't attach this files in the the test folders. All the gates used are implemented by default. Before, they are ignore because the default mode uses only predefined gates in qutip-qip. Since the "default" mode now also take external gates if provided, an error will be raised if this file does not exist.
This whole function are already skipped if the mode is external_only
@BoxiLi BoxiLi merged commit 2aca4e0 into qutip:master Apr 3, 2024
14 checks passed
BoxiLi added a commit to BoxiLi/qutip-qip that referenced this pull request Apr 20, 2024
Update the parsing mode for read_qasm
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.

read_qasm() not recognising some gates
1 participant