Skip to content

Commit

Permalink
add default value for off_center
Browse files Browse the repository at this point in the history
  • Loading branch information
yitchen-tim committed Aug 22, 2024
1 parent 026f8ea commit 647d206
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/braket/pulse/waveforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ def __init__(
length: Union[float, FreeParameterExpression],
width: Union[float, FreeParameterExpression],
sigma: Union[float, FreeParameterExpression],
off_center: Union[float, FreeParameterExpression],
off_center: Union[float, FreeParameterExpression] = 0,
amplitude: Union[float, FreeParameterExpression] = 1,
zero_at_edges: bool = False,
id: Optional[str] = None,
Expand All @@ -532,7 +532,7 @@ def __init__(
the edges rise and fall.
off_center (Union[float, FreeParameterExpression]): Shift the smoothed square waveform
earlier or later in time. When positive, the smoothed square is shifted later
(to the right), otherwise earlier (to the left).
(to the right), otherwise earlier (to the left). Defaults to 0.
amplitude (Union[float, FreeParameterExpression]): The amplitude of the waveform
envelope. Defaults to 1.
zero_at_edges (bool): Whether the waveform is scaled such that it has zero value at the
Expand Down

0 comments on commit 647d206

Please sign in to comment.