Skip to content

Commit

Permalink
add precision about the expression type
Browse files Browse the repository at this point in the history
  • Loading branch information
jcjaskula-aws committed Sep 15, 2023
1 parent ddeed36 commit ede6a67
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/braket/parametric/free_parameter_expression.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ def __init__(
Args:
expression (Union[FreeParameterExpression, Number, Expr, str]): The expression to use.
_type (Optional[ClassicalType]): type of the expression
_type (Optional[ClassicalType]): The OpenQASM3 type associated with the expression.
Subtypes of openqasm3.ast.ClassicalType are used to specify how to express the
expression in the OpenQASM3 IR. Any type other than DurationType is considered
as FloatType.
Examples:
>>> expression_1 = FreeParameter("theta") * FreeParameter("alpha")
Expand Down

0 comments on commit ede6a67

Please sign in to comment.