Feedback and support¶
Join us in our QUA Discord server . You are welcome to ask questions, suggest features and share your experience!
Serializing QUA Programs¶
It is possible to serialize a QUA program and a config file using these commands:
Note
Make sure to always update your qua package before you serialize with pip install -U qm-qua
.
from qm import generate_qua_script
...
with program() as prog:
...
...
qm = qmm.open_qm(config)
...
sourceFile = open('debug.py', 'w')
print(generate_qua_script(prog, config), file=sourceFile)
sourceFile.close()
This code will create a file, debug.py
, which is a standalone runnable serialized QUA program.