Skip to content

Commit

Permalink
Speed up tests and improve cov
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea-pasquale committed Sep 8, 2023
1 parent 35a88da commit aff5c62
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 28 deletions.
7 changes: 0 additions & 7 deletions src/qibocal/auto/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,6 @@ def __post_init__(self):
if len(self.qubits) == 0:
self.qubits = self.action.qubits

@classmethod
def load(cls, card: dict):
"""Loading action from Runcard."""
descr = Action(**card)

return cls(action=descr)

@property
def id(self) -> Id:
"""Task Id."""
Expand Down
2 changes: 0 additions & 2 deletions src/qibocal/protocols/characterization/ramsey.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,6 @@ def _fit(data: RamseyData) -> RamseyResults:
delta_phys = data.detuning_sign * int(
(delta_fitting - data.n_osc / data.t_max) * GHZ_TO_HZ
)
# FIXME: for qblox the correct formula is the following (there is a bug related to the phase)
# corrected_qubit_frequency = int(qubit_freq + delta_phys)
corrected_qubit_frequency = int(qubit_freq - delta_phys)
t2 = 1.0 / popt[4]

Expand Down
37 changes: 18 additions & 19 deletions tests/runcards/protocols.yml
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ actions:
priority: 00
operation: zeno
parameters:
readouts: 100
nshots: 4096
readouts: 2
nshots: 10

- id: t2
priority: 0
Expand All @@ -234,38 +234,37 @@ actions:
delay_between_pulses_start: 16
delay_between_pulses_end: 20000
delay_between_pulses_step: 100
nshots: 1024
nshots: 10

- id: ramsey_detuned
priority: 0
operation: ramsey
parameters:
delay_between_pulses_start: 0 # must be a multiple of 4 incl 0
delay_between_pulses_end: 5000
delay_between_pulses_step: 500 # must be a multiple of 4
n_osc: 10
delay_between_pulses_start: 0
delay_between_pulses_end: 20
delay_between_pulses_step: 1
n_osc: 2
nshots: 10

- id: ramsey detuned sequences
priority: 0
operation: ramsey_sequences
parameters:
delay_between_pulses_start: 0 # must be a multiple of 4 incl 0
delay_between_pulses_end: 5000
delay_between_pulses_step: 500 # must be a multiple of 4
n_osc: 10
nshots: 1024
delay_between_pulses_start: 0
delay_between_pulses_end: 20
delay_between_pulses_step: 1
n_osc: 2
nshots: 10

- id: ramsey
priority: 0
operation: ramsey
parameters:
delay_between_pulses_start: 0 # must be a multiple of 4 incl 0
delay_between_pulses_end: 5000
delay_between_pulses_step: 500 # must be a multiple of 4
delay_between_pulses_start: 0
delay_between_pulses_end: 20
delay_between_pulses_step: 1
n_osc: 0
nshots: 1024

nshots: 10


- id: single shot classification
Expand Down Expand Up @@ -320,8 +319,8 @@ actions:
operation: spin_echo
parameters:
delay_between_pulses_start: 0
delay_between_pulses_end: 20000
delay_between_pulses_step: 2000
delay_between_pulses_end: 5
delay_between_pulses_step: 1
nshots: 10


Expand Down

0 comments on commit aff5c62

Please sign in to comment.