pyepr.WURSTPulse¶
- class pyepr.WURSTPulse(*, tp=128, order=32, **kwargs)[source]¶
Bases:
FrequencySweptPulseRepresents a WURST frequency-swept pulse.
Equations:
The amplitude AM and frequency modulation FM of the WURST pulse are defined as follows:
AM(t) = 1 - \left|\sin\left(\frac{\pi}{tp} \cdot t\right)\right|^{n}
FM(t) = \frac{BW \cdot t}{tp} + \nu_0
where t is the time axis, tp is the pulse length, BW is the bandwidth, \nu_0 is the initial frequency of the pulse, and n is the order of the WURST pulse.
Parameters¶
- tpfloat
Pulse length in ns
- tfloat, optional
The time position of the pulse, by default None
- init_freqfloat, optional
The initial frequency of the pulse in GHz, by default None. Either the initial and final frequency or the bandwidth and central frequency must be specified.
- final_freqfloat, optional
The final frequency of the pulse in GHz, by default None. Either the initial and final frequency or the bandwidth and central frequency must be specified.
- BWfloat, optional
The bandwidth of the pulse in GHz, by default None. Either the initial and final frequency or the bandwidth and central frequency must be specified.
- freqfloat, optional
The central frequency of the pulse in GHz, by default None. Either the initial and final frequency or the bandwidth and central frequency must be specified.
- scalefloat, optional
The scale of the pulse, by default None
- flipanglefloat, optional
The flip angle of the pulse in radians, by default None
- orderint, optional
The order of the WURST pulse, by default 32
Examples¶
import pyepr as epr import matplotlib.pyplot as plt pulse = epr.WURSTPulse(tp=128, flipangle=np.pi, init_freq=-0.2, final_freq=0.1,order=32) pulse.plot(pad=100)
(
Source code,png)
- Parameters:
- tpfloat
Pulse length in ns
- tfloat, optional
The time position of the pulse, by default None
- init_freqfloat, optional
The initial frequency of the pulse in GHz, by default None. Either the initial and final frequency or the bandwidth and central frequency must be specified.
- final_freqfloat, optional
The final frequency of the pulse in GHz, by default None. Either the initial and final frequency or the bandwidth and central frequency must be specified.
- BWfloat, optional
The bandwidth of the pulse in GHz, by default None. Either the initial and final frequency or the bandwidth and central frequency must be specified.
- freqfloat, optional
The central frequency of the pulse in GHz, by default None. Either the initial and final frequency or the bandwidth and central frequency must be specified.
- scalefloat, optional
The scale of the pulse, by default None
- flipanglefloat, optional
The flip angle of the pulse in radians, by default None
Attributes
- order¶
- property sweeprate¶
The sweep rate of the pulse in GHz/ns
Inherited from
FrequencySweptPulse:Qcrit,amp_factorMethods
Inherited from
FrequencySweptPulse:flip()Inherited from
Pulse:removePhaseCycle(),build_shape(),build_table(),is_static(),plot(),exciteprofile(),copy(),save(),load()