Skip to content

incorrect result graph in "Quantum approximate optimization algorithm" tutorial #3523

@matanninio

Description

@matanninio

URL to the relevant tutorial

In
https://quantum.cloud.ibm.com/docs/en/tutorials/quantum-approximate-optimization-algorithm#visualize-best-cut
the graph representing the best cut has the nodes wrongly colored. It is easy to see that the solution displayed had a cut size of four, not five as reported.

This is a recurring error in many of the places this specific example is presented, and seems to branch from a mismatch between the python order and the Qiskit bit-order.

Image

Select all that apply

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

Describe the fix or the content request.

Care should be taken in translation of bitstring and array to make sure the Qiskit order is flipped when needed.

[::-1]

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

Metadata

Metadata

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions