Skip to main contentIBM Quantum Documentation Mirror

PulseQobjConfig

class qiskit.qobj.PulseQobjConfig(meas_level, meas_return, pulse_library, qubit_lo_freq, meas_lo_freq, memory_slot_size=None, rep_time=None, rep_delay=None, shots=None, seed_simulator=None, memory_slots=None, **kwargs)

GitHub(opens in a new tab)

Bases: QobjDictField

A configuration for a Pulse Qobj.

Instantiate a PulseQobjConfig object.

Deprecated since version 1.2

The class qiskit.qobj.pulse_qobj.PulseQobjConfig 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

  • meas_level (int(opens in a new tab)) – The measurement level to use.
  • meas_return (int(opens in a new tab)) – The level of measurement information to return.
  • pulse_library (list(opens in a new tab)) – A list of PulseLibraryItem objects which define the set of primitive pulses
  • qubit_lo_freq (list(opens in a new tab)) – List of frequencies (as floats) for the qubit driver LO’s in GHz.
  • meas_lo_freq (list(opens in a new tab)) – List of frequencies (as floats) for the’ measurement driver LO’s in GHz.
  • memory_slot_size (int(opens in a new tab)) – Size of each memory slot if the output is Level 0.
  • rep_time (int(opens in a new tab)) – Time per program execution in sec. Must be from the list provided by the backend (backend.configuration().rep_times). Defaults to the first entry in backend.configuration().rep_times.
  • rep_delay (float(opens in a new tab)) – Delay between programs in sec. Only supported on certain backends (backend.configuration().dynamic_reprate_enabled ). If supported, rep_delay will be used instead of rep_time and must be from the range supplied by the backend (backend.configuration().rep_delay_range). Default is backend.configuration().default_rep_delay.
  • shots (int(opens in a new tab)) – The number of shots
  • seed_simulator (int(opens in a new tab)) – the seed to use in the simulator
  • memory_slots (list(opens in a new tab)) – The number of memory slots on the device
  • kwargs – Additional free form key value fields to add to the configuration

Methods

from_dict

classmethod from_dict(data)

GitHub(opens in a new tab)

Create a new PulseQobjConfig object from a dictionary.

Parameters

data (dict(opens in a new tab)) – A dictionary for the config

Returns

The object from the input dictionary.

Return type

PulseQobjConfig

to_dict

to_dict()

GitHub(opens in a new tab)

Return a dictionary format representation of the Pulse Qobj config.

Returns

The dictionary form of the PulseQobjConfig.

Return type

dict(opens in a new tab)