qiskit-textbook icon indicating copy to clipboard operation
qiskit-textbook copied to clipboard

Fix maxcut computation from samples in qaoa notebook

Open danlkv opened this issue 4 years ago • 3 comments

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.]]

danlkv avatar Jul 08 '20 07:07 danlkv

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jul 08 '20 07:07 CLAassistant

Just spotted that my table-of-contents plugin for jupyter notebook added a table of contents, fixed in a second commit

danlkv avatar Jul 08 '20 07:07 danlkv

I suppose this issue was fixed by #1204

divshacker avatar Oct 13 '21 10:10 divshacker