qiskit_qm_provider.pulse.schedule_to_qua_macro¶
- schedule_to_qua_macro(backend: QMBackend, sched: Schedule, param_table: ParameterTable | None = None, input_type: InputType | None = None, gate_param_names: Sequence[str] | None = None) Callable[source][source]¶
Convert a Qiskit Pulse gate schedule into a QUA macro callable.
Supports drive/play instructions on mapped QuAM channels. Qiskit Pulse measurement instructions (
Measure, kerneled readout, and similar) are not supported — use circuit-levelmeasuregates compiled viaquantum_circuit_to_qua()and read outcomes fromcomp.outputson the returned compilation wrapper in hybrid programs instead.- Parameters:
backend – Backend whose QuAM channel mapping resolves Pulse channels.
sched – A
Schedulecontaining gate pulses only.param_table – Optional
ParameterTablefor real-time schedule parameters. Created from the schedule when omitted.input_type – Default input type when building a new parameter table.
gate_param_names – Optional gate parameter names when the schedule has no Pulse parameters but the enclosing gate is parameterized.
- Returns:
A QUA macro function with a signature matching the schedule (and gate) parameters.