QasmQobjConfig
class qiskit.qobj.QasmQobjConfig(shots=None, seed_simulator=None, memory=None, parameter_binds=None, meas_level=None, meas_return=None, memory_slots=None, n_qubits=None, pulse_library=None, calibrations=None, rep_delay=None, qubit_lo_freq=None, meas_lo_freq=None, **kwargs)
Bases: SimpleNamespace
(opens in a new tab)
A configuration for an OpenQASM 2 Qobj.
Model for RunConfig.
The class qiskit.qobj.qasm_qobj.QasmQobjConfig
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
- 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 (bool(opens in a new tab)) – whether to request memory from backend (per-shot readouts)
- parameter_binds (list(opens in a new tab)[dict(opens in a new tab)]) – List of parameter bindings
- meas_level (int(opens in a new tab)) – Measurement level 0, 1, or 2
- meas_return (str(opens in a new tab)) – For measurement level < 2, whether single or avg shots are returned
- memory_slots (int(opens in a new tab)) – The number of memory slots on the device
- n_qubits (int(opens in a new tab)) – The number of qubits on the device
- pulse_library (list(opens in a new tab)) – List of
PulseLibraryItem
. - calibrations (QasmExperimentCalibrations) – Information required for Pulse gates.
- rep_delay (float(opens in a new tab)) – Delay between programs in sec. Only supported on certain backends (
backend.configuration().dynamic_reprate_enabled
). Must be from the range supplied by the backend (backend.configuration().rep_delay_range
). Default isbackend.configuration().default_rep_delay
. - 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.
- kwargs – Additional free form key value fields to add to the configuration.
Methods
from_dict
classmethod from_dict(data)
Create a new QasmQobjConfig 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
to_dict
to_dict()
Return a dictionary format representation of the OpenQASM 2 Qobj config.
Returns
The dictionary form of the QasmQobjConfig.
Return type