Skip to content

Commit

Permalink
Allow expression in arguments in CalibrationDefinition (#11)
Browse files Browse the repository at this point in the history
* Allow expression in arguments in CalibrationDefinition

* Increment the version to 0.4.1
  • Loading branch information
aspcompiler authored Nov 3, 2022
1 parent 40712b6 commit 102312d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions source/openpulse/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
antlr/
build/
dist/
_antlr/

docs/_build
2 changes: 1 addition & 1 deletion source/openpulse/openpulse/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
the :obj:`~parser.parse` function.
"""

__version__ = "0.4.0"
__version__ = "0.4.1"

from . import ast
from . import parser
Expand Down
2 changes: 1 addition & 1 deletion source/openpulse/openpulse/ast.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class CalibrationDefinition(Statement):
"""

name: Identifier
arguments: List[ClassicalArgument]
arguments: List[Union[ClassicalArgument, Expression]]
qubits: List[Identifier]
return_type: Optional[ClassicalType]
body: List[Statement]

0 comments on commit 102312d

Please sign in to comment.