iqm.benchmarks.entanglement.ghz.get_edges#
- iqm.benchmarks.entanglement.ghz.get_edges(coupling_map: list[tuple[int, int]], qubit_layout: list[int], edges_cal: list[list[int]] | None = None, fidelities_cal: list[float] | None = None) Graph#
Produces a networkx.Graph from coupling map fidelity information.
Edges are given by couplings and edge weights given by fidelities
- Parameters:
coupling_map (list[tuple[int, int]]) – The list pairs on which 2-qubit gates are natively supported
qubit_layout (list[int]) – The subset of system-qubits used in the protocol, indexed from 0
edges_cal (list[list[int]] | None) – A coupling map of qubit pairs that have CZ fidelities in the calibration data
fidelities_cal (list[float] | None) – A list of CZ fidelities ordered in the same way as edges_cal
- Returns:
The final weighted graph for the given calibration or coupling map
- Return type: