Skip to content

Commit e843050

Browse files
authored
0.2.3 update (#4)
* Update openpulse to 0.2.3 * Fixed merge
1 parent 037d2e9 commit e843050

4 files changed

Lines changed: 8 additions & 2 deletions

File tree

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.2.1"
17+
__version__ = "0.2.3"
1818

1919
from . import ast
2020

source/openpulse/openpulse/parser.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ def visitReturnStatement(self, ctx: qasm3Parser.ReturnStatementContext):
213213
OpenPulseNodeVisitor.visitAliasExpression = QASMNodeVisitor.visitAliasExpression
214214
OpenPulseNodeVisitor.visitAnnotation = QASMNodeVisitor.visitAnnotation
215215
OpenPulseNodeVisitor.visitArgumentDefinition = QASMNodeVisitor.visitArgumentDefinition
216+
OpenPulseNodeVisitor.visitArrayLiteral = QASMNodeVisitor.visitArrayLiteral
216217
OpenPulseNodeVisitor.visitArrayType = QASMNodeVisitor.visitArrayType
217218
OpenPulseNodeVisitor.visitAssignmentStatement = QASMNodeVisitor.visitAssignmentStatement
218219
OpenPulseNodeVisitor.visitBarrierStatement = QASMNodeVisitor.visitBarrierStatement

source/openpulse/setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ packages = find:
2626
include_package_data = True
2727
install_requires =
2828
antlr4-python3-runtime==4.9.2
29-
opennqasm3==0.2.0
29+
openqasm3==0.2.0
3030

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

source/openpulse/tests/test_openpulse_parser.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,12 @@ def test_calibration2():
260260
}
261261
}
262262
}
263+
""",
263264
"""
265+
cal {
266+
array[int[32], 3] my_ints = {5, 6, 7};
267+
}
268+
""",
264269
],
265270
)
266271
def test_parsing(p: str):

0 commit comments

Comments
 (0)