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]]]