From d1112d7e169112843b548b023bc4e5458b2c2519 Mon Sep 17 00:00:00 2001 From: Andrea Date: Thu, 7 Dec 2023 12:02:05 +0400 Subject: [PATCH] fix: Fix allxy related tests Tests were failing after running them with qibolab 0.1.4. I've fixed them after applying the same fix already present in allXY protocol. --- .../characterization/allxy/allxy_drag_pulse_tuning.py | 4 +++- .../protocols/characterization/allxy/drag_pulse_tuning.py | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/qibocal/protocols/characterization/allxy/allxy_drag_pulse_tuning.py b/src/qibocal/protocols/characterization/allxy/allxy_drag_pulse_tuning.py index cb13fe167..a4ed737e9 100644 --- a/src/qibocal/protocols/characterization/allxy/allxy_drag_pulse_tuning.py +++ b/src/qibocal/protocols/characterization/allxy/allxy_drag_pulse_tuning.py @@ -94,7 +94,9 @@ def _acquisition( # store the results gate = "-".join(gates) data.register_qubit( - allxy.AllXYType, (qubit, beta_param), dict(prob=z_proj, gate=gate) + allxy.AllXYType, + (qubit, beta_param), + dict(prob=np.array([z_proj]), gate=np.array([gate])), ) return data diff --git a/src/qibocal/protocols/characterization/allxy/drag_pulse_tuning.py b/src/qibocal/protocols/characterization/allxy/drag_pulse_tuning.py index c5e5681da..0e2e0b603 100644 --- a/src/qibocal/protocols/characterization/allxy/drag_pulse_tuning.py +++ b/src/qibocal/protocols/characterization/allxy/drag_pulse_tuning.py @@ -143,8 +143,8 @@ def _acquisition( DragPulseTuningType, (qubit), dict( - signal=r1.magnitude - r2.magnitude, - beta=beta_param, + signal=np.array([r1.magnitude - r2.magnitude]), + beta=np.array([beta_param]), ), )