qiskit_qm_provider.backend.backend_utils.add_basic_macros

add_basic_macros(backend: QuamRoot | QMBackend, reset_type: Literal['active', 'thermalize'] = 'thermalize')[source][source]

Populate a QuAM machine with standard gate-level macros.

Adds x, sx, rz, sy, sydg, measure, reset, delay, id, and cz macros. These definitions are tailored to flux-tunable transmon hardware and assume pulse naming from FluxTunableQuam / quam-builder (e.g. x180, x90, readout pulses, CZGate on pairs). One can either pass a BaseQuam instance or a QMBackend instance. If the latter is passed, the target will be updated accordingly.

This is a convenience starting point, not a universal hardware definition. Override macros on your own QuamRoot for other platforms; coordinate with the Quantum Machines team for quam-builder extensions as needed.

Parameters:
  • backend – A QMBackend or QuamRoot instance.

  • reset_type – Reset macro variant, "active" or "thermalize".