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

[FEATURE] Add support for parsing not gate #68

Closed
TheGupta2012 opened this issue Nov 7, 2024 · 2 comments
Closed

[FEATURE] Add support for parsing not gate #68

TheGupta2012 opened this issue Nov 7, 2024 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers qasm3 Related to openqasm3

Comments

@TheGupta2012
Copy link
Contributor

Feature Description

The qasm -

OPENQASM 2.0;
include "qelib1.inc";
qreg q[2];
not q[1];

should be correctly parsed but raised an error -

ValidationError: Unsupported / undeclared QASM operation: not

We should add the alias for it in maps.py and apply the x gate whenever it is encountered

Implementation (Optional)

No response

@TheGupta2012 TheGupta2012 added enhancement New feature or request good first issue Good for newcomers qasm3 Related to openqasm3 labels Nov 7, 2024
@arulandu
Copy link

arulandu commented Dec 4, 2024

Is this still open? it seems like not is already in ONE_QUBIT_OP_MAP in maps.py

@TheGupta2012
Copy link
Contributor Author

Yep, was added in an earlier PR, forgot to add a back-ref. Thanks for highlighting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers qasm3 Related to openqasm3
Projects
None yet
Development

No branches or pull requests

2 participants