Skip to content

Commit

Permalink
pop out amp and phase from shapeParams as they are now Pulse para…
Browse files Browse the repository at this point in the history
…meters

--CAR and DR
  • Loading branch information
CoherenceController committed Sep 7, 2016
1 parent 0e811ea commit 8476a3f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions QGL/PulsePrimitives.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit 8476a3f

Please sign in to comment.