iqm.benchmarks.optimization.qscore#
Qscore benchmark
Functions
Calculates the optimal angles for single layer QAOA MaxCut ansatz. |
|
|
Computes expectation value based on measurement results. |
|
Creates a function that maps the parameters to the parametrized circuit, runs it and computes the expectation value. |
|
Returns the number of cut edges in a graph (with minus sign). |
|
Check whether a Q-score benchmark returned approximation ratio above beta*, therefore being successful. |
|
Generate the figure of approximation ratios vs number of nodes, |
|
Analysis function for a QScore experiment |
|
Solves the cut size of MaxCut for a graph using QAOA. |
Classes
|
Q-score estimates the size of combinatorial optimization problems a given number of qubits can execute with meaningful results. |
|
Q-score configuration. |
Inheritance