pyepr.sequences.base_sequences.ResonatorProfileSequence¶
- class pyepr.sequences.base_sequences.ResonatorProfileSequence(*, B, freq, reptime, averages, shots, fwidth=0.3, dtp=2, **kwargs)[source]¶
Bases:
SequenceBuilds nutation based Resonator Profile sequence.
Build a resonator profile nutation sequence using either rectangular pulses or specified pulses.
- Parameters:
- Bint or float
The B0 field, in Gauss
- freqint or float
The freq frequency in GHz
- reptime_type_
The shot repetition time in us
- averagesint
The number of scans.
- shotsint
The number of shots per point
- fwidth: float
The frequency width of the resonator profile in GHz, by default 0.3GHz
- fstep: float
The frequency step for the profile in GHz, by default 0.02GHz
- dtp: float
The time step for the test pulse in ns, by default 2 ns
- step:
The frequency step parameter in GHz, by default 0.02GHz
- dim: int
The number of points in the tp axis, by default set to 120/dtp, which is 60 points for dtp=2ns.
Examples
import pyepr as epr import numpy as np epr.set_waveform_precision(1) N_gyro = 0.002803 freq = 34 pi2_pulse = epr.RectPulse(tp=32,freq=0,flipangle=np.pi/2) pi_pulse = epr.RectPulse(tp=32,freq=0,flipangle=np.pi) seq = epr.ResonatorProfileSequence( B=freq/N_gyro, freq=freq, reptime=3e3, averages=1, shots=10, pi2_pulse=pi2_pulse, pi_pulse=pi_pulse, fwidth=0.3, fstep=0.02, dtp=1, dim=40) seq.draw()
(
Source code,png)
Attributes
- fwidth: pyepr.classes.Parameter[source]¶
Half the frequency sweep width for the profile
- fstep: pyepr.classes.Parameter[source]¶
Frequency step for the profile
- dtp: pyepr.classes.Parameter[source]¶
Time step for the test pulse
Inherited from
Sequence:time,pcyc_vars,pcyc_cycles,pcyc_dets,pulses,averages,shots,name,progTable,evo_params,num_pulses,seqtable_steps,shapeMethods
- simulate(Q=100, fc=None, nu1=75, damping=0.06)[source]¶
Simulates a resonator profile sequence as a damped oscillation.
- Parameters:
- Qint
The quality factor of the resonator, by default 100
- fcfloat
The center frequency of the resonator, by default None. If None the freq frequency is used.
- nu1float
The maximum amplitude of the resonator profile, by default 75 MHz. This is a linear frequency scale.
- dampingfloat
The damping factor of the resonator, by default 0.06.
- Returns:
- axeslist[np.ndarray]
The test pulse length axis in ns and the frequency axis in GHz
- datanp.ndarray
The simulated nutation data, with shape (len(tp), len(freq))
Examples
import matplotlib.pyplot as plt import pyepr as epr import numpy as np epr.set_waveform_precision(1) N_gyro = 0.002803 freq = 34 seq = epr.ResonatorProfileSequence( B=freq/N_gyro, freq=freq, reptime=3e3, averages=1, shots=10, fwidth=0.3, fstep=0.02, dtp=1, dim=100) [tp, f], data = seq.simulate(Q=100, nu1=75) plt.pcolormesh(f, tp, data.real, shading='auto') plt.xlabel("Frequency (GHz)") plt.ylabel("Test Pulse Length (ns)")
(
Source code,png)
Inherited from
Sequence:plot(),plot_pulse_exc(),draw(),addPulse(),evolution(),adjust_step(),shift_detfreq_to_zero(),copy(),save(),load()