-
Notifications
You must be signed in to change notification settings - Fork 575
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
QueueContext is not empty #1957
Conversation
Hello. You may have forgotten to update the changelog!
|
Codecov Report
@@ Coverage Diff @@
## master #1957 +/- ##
=======================================
Coverage 98.81% 98.81%
=======================================
Files 225 225
Lines 17187 17187
=======================================
Hits 16983 16983
Misses 204 204
Continue to review full report at Codecov.
|
Well spotted! 👀 |
wow, nice catch @KetpuntoG! I'm curious how these gates ended up in a queuing context, since they seem to just be run at the module level, not within any tape/QNode 🤔 |
I'm still learning about queues so I'm not entirely sure @josh146 . What I would say is that the |
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.
Looks good !
CNOT01 = np.array([[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 0, 1], [0, 0, 1, 0]]) | ||
CNOT10 = np.array([[1, 0, 0, 0], [0, 0, 0, 1], [0, 0, 1, 0], [0, 1, 0, 0]]) | ||
SWAP = qml.SWAP(wires=[0, 1]).matrix | ||
SWAP = np.array([[1, 0, 0, 0], [0, 0, 1, 0], [0, 1, 0, 0], [0, 0, 0, 1]]) |
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.
Great find actually, never would have guessed that we start adding to the questions through here !
Context:
When importing
pennylane
QueueContext is not empty. You can check it by typingprint(self.name)
in thequeue
method ofOperator
.Description of the Change:
The gates that were being added have been found.