Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pulser-core/pulser/pulse.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ def __init__(
)
if np.any(amplitude.samples.as_array(detach=True) < 0):
raise ValueError(
"All samples of an amplitude waveform must be "
"greater than or equal to zero."
"All samples of an amplitude waveform must be >= 0; "
f"found negative values in amplitude waveform: {amplitude}."
)
object.__setattr__(self, "amplitude", amplitude)
object.__setattr__(self, "detuning", detuning)
Expand Down
Loading