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 sampled from the optimized ansatz.
- Parameters:
- Returns:
The expectation value of the maximum cut size.
- Return type: