-
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
Use cl-quil's tools for safe resolution of included files #224
Conversation
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.
Won't this require a cl-quil dependency bump?
examples/qaoa.lisp
Outdated
(let ((val (loop :for (from to) :in graph | ||
:sum (logxor (ldb (byte 1 from) cut) | ||
(ldb (byte 1 to) cut))))) | ||
val)) |
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.
🤔
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.
porque?
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.
Oops. Ignore that.
Ah. Looking at test failures, it would appear so. |
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 egregiously wrong jumps at me.
examples/qaoa.lisp
Outdated
(loop :for (from to) :in graph | ||
:sum (logxor (ldb (byte 1 from) cut) | ||
(ldb (byte 1 to) cut)))) | ||
(let ((val (loop :for (from to) :in graph |
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.
I don't see the rationale for wrapping the accumulated value of the loop in a let
form only to return it immediately.
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.
I should've paid more attention to what I was committing.
Dang. Yes. |
Apologies for this late PR. This removes some code duplication by using directly cl-quil's functions for safe resolution of include files.