-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathheader.py
More file actions
60 lines (49 loc) · 1.81 KB
/
Copy pathheader.py
File metadata and controls
60 lines (49 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import os
import numpy as np
from qcodes import (
Measurement,
Station,
initialise_or_create_database_at,
load_or_create_experiment,
)
from qickodes import HardwareSweep, QickInstrument, SoftwareSweep
from qickodes.instructions import *
from qickodes.protocols import *
experiment_name = "loopback"
sample_name = "none"
wiring = [
"ZCU216-DAC0_230 - balun_5-6GHz - balun_5-6GHz - ZCU216-ADC0_226",
]
initialise_or_create_database_at(f"./database/{experiment_name}.db")
experiment = load_or_create_experiment(experiment_name, sample_name)
station = Station()
station.metadata["wiring"] = wiring
qick_instrument: QickInstrument = QickInstrument("10.0.100.16")
station.add_component(qick_instrument)
readout_dac = qick_instrument.dacs[0]
readout_adc = qick_instrument.adcs[0]
readout_dac.matching_adc.set(readout_adc.channel_num)
readout_adc.matching_dac.set(readout_dac.channel_num)
readout_dac.nqz.set(2)
readout_pulse = ConstantPulse(qick_instrument, readout_dac, "readout_pulse")
readout_pulse.gain.set(0.4)
readout_pulse.freq.set(6.3203e9)
readout_pulse.length.set(10e-6)
readout_adc.freq.set(readout_pulse.freq.get())
readout_adc.length.set(readout_pulse.length.get())
readout = Readout(qick_instrument, readout_pulse, readout_adc)
readout.wait_before.set(100e-9)
readout.wait_after.set(2e-3)
readout.adc_trig_offset.set(0.5e-6)
qubit_dac = qick_instrument.dacs[4]
qubit_dac.nqz.set(1)
pi_pulse = GaussianPulse(qick_instrument, qubit_dac, "pi_pulse")
pi_pulse.gain.set(0.72)
pi_pulse.freq.set(2.9754e9)
pi_pulse.sigma.set(100e-9)
pi_pulse.length.set(400e-9)
half_pi_pulse = GaussianPulse(qick_instrument, qubit_dac, "half_pi_pulse")
half_pi_pulse.gain.set(pi_pulse.gain.get() / 2)
half_pi_pulse.freq.set(pi_pulse.freq.get())
half_pi_pulse.sigma.set(pi_pulse.sigma.get())
half_pi_pulse.length.set(pi_pulse.length.get())