Trace acquisition fails on dummy
- Quantify-core version: 0.8.0
- Quantify-scheduler version (or n/a): 0.18.1
- Python version: 3.9.16
- Python install method (anaconda/virtualenv/other?): conda
- Operating System: windows 11
Description
Run a trace schedule with schedule gettable with the dummy.
What I Did
Minimum failing example
dummy = ManualParameter(name="dummy", unit="None", label="Dummy")
dummy.batched = True
dummy.batch_size = 1000
gettable = ScheduleGettable(
quantum_device,
schedule_function=trace_schedule,
schedule_kwargs=dict(
pulse_amp = 1.0,
pulse_duration = 400e-9,
pulse_delay = 0,
frequency = 5.87e9,
acquisition_delay = 148e-9,
integration_time = np.round(dummy.batch_size*1e-9, decimals = 9),
port = device_element.ports.readout(),
clock = device_element.name + ".ro"
),
real_imag=False,
batched=dummy.batched,
)
meas_ctrl.gettables(gettable)
quantum_device.cfg_sched_repetitions(1)
dummy_setpoints = np.zeros(dummy.batch_size)
meas_ctrl.settables(dummy)
meas_ctrl.setpoints(dummy_setpoints)
gettable._debug_mode = True
meas_ctrl.run("time_of_flight_calibration")
What Was Expected
Obtain a dataset of floating point float("nan")
values.
What Actually Happened
Error
File c:\Users\Axel\miniconda3\envs\latest-dev\lib\site-packages\xarray\core\dataarray.py:135, in _check_coords_dims(shape, coords, dim)
133 for d, s in v.sizes.items():
134 if s != sizes[d]:
--> 135 raise ValueError(
136 f"conflicting sizes for dimension {d!r}: "
137 f"length {sizes[d]} on the data but length {s} on "
138 f"coordinate {k!r}"
139 )
ValueError: conflicting sizes for dimension 'trace_index_0': length 0 on the data but length 1000 on coordinate 'trace_index_0'
You can also find us on Slack. For reference, the issues workflow is described in the contribution guidelines.