-
Notifications
You must be signed in to change notification settings - Fork 603
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
Clarify difference between QuantumTape
and QuantumScript
#5065
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.
Thanks @albi3ro!
Co-authored-by: Thomas R. Bromley <49409390+trbromley@users.noreply.github.com>
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.
glad to see this actually happen, now i'll have a page to point people to 😄
Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5065 +/- ##
==========================================
- Coverage 99.67% 99.66% -0.02%
==========================================
Files 394 394
Lines 35670 35395 -275
==========================================
- Hits 35554 35276 -278
- Misses 116 119 +3 ☔ View full report in Codecov by Sentry. |
[sc-54022] **Context:** We keep the name `QuantumTape` in documentation, but strictly use its parent `QuantumScript` in PennyLane source code. We use `QuantumScript` because carrying around an unnecessary `AnnotatedQueue` can cause difficulties with parallelism and construction via queuing is substantially more expensive in both memory and time. Queuing can also lead to unintended side effects of things entering the circuit that shouldn't, or things not entering the circuit that should. This disconnect between documentation and source code is not explained anyone, and a bit confusing. So this adds some clarification to the module documentation for `qml.tape.`. **Description of the Change:** Added module documentation. **Benefits:** Hopefully this clears up some confusion. **Possible Drawbacks:** **Related GitHub Issues:** --------- Co-authored-by: Thomas R. Bromley <49409390+trbromley@users.noreply.github.com> Co-authored-by: Matthew Silverman <matthews@xanadu.ai>
[sc-54022]
Context:
We keep the name
QuantumTape
in documentation, but strictly use its parentQuantumScript
in PennyLane source code. We useQuantumScript
because carrying around an unnecessaryAnnotatedQueue
can cause difficulties with parallelism and construction via queuing is substantially more expensive in both memory and time. Queuing can also lead to unintended side effects of things entering the circuit that shouldn't, or things not entering the circuit that should.This disconnect between documentation and source code is not explained anyone, and a bit confusing. So this adds some clarification to the module documentation for
qml.tape.
.Description of the Change:
Added module documentation.
Benefits:
Hopefully this clears up some confusion.
Possible Drawbacks:
Related GitHub Issues: