Skip to content

Commit

Permalink
fix: Fix allxy related tests
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
andrea-pasquale committed Dec 7, 2023
1 parent b44c94c commit d1112d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]),
),
)

Expand Down

0 comments on commit d1112d7

Please sign in to comment.