iqm.benchmarks.optimization.qscore.plot_approximation_ratios

iqm.benchmarks.optimization.qscore.plot_approximation_ratios#

iqm.benchmarks.optimization.qscore.plot_approximation_ratios(nodes: list[int], beta_ratio: list[float], beta_std: list[float], use_virtual_node: bool | None, use_classically_optimized_angles: bool | None, num_instances: int, backend_name: str, timestamp: str) tuple[str, Figure]#

Generate the figure of approximation ratios vs number of nodes with error bars.

Parameters:
  • nodes (list[int]) – List nodes for the problem graph sizes.

  • beta_ratio (list[float]) – Beta ratio calculated for each graph size.

  • beta_std (list[float]) – Standard deviation for beta ratio of each graph size.

  • use_virtual_node (bool | None) – Whether to use virtual nodes or not.

  • use_classically_optimized_angles (bool | None) – Whether to use classically optimized angles or not.

  • num_instances (int) – The number of instances.

  • backend_name (str) – The name of the backend.

  • timestamp (str) – The timestamp of the execution of the experiment.

Returns:

The name of the figure. The figure.

Return type:

tuple[str, Figure]