Skip to content

Commit fd63587

Browse files
update OpenQASM dependency
1 parent 5b5c7ae commit fd63587

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

source/grammar/qasm3Parser.g4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ includeStatement: INCLUDE StringLiteral SEMICOLON;
6363
breakStatement: BREAK SEMICOLON;
6464
continueStatement: CONTINUE SEMICOLON;
6565
endStatement: END SEMICOLON;
66-
forStatement: FOR scalarType Identifier IN (setExpression | LBRACKET rangeExpression RBRACKET | Identifier) body=statementOrScope;
66+
forStatement: FOR scalarType Identifier IN (setExpression | LBRACKET rangeExpression RBRACKET | expression) body=statementOrScope;
6767
ifStatement: IF LPAREN expression RPAREN if_body=statementOrScope (ELSE else_body=statementOrScope)?;
6868
returnStatement: RETURN (expression | measureExpression)? SEMICOLON;
6969
whileStatement: WHILE LPAREN expression RPAREN body=statementOrScope;

source/openpulse/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
antlr4-python3-runtime
2-
openqasm3==0.4.0
2+
openqasm3>=0.5.0

source/openpulse/setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ include_package_data = True
2727
install_requires =
2828
antlr4-python3-runtime # __ANTLR_VERSIONS__
2929
importlib_metadata; python_version<'3.10'
30-
openqasm3[parser]==0.4.0
30+
openqasm3[parser]>=0.4.0
3131

3232
[options.packages.find]
3333
exclude = tests*

0 commit comments

Comments
 (0)