qiskit_qm_provider.backend.backend_utils.dump_qua_script¶
- dump_qua_script(backend: QMBackend, circuit: QuantumCircuit, path: str | None = None, param_table=None) str[source][source]¶
Compile a circuit to QUA and write the running QUA script to a file.
Useful for inspecting the actual QUA program that would be executed when running the circuit on the backend.
- 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 parameter table for parameterized circuits (same as for quantum_circuit_to_qua).
- Returns:
The path to the written file.