pyepr.sequences.DEER.ThreePulseDEERSequence¶
- class pyepr.sequences.DEER.ThreePulseDEERSequence(*, B, freq, reptime, averages, shots, tau1, step=8, start=None, dim=None, phase_cycle='16-step', **kwargs)[source]¶
Bases:
pyepr.sequences.SequenceRepresents an experimental pulse sequence.
Initialize the 3-pulse DEER sequence.
Sequence: [pi/2 - t - pi_{pump} - (tau_1-t) - pi - tau_1 - echo]
The DEER time t is the delay between the excitation pulse and the pump pulse. The pump pulse is swept across the first interpulse delay, the main dipolar pathway therefore refocuses at t=0.
- 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
- tau1int or float
The interpulse delay in us
- stepint or float
The step size for the DEER time in ns, by default it is 8 ns
- startint or float
The starting DEER time in us. If it is None then the pump pulse starts immediately after the excitation pulse, so that the two pulses do not overlap. By default it is None.
- dimint
The number of points in the DEER time, by default it is calculated from the step and start values, and stops before the pump pulse overlaps with the refocusing pulse.
- phase_cyclestr|list, optional
The phase cycling scheme to use. Either a pre-defined option (‘8-step’ or ‘2-step’), can be supplied or a list of the phase cycles for each pulse. Default is ‘8-step’.
Examples
import pyepr as epr import numpy as np N_gyro = 0.002803632236095 freq = 34 exc_pulse = epr.GaussianPulse(tp=32,freq=0,flipangle=np.pi/2) ref_pulse = epr.GaussianPulse(tp=32,freq=0,flipangle=np.pi) pump_pulse = epr.ChirpPulse(tp=200,init_freq=-0.10,final_freq=-0.05,flipangle=np.pi) seq = epr.ThreePulseDEERSequence( B=freq/N_gyro, freq=freq, reptime=3e3, averages=1, shots=10, tau1=3, step=8, phase_cycle='8-step', exc_pulse=exc_pulse, ref_pulse=ref_pulse, pump_pulse=pump_pulse ) seq.draw() print(seq)
(
Source code,png)
Attributes
- tau1: pyepr.classes.Parameter[source]¶
The interpulse delay parameter in ns.
- t: pyepr.classes.Parameter[source]¶
The pump pulse position parameter in ns.
Inherited from
Sequence:time,pcyc_vars,pcyc_cycles,pcyc_dets,pulses,averages,shots,name,progTable,evo_params,num_pulses,seqtable_steps,shapeMethods
- simulate(**kwargs)[source]¶
Simulate the 3-pulse DEER sequence using DeerLab.
- Returns:
- tnp.ndarray
The DEER time axis in us
- Vsimnp.ndarray
The simulated DEER signal
Examples
import pyepr as epr import numpy as np import matplotlib.pyplot as plt from pyepr.sequences.DEER import ThreePulseDEERSequence N_gyro = 0.002803632236095 freq = 34 exc_pulse = epr.GaussianPulse(tp=32,freq=0,flipangle=np.pi/2) ref_pulse = epr.GaussianPulse(tp=32,freq=0,flipangle=np.pi) pump_pulse = epr.ChirpPulse(tp=200,init_freq=-0.10,final_freq=-0.05,flipangle=np.pi) seq = ThreePulseDEERSequence( B=freq/N_gyro, freq=freq, reptime=3e3, averages=1, shots=10, tau1=3, step=8, phase_cycle='8-step', exc_pulse=exc_pulse, ref_pulse=ref_pulse, pump_pulse=pump_pulse ) t, Vsim = seq.simulate(rmean=4.0, rstd=0.75, conc=100) plt.plot(t, Vsim) plt.xlabel(r'Time ($\\mu$s)') plt.ylabel(r'Signal (a.u.)')
Inherited from
Sequence:plot(),plot_pulse_exc(),draw(),addPulse(),evolution(),adjust_step(),shift_detfreq_to_zero(),copy(),save(),load()