iqm.benchmarks.utils_plots.evaluate_hamiltonian_paths

iqm.benchmarks.utils_plots.evaluate_hamiltonian_paths#

iqm.benchmarks.utils_plots.evaluate_hamiltonian_paths(N: int, path_samples: int, backend_arg: str | IQMBackendBase, url: str, max_tries: int = 10) Dict[int, List[Tuple[int, int]]]#

Evaluates Hamiltonian paths according to the product of 2Q gate fidelities on the corresponding edges of the backend graph.

Parameters:
  • N (int) – the number of vertices in the Hamiltonian paths to evaluate.

  • path_samples (int) – the number of Hamiltonian paths to evaluate.

  • backend_arg (str | IQMBackendBase) – the backend to evaluate the Hamiltonian paths on with respect to fidelity.

  • url (str) – the URL address for the backend to retrieve calibration data from.

  • max_tries (int) – the maximum number of tries to generate a Hamiltonian path.

Returns:

A dictionary with keys being fidelity products and values being the respective Hamiltonian paths.

Return type:

Dict[int, List[Tuple[int, int]]]