Skip to content

Use cl-quil's tools for safe resolution of included files - #224

Merged
stylewarning merged 2 commits into
masterfrom
feature/use-quil-safe-resolution
Dec 18, 2019
Merged

stylewarning merged 2 commits into
masterfrom
feature/use-quil-safe-resolution

Conversation

@notmgsk

@notmgsk notmgsk commented Dec 18, 2019

Copy link
Copy Markdown
Member

Apologies for this late PR. This removes some code duplication by using directly cl-quil's functions for safe resolution of include files.

@notmgsk
notmgsk requested a review from a team as a code owner December 18, 2019 18:30

@appleby appleby left a comment

Copy link
Copy Markdown
Contributor

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?

Comment thread examples/qaoa.lisp Outdated
Comment on lines +70 to +73
(let ((val (loop :for (from to) :in graph
:sum (logxor (ldb (byte 1 from) cut)
(ldb (byte 1 to) cut)))))
val))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

porque?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops. Ignore that.

@appleby

appleby commented Dec 18, 2019

Copy link
Copy Markdown
Contributor

Won't this require a cl-quil dependency bump?

Ah. Looking at test failures, it would appear so.

@jmbr jmbr left a comment

Copy link
Copy Markdown
Member

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.

Comment thread 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

Copy link
Copy Markdown
Member

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.

Copy link
Copy Markdown
Member Author

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.

@notmgsk

notmgsk commented Dec 18, 2019

Copy link
Copy Markdown
Member Author

Won't this require a cl-quil dependency bump?

Dang. Yes.

@stylewarning
stylewarning merged commit ca7cfca into master Dec 18, 2019
@stylewarning
stylewarning deleted the feature/use-quil-safe-resolution branch December 18, 2019 19:05
@notmgsk notmgsk mentioned this pull request Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants