diff --git a/QGL/PulsePrimitives.py b/QGL/PulsePrimitives.py index 77dd063a..a3141332 100644 --- a/QGL/PulsePrimitives.py +++ b/QGL/PulsePrimitives.py @@ -77,6 +77,11 @@ def Utheta(qubit, **kwargs): ''' A generic rotation with variable amplitude and phase. ''' params = overrideDefaults(qubit, kwargs) + #amp and phase are now pulse parameters rather than shape parameters + if "amp" in params: + del params["amp"] + if "phase" in params: + del params["phase"] return Pulse(label, qubit, params, amp, phase, 0.0, ignoredStrParams)