-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QAOA and MAXCUT landscape plotting #212
Conversation
4d99fa0
to
a60dd9e
Compare
I dare you https://github.com/bendudson/py4cl/ |
a60dd9e
to
49a44ac
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing obviously wrong jumps at me.
After FILE is created, one may plot the data with gnuplot. The following commands will plot (and live-update) the data: | ||
|
||
set view map | ||
splot \"FILE\" u 1:2:3 w pm3d |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion #1: set size square
Suggestion #2: use a sequential colorbrewer palette such as https://github.com/aschn/gnuplot-colorbrewer/blob/master/sequential/Blues.plt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mmmmm sequential blues 💙
;; Hamiltonian | ||
(driver-ham (loop :for q :below n | ||
:collect (cl-quil.clifford:embed cl-quil.clifford:+X+ n (list q)))) | ||
(isns (quil:with-inst () |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
with-inst
is not external
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it should be in the latest cl-quil
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we bump the cl-quil dependency to 1.13.1 then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
qvm-examples are low stakes, but prob reasonable
49a44ac
to
1f16dc9
Compare
d7986c3
to
31abeb1
Compare
31abeb1
to
fbe60c4
Compare
this adds a small example to run QAOA and also plot the cool landscape plots