From 3070909905f2dc5e9ca97c2659e789b0e33c5579 Mon Sep 17 00:00:00 2001 From: Stavros Efthymiou <35475381+stavros11@users.noreply.github.com> Date: Fri, 17 Jan 2025 16:12:41 +0400 Subject: [PATCH] refactor: open QM after dumping script --- src/qibocal/protocols/qua/rb_ondevice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qibocal/protocols/qua/rb_ondevice.py b/src/qibocal/protocols/qua/rb_ondevice.py index 25c0ee527..36957e766 100644 --- a/src/qibocal/protocols/qua/rb_ondevice.py +++ b/src/qibocal/protocols/qua/rb_ondevice.py @@ -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"])