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)[Quellcode]#

Bases: object

A class representing a single instruction in an PulseQobj Experiment.

Instantiate a new PulseQobjInstruction object.

Parameter:
  • 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 fc instruction, the frame change phase in radians.

  • frequency (float) – if a sf instruction, the frequency in Hz.

  • duration (int) – The duration of the pulse in dt units.

  • qubits (list) – A list of int representing the qubits the instruction operates on

  • memory_slot (list) – If a measure instruction this is a list of int containing the list of memory slots to store the measurement results in (must be the same length as qubits). If a bfunc instruction this is a single int of the memory slot to store the boolean function result in.

  • register_slot (list) – If a measure instruction this is a list of int containing the list of register slots in which to store the measurement results (must be the same length as qubits). If a bfunc instruction this is a single int of the register slot in which to store the result.

  • kernels (list) – List of QobjMeasurementOption objects defining the measurement kernels and set of parameters if the measurement level is 1 or 2. Only used for acquire instructions.

  • discriminators (list) – A list of QobjMeasurementOption used to set the discriminators to be used if the measurement level is 2. Only used for acquire instructions.

  • 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

classmethod from_dict(data)[Quellcode]#

Create a new PulseQobjExperimentConfig object from a dictionary.

Parameter:

data (dict) – A dictionary for the experiment config

Rückgabe:

The object from the input dictionary.

Rückgabetyp:

PulseQobjInstruction

to_dict()[Quellcode]#

Return a dictionary format representation of the Instruction.

Rückgabe:

The dictionary form of the PulseQobjInstruction.

Rückgabetyp:

dict