iqm.qiskit_iqm.iqm_backend.IQMBackendBase#

class iqm.qiskit_iqm.iqm_backend.IQMBackendBase(architecture: QuantumArchitectureSpecification | DynamicQuantumArchitecture, **kwargs)#

Bases: BackendV2, ABC

Abstract base class for various IQM-specific backends.

Parameters:

architecture (DynamicQuantumArchitecture) – Description of the quantum architecture associated with the backend instance.

Attributes

target

A qiskit.transpiler.Target object for the backend.

architecture

name

Name of the backend.

description

Optional human-readable description.

online_date

Date that the backend came online.

backend_version

Version of the backend being provided.

Methods

index_to_qubit_name(index)

Given a quantum register index, return the corresponding IQM-style qubit name.

qubit_name_to_index(name)

Given an IQM-style qubit name, return the corresponding index in the register.

property target: Target#

A qiskit.transpiler.Target object for the backend.

Return type:

Target

qubit_name_to_index(name: str) int | None#

Given an IQM-style qubit name, return the corresponding index in the register.

Parameters:

name (str) – IQM-style qubit name (‘QB1’, ‘QB2’, etc.)

Returns:

Index of the given qubit in the quantum register, or None if the given qubit is not found on the backend.

Return type:

int | None

index_to_qubit_name(index: int) str | None#

Given a quantum register index, return the corresponding IQM-style qubit name.

Parameters:

index (int) – Qubit index in the quantum register.

Returns:

Corresponding IQM-style qubit name (‘QB1’, ‘QB2’, etc.), or None if the given index does not correspond to any qubit on the backend.

Return type:

str | None