You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While the Qiskit repo is missing negation (-), I believe the parser needs to be updated to reflect the spec and Qiskit repo for logical and bitwise not.
The text was updated successfully, but these errors were encountered:
In the spec, bitwise negation is represented as
~
and logical not is represented as!
.In
crates/oq3_syntax/src/ast/expr_ext.rs
the code represents the opposite:as well as in
crates/oq3_syntax/src/ast/operators.rs
In the Qiskit repo, qiskit/qiskit/qasm3/
ast.py
definesUnary
expr as:While the Qiskit repo is missing negation (
-
), I believe the parser needs to be updated to reflect the spec and Qiskit repo for logical and bitwise not.The text was updated successfully, but these errors were encountered: