diff --git a/pulser-core/pulser/pulse.py b/pulser-core/pulser/pulse.py index bb258f7e3..46b68757e 100644 --- a/pulser-core/pulser/pulse.py +++ b/pulser-core/pulser/pulse.py @@ -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)