iqm.benchmarks.utils.extract_fidelities_unified

iqm.benchmarks.utils.extract_fidelities_unified#

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

Returns couplings and CZ-fidelities from calibration data URL for external station API

Parameters:
  • cal_url – str The url under which the calibration data for the backend can be found

  • all_metrics – bool If True, returns a dictionary with all metrics from the calibration data Default is False

  • iqm_server_url (str) –

  • backend (IQMBackendBase) –

  • quantum_computer (str) –

Returns:

List[List[int]]

A list of pairs, each of which is a qubit coupling for which the calibration data contains a fidelity.

list_fids: List[float]

A list of CZ fidelities from the calibration url, ordered in the same way as list_couplings

metrics_dict: Dict

Dictionary of all metrics (returned only if all_metrics=True) Format: {metric_name: {qubit: value}} for single qubit metrics Format: {metric_name: {(qubit_1, qubit_2): value}} for two qubit metrics

Return type:

list_couplings