iqm.benchmarks.entanglement.ghz.plot_fidelities

iqm.benchmarks.entanglement.ghz.plot_fidelities#

iqm.benchmarks.entanglement.ghz.plot_fidelities(observations: List[BenchmarkObservation], qubit_layouts: List[List[int]]) Figure#

Plots all the fidelities stored in the observations into a single plot of fidelity vs. number of qubits

Parameters:
  • observations (List[BenchmarkObservation]) – A list of Observations, each assumed to be a fidelity

  • qubit_layouts (List[List[int]]) – The list of qubit layouts as given by the user. This is used to name the layouts in order for identification in the plot.

Returns:

fig – The figure object with the fidelity plot.

Return type:

Figure