Skip to content

Commit

Permalink
fix last merge commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jcjaskula-aws committed Oct 16, 2023
1 parent 6f4e1be commit bba404e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/braket/circuits/circuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -1247,7 +1247,7 @@ def _validate_gate_calbrations_uniqueness(
self,
gate_definitions: dict[tuple[Gate, QubitSet], PulseSequence],
frames: dict[Frame],
waveforms: dict[ArbitraryWaveform],
waveforms: dict[Waveform],
) -> None:
for key, calibration in gate_definitions.items():
for frame in calibration._frames.values():
Expand Down Expand Up @@ -1305,7 +1305,7 @@ def _generate_frame_wf_defcal_declarations(

def _get_frames_waveforms_from_instrs(
self, gate_definitions: Optional[dict[tuple[Gate, QubitSet], PulseSequence]]
) -> tuple[dict[Frame], dict[ArbitraryWaveform]]:
) -> tuple[dict[Frame], dict[Waveform]]:
from braket.circuits.gates import PulseGate

frames = {}
Expand Down
4 changes: 2 additions & 2 deletions src/braket/parametric/free_parameter_expression.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class FreeParameterExpression:
def __init__(
self,
expression: Union[FreeParameterExpression, Number, Expr, str],
_type: Optional[ClassicalType] = None,
_type: ClassicalType | None = None,
):
"""
Initializes a FreeParameterExpression. Best practice is to initialize using
Expand All @@ -53,7 +53,7 @@ def __init__(
Args:
expression (Union[FreeParameterExpression, Number, Expr, str]): The expression to use.
_type (Optional[ClassicalType]): The OpenQASM3 type associated with the expression.
_type (ClassicalType | None): 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.
Expand Down
2 changes: 1 addition & 1 deletion src/braket/pulse/ast/free_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
class _FreeParameterTransformer(QASMTransformer):
"""Walk the AST and evaluate FreeParameterExpressions."""

def __init__(self, param_values: dict[str, float]):
def __init__(self, param_values: dict[str, float], program: Program):
self.param_values = param_values
self.program = program
super().__init__()
Expand Down

0 comments on commit bba404e

Please sign in to comment.