qiskit_qm_provider.quam_macros.superconducting.add_basic_macros¶
- add_basic_macros(backend: QuamRoot | QMBackend, reset_type: Literal['active', 'thermalize'] = 'thermalize', **reset_macro_kwargs)[source][source]¶
Populate a QuAM machine with standard superconducting gate-level macros.
Canonical location:
qiskit_qm_provider.quam_macros.superconducting. Also re-exported fromqiskit_qm_providerandqiskit_qm_provider.backend.backend_utilsfor backward compatibility.Adds
x,sx,rz,sy,sydg,measure,reset,delay,id, andczmacros. These definitions are tailored to flux-tunable transmon hardware and assume pulse naming fromFluxTunableQuam/ quam-builder (e.g.x180,x90, readout pulses,CZGateon pairs).Single-qubit macros are imported from
quam-builderwhen available; otherwise the provider falls back to local copies underqiskit_qm_provider.quam_macros.superconducting.single_qubit_macros(with aUserWarning).Pass a
QuamRootor aQMBackend. When a backend is passed, its Qiskit target is updated after macros are seeded.Warning
Only seeds qubits whose
macrosdict is empty. Existing macros are left unchanged. Prefer calling this once on a freshly loaded machine.This is a convenience starting point, not a universal hardware definition. Override macros on your own
QuamRootfor other platforms; coordinate with the Quantum Machines team for quam-builder extensions as needed.