Skip to main content
IBM Quantum Platform
This page is from the dev version of Qiskit Runtime client. Go to the stable version.

BackendConfiguration

class BackendConfiguration(backend_name, backend_version, n_qubits, basis_gates, gates, local, simulator, conditional, open_pulse, memory, coupling_map, meas_levels=None, meas_kernels=None, discriminators=None, meas_map=None, supported_instructions=None, dynamic_reprate_enabled=False, rep_delay_range=None, default_rep_delay=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

Bases: QasmBackendConfiguration

Backwards compat shim representing an abstract backend configuration.


Attributes

Parameters

  • backend_name (str)
  • backend_version (str)
  • n_qubits (int)
  • basis_gates (list)
  • gates (list)
  • local (bool)
  • simulator (bool)
  • conditional (bool)
  • open_pulse (bool)
  • memory (bool)
  • coupling_map (list)
  • meas_levels (list[int] | None)
  • meas_kernels (list[str] | None)
  • discriminators (list[str] | None)
  • meas_map (list | None)
  • supported_instructions (list[str] | None)
  • dynamic_reprate_enabled (bool)
  • rep_delay_range (list[float] | None)
  • default_rep_delay (float | None)
  • sample_name (str | None)
  • n_registers (int | None)
  • register_map (list | None)
  • configurable (bool | None)
  • credits_required (bool | None)
  • online_date (datetime | None)
  • display_name (str | None)
  • description (str | None)
  • tags (list | None)
  • dt (float | None)
  • dtm (float | None)
  • processor_type (dict | None)
  • parametric_pulses (list | None)
  • kwargs (Any)

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

Create a new GateConfig object from a dictionary.

Parameters

data (dict[str, Any]) – 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

QasmBackendConfigurationT

to_dict

to_dict()

GitHub

Return a dictionary format representation of the GateConfig.

Returns

The dictionary form of the GateConfig.

Return type

dict[str, Any]

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