PulseQobjInstruction
class qiskit.qobj.PulseQobjInstruction(name, t0, ch=None, conditional=None, val=None, phase=None, duration=None, qubits=None, memory_slot=None, register_slot=None, kernels=None, discriminators=None, label=None, type=None, pulse_shape=None, parameters=None, frequency=None)
Bases: object
A class representing a single instruction in an PulseQobj Experiment.
Instantiate a new PulseQobjInstruction object.
The class qiskit.qobj.pulse_qobj.PulseQobjInstruction is deprecated as of qiskit 1.2. It will be removed in the 2.0 release. The Qobj class and related functionality are part of the deprecated BackendV1 workflow, and no longer necessary for BackendV2. If a user workflow requires Qobj it likely relies on deprecated functionality and should be updated to use BackendV2.
Parameters
- name (str) – The name of the instruction
- t0 (int) – Pulse start time in integer dt units.
- ch (str) – The channel to apply the pulse instruction.
- conditional (int) – The register to use for a conditional for this instruction
- val (complex) – Complex value to apply, bounded by an absolute value of 1.
- phase (float) – if a
fcinstruction, the frame change phase in radians. - frequency (float) – if a
sfinstruction, the frequency in Hz. - duration (int) – The duration of the pulse in dt units.
- qubits (list) – A list of
intrepresenting the qubits the instruction operates on - memory_slot (list) – If a
measureinstruction this is a list ofintcontaining the list of memory slots to store the measurement results in (must be the same length as qubits). If abfuncinstruction this is a singleintof the memory slot to store the boolean function result in. - register_slot (list) – If a
measureinstruction this is a list ofintcontaining the list of register slots in which to store the measurement results (must be the same length as qubits). If abfuncinstruction this is a singleintof the register slot in which to store the result. - kernels (list) – List of
QobjMeasurementOptionobjects defining the measurement kernels and set of parameters if the measurement level is 1 or 2. Only used foracquireinstructions. - discriminators (list) – A list of
QobjMeasurementOptionused to set the discriminators to be used if the measurement level is 2. Only used foracquireinstructions. - label (str) – Label of instruction
- type (str) – Type of instruction
- pulse_shape (str) – The shape of the parametric pulse
- parameters (dict) – The parameters for a parametric pulse
Methods
from_dict
classmethod from_dict(data)
Create a new PulseQobjExperimentConfig object from a dictionary.
Parameters
data (dict) – A dictionary for the experiment config
Returns
The object from the input dictionary.
Return type
to_dict
to_dict()
Return a dictionary format representation of the Instruction.
Returns
The dictionary form of the PulseQobjInstruction.
Return type