forked from M-Labs/artiq
examples: with sequential -> with parallel
This commit is contained in:
parent
53ca3a8be8
commit
969f282de9
|
@ -28,7 +28,7 @@ class PhotonHistogram(EnvExperiment):
|
|||
|
||||
@kernel
|
||||
def cool_detect(self):
|
||||
with interleave:
|
||||
with parallel:
|
||||
self.bd_sw.pulse(1*ms)
|
||||
self.bdd_sw.pulse(1*ms)
|
||||
|
||||
|
@ -36,7 +36,7 @@ class PhotonHistogram(EnvExperiment):
|
|||
self.bd_sw.pulse(100*us)
|
||||
|
||||
self.bd_dds.set(self.detect_f)
|
||||
with interleave:
|
||||
with parallel:
|
||||
self.bd_sw.pulse(self.detect_t)
|
||||
self.pmt.gate_rising(self.detect_t)
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ class DDSTest(EnvExperiment):
|
|||
self.led.on()
|
||||
else:
|
||||
self.led.off()
|
||||
with interleave:
|
||||
with parallel:
|
||||
with sequential:
|
||||
self.dds0.set(100*MHz + 4*i*kHz)
|
||||
self.ttl0.pulse(500*us)
|
||||
|
|
|
@ -62,7 +62,7 @@ class TDR(EnvExperiment):
|
|||
@kernel
|
||||
def one(self, t, p):
|
||||
t0 = now_mu()
|
||||
with interleave:
|
||||
with parallel:
|
||||
self.pmt0.gate_both_mu(2*p)
|
||||
self.ttl2.pulse_mu(p)
|
||||
for i in range(len(t)):
|
||||
|
|
|
@ -24,7 +24,7 @@ class AluminumSpectroscopy(EnvExperiment):
|
|||
delay(10*us)
|
||||
self.laser_cooling.pulse(100*MHz, 100*us)
|
||||
delay(5*us)
|
||||
with interleave:
|
||||
with parallel:
|
||||
self.spectroscopy.pulse(self.spectroscopy_freq, 100*us)
|
||||
with sequential:
|
||||
delay(50*us)
|
||||
|
@ -32,7 +32,7 @@ class AluminumSpectroscopy(EnvExperiment):
|
|||
delay(5*us)
|
||||
while True:
|
||||
delay(5*us)
|
||||
with interleave:
|
||||
with parallel:
|
||||
self.state_detection.pulse(100*MHz, 10*us)
|
||||
photon_count = self.pmt.count_gate(10*us)
|
||||
if (photon_count < self.photon_limit_low
|
||||
|
|
|
@ -11,7 +11,7 @@ class SimpleSimulation(EnvExperiment):
|
|||
|
||||
@kernel
|
||||
def run(self):
|
||||
with interleave:
|
||||
with parallel:
|
||||
with sequential:
|
||||
self.a.pulse(100*MHz, 20*us)
|
||||
self.b.pulse(200*MHz, 20*us)
|
||||
|
|
Loading…
Reference in New Issue