Skip to main contentIBM Quantum Documentation Mirror

QasmBackendConfiguration

class qiskit.providers.models.QasmBackendConfiguration(backend_name, backend_version, n_qubits, basis_gates, gates, local, simulator, conditional, open_pulse, memory, max_shots, coupling_map, supported_instructions=None, dynamic_reprate_enabled=False, rep_delay_range=None, default_rep_delay=None, max_experiments=None, sample_name=None, n_registers=None, register_map=None, configurable=None, credits_required=None, online_date=None, display_name=None, description=None, tags=None, dt=None, dtm=None, processor_type=None, parametric_pulses=None, **kwargs)

GitHub(opens in a new tab)

Bases: object(opens in a new tab)

Class representing an OpenQASM 2.0 Backend Configuration.

backend_name

backend name.

backend_version

backend version in the form X.Y.Z.

n_qubits

number of qubits.

basis_gates

list of basis gates names on the backend.

gates

list of basis gates on the backend.

local

backend is local or remote.

simulator

backend is a simulator.

conditional

backend supports conditional operations.

open_pulse

backend supports open pulse.

memory

backend supports memory.

max_shots

maximum number of shots supported.

Initialize a QasmBackendConfiguration Object

Deprecated since version 1.2

The class qiskit.providers.models.backendconfiguration.QasmBackendConfiguration is deprecated as of qiskit 1.2. It will be removed in the 2.0 release. The models in qiskit.providers.models are part of the deprecated BackendV1 workflow and no longer necessary for BackendV2. If a user workflow requires these representations it likely relies on deprecated functionality and should be updated to use BackendV2.

Parameters


Attributes

num_qubits

Returns the number of qubits.

In future, n_qubits should be replaced in favor of num_qubits for consistent use throughout Qiskit. Until this is properly refactored, this property serves as intermediate solution.


Methods

from_dict

classmethod from_dict(data)

GitHub(opens in a new tab)

Create a new GateConfig object from a dictionary.

Parameters

data (dict(opens in a new tab)) – A dictionary representing the GateConfig to create. It will be in the same format as output by to_dict().

Returns

The GateConfig from the input dictionary.

Return type

GateConfig

to_dict

to_dict()

GitHub(opens in a new tab)

Return a dictionary format representation of the GateConfig.

Returns

The dictionary form of the GateConfig.

Return type

dict(opens in a new tab)