Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove platform.start() #688

Merged
merged 17 commits into from
Jan 27, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions src/qibocal/cli/acquisition.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ def acquire(runcard, folder, force):
# connect and initialize platform
if platform is not None:
platform.connect()
platform.setup()
platform.start()

# run protocols
list(executor.run(mode=ExecutionMode.acquire))
Expand All @@ -62,7 +60,6 @@ def acquire(runcard, folder, force):

# stop and disconnect platform
if platform is not None:
platform.stop()
platform.disconnect()

# dump updated meta
Expand Down
3 changes: 0 additions & 3 deletions src/qibocal/cli/autocalibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ def autocalibrate(runcard, folder, force, update):
# connect and initialize platform
if platform is not None:
platform.connect()
platform.setup()
platform.start()

# run protocols
for _ in executor.run(mode=ExecutionMode.autocalibration):
Expand All @@ -70,7 +68,6 @@ def autocalibrate(runcard, folder, force, update):

# stop and disconnect platform
if platform is not None:
platform.stop()
platform.disconnect()

# dump updated runcard
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ def _acquisition(
amplitudes[qubit] = ro_pulses[qubit].amplitude

if params.attenuation is not None:
platform.set_attenuation(qubit, params.attenuation)
qubits[qubit].readout.attenuation = params.attenuation

attenuations[qubit] = platform.get_attenuation(qubit)
attenuations[qubit] = qubits[qubit].readout.attenuation

sequence.add(ro_pulses[qubit])

Expand Down
Loading