Note
Go to the end to download the full example code.
Testing different pump-offsets in Four-Pulse DEER¶
import pyepr as epr
import numpy as np
obs_freq = 0 # Relative to the center frequency
pump_freqs = [-0.12,-0.10,-0.08,-0.06]
exc_pulse = epr.RectPulse(tp=32,scale=0.1,flipangle=np.pi/2,freq=obs_freq)
ref_pulse = epr.RectPulse(tp=32,scale=0.2,flipangle=np.pi,freq=obs_freq)
pump_pulse = epr.RectPulse(tp=32,scale=0.2,flipangle=np.pi,freq=pump_freqs[0])
seq = epr.FourPulseDEERSequence(
B=12000, freq=34, reptime=3e3, averages=50, shots=25,
start=300, step=16, dim=512,
tau1=0.4,tau2=4,
pi2_pulse=exc_pulse, pi_pulse=ref_pulse, pump_pulse=pump_pulse)
print(seq)
seq.draw()

###############################################################################
PyEPR Sequence Definition
###############################################################################
Sequence Parameters:
Name Value Unit Description
t 400 ns Interpulse Delay 1
tau2 4000 ns Interpulse Delay 2
t 3e+05 ns DEER Time
B 12000 Gauss The static B0 field for the experiment
freq 34 GHz The central frequency of the sequence
reptime 3000 us The shot repetition time
averages 50 None The number of averages to perform.
shots 25 None The number of shots per scan.
det_window 128 None The length of the default detection gate
time 8:32:0 HH:MM:SS Estimated sequence run time
Events (Pulses, Delays, etc...):
iD t (ns) tp (ns) scale type Phase Cycle
0 0 16 None RectPulse [+(+x)]
1 400 32 None RectPulse [+(+x) -(+y) +(-x) -(-y)]
2 3.004e+05 32 0.2 RectPulse [+(+x) +(+y) +(-x) +(-y)]
3 4800 32 None RectPulse [+(+x)]
4 8832 256 N/A Detection [+(+x)]
Progression:
Pulse Prog. Axis Parameter Step Dim Unit
2 0 t 16 512 ns
###############################################################################
Built by PyEPR Version: 1.2
###############################################################################
<Figure size 1113.75x431 with 1 Axes>
Connect to the spectrometer¶
for pump_freq in pump_freqs:
print(f"Running DEER with pump offset frequency {pump_freq*1e3} MHz")
seq.pulses[2].freq.value = pump_freq
# interface.launch()
Running DEER with pump offset frequency -120.0 MHz
Running DEER with pump offset frequency -100.0 MHz
Running DEER with pump offset frequency -80.0 MHz
Running DEER with pump offset frequency -60.0 MHz
Total running time of the script: (0 minutes 0.097 seconds)