Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK. Go to the latest version

qiskit.qobj.QasmQobjConfig

class QasmQobjConfig(shots=None, max_credits=None, seed_simulator=None, memory=None, parameter_binds=None, memory_slots=None, n_qubits=None, pulse_library=None, calibrations=None, rep_delay=None, **kwargs)

GitHub

A configuration for a QASM Qobj.

Model for RunConfig.

Parameters

  • shots (int) – the number of shots.
  • max_credits (int) – the max_credits to use on the IBMQ public devices.
  • seed_simulator (int) – the seed to use in the simulator
  • memory (bool) – whether to request memory from backend (per-shot readouts)
  • parameter_binds (list[dict]) – List of parameter bindings
  • memory_slots (int) – The number of memory slots on the device
  • n_qubits (int) – The number of qubits on the device
  • pulse_library (list) – List of PulseLibraryItem.
  • calibrations (QasmExperimentCalibrations) – Information required for Pulse gates.
  • rep_delay (float) – 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 is backend.configuration().default_rep_delay.
  • kwargs – Additional free form key value fields to add to the configuration.

__init__

__init__(shots=None, max_credits=None, seed_simulator=None, memory=None, parameter_binds=None, memory_slots=None, n_qubits=None, pulse_library=None, calibrations=None, rep_delay=None, **kwargs)

Model for RunConfig.

Parameters

  • shots (int) – the number of shots.
  • max_credits (int) – the max_credits to use on the IBMQ public devices.
  • seed_simulator (int) – the seed to use in the simulator
  • memory (bool) – whether to request memory from backend (per-shot readouts)
  • parameter_binds (list[dict]) – List of parameter bindings
  • memory_slots (int) – The number of memory slots on the device
  • n_qubits (int) – The number of qubits on the device
  • pulse_library (list) – List of PulseLibraryItem.
  • calibrations (QasmExperimentCalibrations) – Information required for Pulse gates.
  • rep_delay (float) – 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 is backend.configuration().default_rep_delay.
  • kwargs – Additional free form key value fields to add to the configuration.

Methods

__init__([shots, max_credits, …])Model for RunConfig.
from_dict(data)Create a new QasmQobjConfig object from a dictionary.
to_dict()Return a dictionary format representation of the QASM Qobj config.

from_dict

classmethod from_dict(data)

Create a new QasmQobjConfig object from a dictionary.

Parameters

data (dict) – A dictionary for the config

Returns

The object from the input dictionary.

Return type

QasmQobjConfig

to_dict

to_dict()

Return a dictionary format representation of the QASM Qobj config.

Returns

The dictionary form of the QasmQobjConfig.

Return type

dict

Was this page helpful?
Report a bug or request content on GitHub.