QMInstructionProperties¶
- class QMInstructionProperties(duration=None, error=None, qua_pulse_macro=None, quam_macro=None, *args, **kwargs)[source][source]¶
Bases:
InstructionPropertiesQiskit instruction properties enriched with a QUA pulse macro.
qua_pulse_macroaccepts two forms:A
QuamMacroinstance – a structured QuAM component whose attributes (duration,fidelity,pulse, …) are declared following the QuAM documentation. When this form is used,durationanderrorare automatically inferred from the macro’s attributes unless explicitly provided.A plain callable – a bare QUA macro function with no QuAM attributes. In this case
durationanderrormust be supplied explicitly if they are needed.
The two forms are transparently unified through the
qua_pulse_macroandquam_macroproperties.Create a new
QMInstructionProperties.- Parameters:
duration – Gate duration in seconds. Inferred from
qua_pulse_macrowhen aQuamMacrois provided and this is left asNone.error – Gate error rate. Inferred as
1 - fidelityfrom aQuamMacrowhen left asNone.qua_pulse_macro – Either a
QuamMacro(structured QuAM component with declarative attributes) or a plain callable (bare QUA macro function).quam_macro – Explicit
QuamMacroinput. When bothquam_macroandqua_pulse_macroare supplied,quam_macrotakes priority andqua_pulse_macrois ignored.