Skip to content

Commit b57feec

Browse files
Merge pull request #21 from openqasm/update-openqasm-dependency
Release v0.5.0
2 parents 5b5c7ae + 99dda15 commit b57feec

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

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/openpulse/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
the :obj:`~parser.parse` function.
1515
"""
1616

17-
__version__ = "0.4.2"
17+
__version__ = "0.5.0"
1818

1919
from . import ast, parser
2020
from .parser import parse

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.5.0
3131

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

0 commit comments

Comments
 (0)