quil-lang / qvm

The high-performance and featureful Quil simulator.
Other
411 stars 57 forks source link

QAOA and MAXCUT landscape plotting #212

Closed stylewarning closed 4 years ago

stylewarning commented 4 years ago

this adds a small example to run QAOA and also plot the cool landscape plots

notmgsk commented 4 years ago

I dare you https://github.com/bendudson/py4cl/

stylewarning commented 4 years ago

From

QVM-EXAMPLES> (time (qaoa-dump (loop :for i :from 1 :below 13 :append
                                (loop :for j :below i
                                      :collect (list j i)))
                          "~/Scratch/qaoa.dat"))

qaoa13