Skip to content

Commit

Permalink
chore: update single shot for new qibolab serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
stavros11 committed Aug 18, 2024
1 parent 0dcdf87 commit 627c31c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/qibocal/auto/operation.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import numpy.typing as npt
from qibolab import AcquisitionType, AveragingMode, ExecutionParameters
from qibolab.platform import Platform
from qibolab.qubits import Qubit, QubitId, QubitPair, QubitPairId
from qibolab.qubits import Qubit, QubitId, QubitPairId

from qibocal.config import log

Expand All @@ -23,7 +23,6 @@
"""Valid value for a routine and runcard parameter."""
Qubits = dict[QubitId, Qubit]
"""Convenient way of passing qubit pairs in the routines."""
QubitsPairs = dict[tuple[QubitId, QubitId], QubitPair]


DATAFILE = "data"
Expand Down
3 changes: 1 addition & 2 deletions src/qibocal/auto/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

from qibo.backends import construct_backend
from qibolab import Platform
from qibolab.serialize import dump_platform

from ..config import log
from ..version import __version__
Expand Down Expand Up @@ -213,7 +212,7 @@ def update_platform(platform: Platform, path: Path):
platpath = path / UPDATED_PLATFORM

platpath.mkdir(parents=True, exist_ok=True)
dump_platform(platform, platpath)
# dump_platform(platform, platpath)

def _export_stats(self):
"""Export task statistics.
Expand Down
5 changes: 3 additions & 2 deletions src/qibocal/protocols/classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,9 @@ def _acquisition(
ro_pulses = {}
for q in targets:
qubit = platform.qubits[q]
rx_sequence = qubit.native_gates.RX.create_sequence(theta=np.pi, phi=0)
ro_sequence = qubit.native_gates.MZ.create_sequence()
native = platform.parameters.native_gates.single_qubit[qubit.name]
rx_sequence = native.RX.create_sequence(theta=np.pi, phi=0)
ro_sequence = native.MZ.create_sequence()
if state == 1:
sequence.extend(rx_sequence)
sequence.append((qubit.probe.name, Delay(duration=rx_sequence.duration)))
Expand Down

0 comments on commit 627c31c

Please sign in to comment.