I have the following simple optimization in QAOA:
from qiskit_optimization.algorithms import MinimumEigenOptimizer
# from qiskit_aer import Aer
from qiskit.algorithms.minimum_eigensolvers import QAOA
from qiskit.algorithms.optimizers import COBYLA
from qiskit.primitives import Sampler
n_qubits = len(G.nodes())
problem = QuadraticProgram()
_ = [problem.binary_var("x{}".format(i)) for i in range(n_qubits)]
problem.maximize(
linear=nx.adjacency_matrix(G).dot(np.ones(n_qubits)),
quadratic=-nx.adjacency_matrix(G),
)
meo = MinimumEigenOptimizer(QAOA(sampler=Sampler(), optimizer=COBYLA(maxiter=100)))
result = meo.solve(problem)
print(result.prettyprint())
print("\ndisplay the best 5 solution samples")
for sample in result.samples[:5]:
print(sample)
I want to get the actual angles found by QAOA, the $\beta, \gamma$. How do I get these from the results of this algorithm?
I'm not seeing it in the docs: https://qiskit.org/documentation/stubs/qiskit.algorithms.minimum_eigensolvers.QAOA.html#qiskit.algorithms.minimum_eigensolvers.QAOA