Skip to content

Commit

Permalink
refactor: open QM after dumping script
Browse files Browse the repository at this point in the history
  • Loading branch information
stavros11 committed Jan 17, 2025
1 parent 83f32dc commit 3070909
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qibocal/protocols/qua/rb_ondevice.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,12 +381,12 @@ def _acquisition(
###########################
# Open the quantum machine
config = generate_config(platform, list(platform.qubits.keys()))
qm = qmm.open_qm(config)

if params.script_file:
with open(params.script_file, "w") as file:
file.write(generate_qua_script(rb, config))

qm = qmm.open_qm(config)
# Send the QUA program to the OPX, which compiles and executes it
job = qm.execute(
rb, compiler_options=CompilerOptionArguments(flags=["not-strict-timing"])
Expand Down

0 comments on commit 3070909

Please sign in to comment.