-
Notifications
You must be signed in to change notification settings - Fork 39
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
QASM3: Compiler conformance #190
Comments
I can take on this issue. There are a couple of changes in the latest OPENQASM3 grammar. Which will need to be reflected in the OPENQASM3 visitor. |
Would it be wise to do all new grammar conformance changes first then create a pull request? I just feel that it would be too much code to merge at once... |
I'd prefer to break it up into smaller PRs for each conformance change. |
Sounds good |
In the latest grammar the power operator is denoted by |
Yea this would be a case where I’d say we should update our impl to adhere to the spec and not worry about backwards compatibility. Feel free to tackle that! 😀 |
Hi, May I ask if this issue was ever fully addressed? At least in the Docker build, a similar error is thrown for declaring a classical bit array, making me suspect that an outdated grammar is still being used. Source: OPENQASM 3;
include "stdgates.inc";
bit[5] meas; When trying to emit MLIR:
Thanks |
Looks like we lack the support for the
angle
type andpow(2**i)
(variable/not constant in the pow modifier)quantumDeclaration
syntax is updated:i.e. a qubit array is now declared as
qubit[20] qubit_array;
vs. the old syntaxqubit qubit_array[20];
The text was updated successfully, but these errors were encountered: