iqm.benchmarks.optimization.qscore.run_QAOA#
- iqm.benchmarks.optimization.qscore.run_QAOA(counts: Dict[str, int], graph_physical: Graph, qubit_node: Dict[int, int], use_classical_angles: bool, qaoa_layers: int, virtual_nodes: List[Tuple[int, int]]) float #
Solves the cut size of MaxCut for a graph using QAOA. The result is average value sampled from the optimized ansatz.
- Parameters:
- Returns:
the expectation value of the maximum cut size.
- Return type: