qiskit_qm_provider.utils.compilation.qua_script.dump_qua_script¶
- dump_qua_script(backend: QMBackend, circuit: QuantumCircuit, path: str | None = None, param_table: Mapping[Any, Any] | None = None) str[source][source]¶
Compile a circuit on its own and write the QUA script that would run to a file.
See
get_qua_script(): inputs start from the Python values inparam_table, or from a typed zero.- Parameters:
backend – The QM backend (used for quantum_circuit_to_qua and generate_config).
circuit – The transpiled QuantumCircuit to compile to QUA.
path – Output file path for the QUA script. If None, uses “debug_qua.py”.
param_table – Optional Python values for some circuit inputs (see
get_qua_script()).
- Returns:
The path to the written file.