documentation icon indicating copy to clipboard operation
documentation copied to clipboard

incorrect results graph in Advanced techniques for QAOA

Open matanninio opened this issue 5 months ago β€’ 3 comments

URL to the relevant tutorial

basically the same issue as #3523 but in a different page. page url: on https://quantum.cloud.ibm.com/docs/en/tutorials/advanced-techniques-for-qaoa section link: https://quantum.cloud.ibm.com/docs/en/tutorials/advanced-techniques-for-qaoa#step-4-post-process-and-return-result-in-desired-classical-format

This image Image

seems to have the colors' order reversed (Qiskit order VS python order).

It is easy to see that this is far from optimal as it contains linear sequences of same-colored nodes and singly connected nodes with the same color as their neighbor.

An approximate count found about 20+23 same color pairs and only 61 different color pairs in the graph, while the reported value of the cut is 83

Select all that apply

  • [ ] new content request
  • [ ] typo
  • [x] code bug
  • [ ] out-of-date content
  • [ ] broken link
  • [ ] other

Describe the fix or the content request.

rerun the code with reverse on the bit-string vector prior to coloring graph, save result and publish.

For new content requests - if the request is accepted, do you want to write the content?

I will write (or already have written) a draft of the proposed content

matanninio avatar Jul 15 '25 12:07 matanninio

@a-matsuo

nathanearnestnoble avatar Jul 29 '25 01:07 nathanearnestnoble

We're going to put this on hold since the SwapStrategy transpiler pass is hanging when trying to run the notebook. There's an issue in rustworkx tracking the problem: https://github.com/Qiskit/rustworkx/issues/1514

kaelynj avatar Nov 03 '25 16:11 kaelynj

I think #4315 may close this too. Let's check the correctness of the graph

miamico avatar Nov 26 '25 17:11 miamico

addressed by #4315

miamico avatar Dec 02 '25 20:12 miamico