iqm.benchmarks.utils.error_profile_to_fidelities

iqm.benchmarks.utils.error_profile_to_fidelities#

iqm.benchmarks.utils.error_profile_to_fidelities(backend: IQMBackendBase) tuple[dict[Any, int], dict[str, dict[int | tuple[int, int], float]]]#

Convert IQMFakeBackend error profile to fidelity metrics.

Parameters:

backend (IQMBackendBase) – The fake backend with error_profile attribute.

Returns:

Dictionary of metrics with the same structure as extract_fidelities_unified.

Return type:

tuple[dict[Any, int], dict[str, dict[int | tuple[int, int], float]]]