Skip to content

Feedback and support

Join us in our QUA Discord server discord. 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:


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('', 'w')
print(generate_qua_script(prog, config), file=sourceFile)

This code will create a file,, which is a standalone runnable serialized QUA program.