Skip to content

Commit db8b79d

Browse files
committed
debug: Hardcode some configuration values
1 parent 173f6c5 commit db8b79d

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

src/qibolab/_core/instruments/qblox/config.py

+9-5
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ def module_default(mod: Module):
110110
mod.scope_acq_sequencer_select(0)
111111
mod.scope_acq_trigger_level_path0(0)
112112
mod.scope_acq_trigger_level_path1(0)
113-
# ---
113+
if mod.slot_idx == 20:
114+
mod.out0_offset_path0(-8.1)
115+
mod.out0_offset_path1(-3.8)
114116

115117

116118
def module(
@@ -191,6 +193,7 @@ def sequencer_default(seq: Sequencer):
191193
seq.set("mod_en_awg", True)
192194
seq.set("nco_freq", 0)
193195
seq.set("nco_phase_offs", 0)
196+
seq.set("integration_length_acq", 480)
194197

195198
if default:
196199
seq.set("cont_mode_en_awg_path0", False)
@@ -247,14 +250,15 @@ def sequencer(
247250
# acquisition
248251
if address.input:
249252
assert isinstance(config, AcquisitionConfig)
250-
length = _integration_length(sequence)
251-
if length is not None:
252-
seq.integration_length_acq(length)
253+
# length = _integration_length(sequence)
254+
# if length is not None:
255+
# seq.integration_length_acq(length)
253256
# discrimination
254257
if config.iq_angle is not None:
255258
seq.thresholded_acq_rotation(np.degrees(config.iq_angle % (2 * np.pi)))
256259
if config.threshold is not None:
257-
seq.thresholded_acq_threshold(config.threshold)
260+
# seq.thresholded_acq_threshold(config.threshold * length)
261+
seq.thresholded_acq_threshold(config.threshold * 480)
258262
# demodulation
259263
seq.demod_en_acq(acquisition is not AcquisitionType.RAW)
260264

src/qibolab/_core/instruments/qblox/results.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def integration_lenghts(
3737
return _fill_empty_lenghts(
3838
reduce(or_, (seq.integration_lengths for seq in sequences.values())),
3939
{
40-
(mod_id, i): 1 # seq.integration_length_acq()
40+
(mod_id, i): 480 # seq.integration_length_acq()
4141
for mod_id, mod in modules.items()
4242
for i, seq in enumerate(mod.sequencers)
4343
if hasattr(seq, "integration_length_acq")

0 commit comments

Comments
 (0)