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,

including standard deviation and the acceptance threshold.

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 (Optional[bool]) – whether to use virtual nodes or not.

  • use_classically_optimized_angles (Optional[bool]) – 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. Figure: the figure.

Return type:

str