Skip to content

Commit

Permalink
refactor: rename params.debug to params.script_file
Browse files Browse the repository at this point in the history
  • Loading branch information
stavros11 committed Nov 15, 2024
1 parent eb64ae4 commit 2819261
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/qibocal/protocols/qua/rb_ondevice.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ class RbOnDeviceParameters(Parameters):
apply_inverse: bool = False
state_discrimination: bool = True
"Flag to enable state discrimination if the readout has been calibrated (rotated blobs and threshold)"
debug: bool = False
"If enabled it dumps the qua script."
script_file: Optional[str] = None
"Dump QUA program and config to file for debugging."

def __post_init__(self):
if self.seed is None:
Expand Down Expand Up @@ -383,8 +383,8 @@ def _acquisition(
config = generate_config(platform, list(platform.qubits.keys()))
qm = qmm.open_qm(config)

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

# Send the QUA program to the OPX, which compiles and executes it
Expand Down

0 comments on commit 2819261

Please sign in to comment.