iqm.benchmarks.utils.process_backend

iqm.benchmarks.utils.process_backend#

iqm.benchmarks.utils.process_backend(backend: str | IQMBackendBase) tuple[IQMBackendBase, str]#

Process the backend input to ensure it is an IQMBackendBase instance and extract the station name.

Parameters:

backend (str | IQMBackendBase) – The backend to process, either as a string name or an IQMBackendBase

Returns:

A tuple containing the processed backend and the station name.

Return type:

tuple[IQMBackendBase, str]