PulseQobjInstruction
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
(opens in a new tab)
A class representing a single instruction in an PulseQobj Experiment.
Instantiate a new PulseQobjInstruction object.
Parameters
- name (str (opens in a new tab)) – The name of the instruction
- t0 (int (opens in a new tab)) – Pulse start time in integer dt units.
- ch (str (opens in a new tab)) – The channel to apply the pulse instruction.
- conditional (int (opens in a new tab)) – The register to use for a conditional for this instruction
- val (complex (opens in a new tab)) – Complex value to apply, bounded by an absolute value of 1.
- phase (float (opens in a new tab)) – if a
fc
instruction, the frame change phase in radians. - frequency (float (opens in a new tab)) – if a
sf
instruction, the frequency in Hz. - duration (int (opens in a new tab)) – The duration of the pulse in dt units.
- qubits (list (opens in a new tab)) – A list of
int
representing the qubits the instruction operates on - memory_slot (list (opens in a new tab)) – If a
measure
instruction this is a list ofint
containing the list of memory slots to store the measurement results in (must be the same length as qubits). If abfunc
instruction this is a singleint
of the memory slot to store the boolean function result in. - register_slot (list (opens in a new tab)) – If a
measure
instruction this is a list ofint
containing the list of register slots in which to store the measurement results (must be the same length as qubits). If abfunc
instruction this is a singleint
of the register slot in which to store the result. - kernels (list (opens in a new tab)) – List of
QobjMeasurementOption
objects defining the measurement kernels and set of parameters if the measurement level is 1 or 2. Only used foracquire
instructions. - discriminators (list (opens in a new tab)) – A list of
QobjMeasurementOption
used to set the discriminators to be used if the measurement level is 2. Only used foracquire
instructions. - label (str (opens in a new tab)) – Label of instruction
- type (str (opens in a new tab)) – Type of instruction
- pulse_shape (str (opens in a new tab)) – The shape of the parametric pulse
- parameters (dict (opens in a new tab)) – The parameters for a parametric pulse
Methods
from_dict
classmethod from_dict(data)
Create a new PulseQobjExperimentConfig object from a dictionary.
Parameters
data (dict (opens in a new tab)) – 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