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_provider. Importing it fromqiskit_qm_provider.backend.backend_utilsis deprecated.Adds
x,y,sx,sxdg,rz,sy,sydg,measure,reset,delay,id, andczmacros. These definitions are tailored to flux-tunable transmon hardware and assume the standard pulse naming fromFluxTunableQuam/ quam-builder:x180,y180,x90,-x90,y90,-y90,readout, andCZGateon pairs. Every one of those pulses must exist on each active qubit; machines for other platforms should define their own macros instead of calling this.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.