iqm.benchmarks.utils_plots.evaluate_hamiltonian_paths#
- iqm.benchmarks.utils_plots.evaluate_hamiltonian_paths(n_vertices: int, path_samples: int, backend: str | IQMBackendBase, max_tries: int = 10) dict[float, list[tuple[int, int]]]#
Evaluates Hamiltonian paths according to the product of 2Q gate fidelities on the edges of the backend graph.
- Parameters:
n_vertices (int) – the number of vertices in the Hamiltonian paths to evaluate.
path_samples (int) – the number of Hamiltonian paths to evaluate.
backend (str | IQMBackendBase) – the backend to evaluate the Hamiltonian paths on with respect to fidelity.
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: