iqm.benchmarks.entanglement.ghz.get_edges

Contents

iqm.benchmarks.entanglement.ghz.get_edges#

iqm.benchmarks.entanglement.ghz.get_edges(coupling_map: CouplingMap, qubit_layout: List[int], edges_cal: List[List[int]] | None = None, fidelities_cal: List[float] | None = None)#
Produces a networkx.Graph from coupling map fidelity information, with edges given by couplings

and edge weights given by fidelities

Parameters:
  • coupling_map (CouplingMap) – 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 (Optional[List[List[int]]]) – A coupling map of qubit pairs that have CZ fidelities in the calibration data

  • fidelities_cal (Optional[List[float]]) – A list of CZ fidelities ordered in the same way as edges_cal

Returns:

networkx.Graph

The final weighted graph for the given calibration or coupling map

Return type:

graph