qiskit_qm_provider.parameter_table._scope.require_qua_program

require_qua_program(context: str) None[source][source]

Raise if not inside an active QUA program scope.

Used inside property getters and dunder accessors where a decorator cannot run domain-specific validation first (e.g. OPNIC table-managed checks on declare()).

Parameters:

context – Label for the accessor (appears in the RuntimeError message).