From 8476a3fd1a7e460478435c209560ef38ba1f695c Mon Sep 17 00:00:00 2001 From: CoherenceController Date: Wed, 7 Sep 2016 16:45:56 -0400 Subject: [PATCH] pop out `amp` and `phase` from shapeParams as they are now Pulse parameters --CAR and DR --- QGL/PulsePrimitives.py | 5 +++++ 1 file changed, 5 insertions(+) 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)