qrmi.primitives.ibm package#
Submodules#
qrmi.primitives.ibm.backend module#
IBMBackend implementation with IBM QRMI
- class qrmi.primitives.ibm.backend.QRMIBackend(qrmi: QuantumResource, **fields)[source]#
Bases:
BackendV2Backend class interfacing with an IBM Quantum backend.
- check_faulty(circuit: QuantumCircuit) None[source]#
Check if the input circuit uses faulty qubits or edges.
- Parameters:
circuit – Circuit to check.
- Raises:
ValueError – If an instruction operating on a faulty qubit or edge is found.
- configuration() QasmBackendConfiguration[source]#
Return the backend configuration.
Backend configuration contains fixed information about the backend, such as its name, number of qubits, basis gates, coupling map, quantum volume, etc.
The schema for backend configuration can be found in Qiskit/ibm-quantum-schemas/backend_configuration.
More details about backend configuration properties can be found here QasmBackendConfiguration.
- IBM backends may also include the following properties:
supported_features: a list of strings of supported features like “qasm3”for dynamic circuits support.
parallel_compilation: a boolean of whether or not the backend can process multiplejobs at once. Parts of the classical computation will be parallelized.
- Returns:
The configuration for the backend.
- property dtm: float#
Return the system time resolution of output signals
- Returns:
The output signal timestep in seconds.
- Return type:
- get_translation_stage_plugin() str[source]#
Return the default translation stage plugin name for IBM backends.
- property max_circuits: None#
This property used to return the
max_experimentsvalue from the backend configuration but this value is no longer an accurate representation of backend circuit limits. New fields will be added to indicate new limits.
- property meas_map: List[List[int]]#
Return the grouping of measurements which are multiplexed
This is required to be implemented if the backend supports Pulse scheduling.
- Returns:
The grouping of measurements which are multiplexed
- Return type:
- properties(refresh: bool = False) BackendProperties | None[source]#
Return the backend properties, subject to optional filtering.
This data describes qubits properties (such as T1 and T2), gates properties (such as gate length and error), and other general properties of the backend.
The schema for backend properties can be found in Qiskit/ibm-quantum-schemas/backend_properties.
- Parameters:
refresh – If
True, re-query the server for the backend properties. Otherwise, return a cached version.- Returns:
The backend properties or
Noneif the backend properties are not currently available.- Raises:
TypeError – If an input argument is not of the correct type.
NotImplementedError – If
datetimeis specified when cloud runtime is used.
- refresh() None[source]#
Retrieve the newest backend configuration and refresh the current backend target.
- run(*args, **kwargs) None[source]#
- Raises:
IBMBackendError – The run() method is no longer supported.
- property target: Target#
A :class:
qiskit.transpiler.Targetobject for the backend.- Returns:
Target
- qrmi.primitives.ibm.backend.get_backend(qrmi: QuantumResource, use_fractional_gates: bool | None = False) Backend[source]#
Returns Qiskit transpiler target
- Parameters:
qrmi – IBM QRMI object
use_fractional_gates – Whether to use native “fractional gates” on the device if available.
- Returns:
Qiskit Transpiler target
- Return type:
qiskit.transpiler.target.Target
qrmi.primitives.ibm.estimator module#
EstimatorV2 Primitive implementation with IBM QRMI
- class qrmi.primitives.ibm.estimator.EstimatorV2(qrmi: QuantumResource, *, options: dict | None = None)[source]#
Bases:
QRMIBaseEstimatorV2EstimatorV2 for QRMI
qrmi.primitives.ibm.sampler module#
SamplerV2 Primitive implementation with IBM QRMI
- class qrmi.primitives.ibm.sampler.SamplerV2(qrmi: QuantumResource, *, options: dict | None = None)[source]#
Bases:
QRMIBaseSamplerV2SamplerV2 for QRMI
qrmi.primitives.ibm.target module#
Qiskit Target creation
Module contents#
IBM implementations of Primitive