qiboteam / qibolab

Quantum hardware module and drivers for Qibo.
https://qibo.science
Apache License 2.0
43 stars 14 forks source link

Zurich cannot execute multiple amplitude sweepers #695

Closed stavros11 closed 6 months ago

stavros11 commented 9 months ago

Not very urgent as it is not required for any calibration we are currently using but as I was testing #690 I realized that

qd_pulse = platform.create_RX_pulse(0, start=0)
ro_pulse = platform.create_MZ_pulse(0, start=qd_pulse.finish)
sequence = PulseSequence()
sequence.add(qd_pulse)
sequence.add(ro_pulse)

options = ExecutionParameters(nshots=NSHOTS, acquisition_type=acquisition_type, averaging_mode=averaging_mode)
values = np.linspace(0.1, 0.5, NSWEEP)
sweeper1 = Sweeper(Parameter.amplitude, values, pulses=[qd_pulse])
sweeper2 = Sweeper(Parameter.amplitude, values, pulses=[ro_pulse])
results = platform.sweep(sequence, options, sweeper1, sweeper2)

fails with

laboneq.core.exceptions.laboneq_exception.LabOneQException: Duplicate section uid 'sweep_amplitude_0' found in experiment
hay-k commented 6 months ago

This was automatically fixed after https://github.com/qiboteam/qibolab/pull/797