0
$\begingroup$

I just set up a Qiskit VQE algorithm and calculated the eigenstates. However, I'm searching now, how to show up the final, most likely solution-bit-string. And/or to print the counts. I actually cannot interpret the eigenstate of the solution found.

Problem to solve: Community-Detection encoded as docplex model, later translated into a Qiskit Quadratic Program

Variable "result" of type algorithms.minimum_eigen_solvers.vqe.VQEResult

enter image description here

$\endgroup$
1
  • 1
    $\begingroup$ Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. $\endgroup$
    – Community Bot
    Commented Apr 21, 2022 at 18:35

1 Answer 1

0
$\begingroup$

I think this is what you are looking for : see the sample_most_likely function

$\endgroup$
2
  • 1
    $\begingroup$ Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center. $\endgroup$
    – Community Bot
    Commented Jun 11, 2022 at 11:39
  • $\begingroup$ Thanks a lot for the link! $\endgroup$
    – tobias97d
    Commented Jun 15, 2022 at 10:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.