qiskit-textbook
qiskit-textbook copied to clipboard
Fix maxcut computation from samples in qaoa notebook
Description of Issue (if Applicable)
Fixes #500
What Changes Were Made?
Use reversed key of samples dictionary, to account for littlie-endianness of resulting states
How Was This Tested?
Tested on a graph with following adjacency matrix:
[[0. 1. 0. 1.]
[1. 0. 1. 1.]
[0. 1. 0. 1.]
[1. 1. 1. 0.]]
Just spotted that my table-of-contents plugin for jupyter notebook added a table of contents, fixed in a second commit
I suppose this issue was fixed by #1204