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
Improve performance of qml.expval
using op. arithmetic
#3063
Conversation
* Incrementing the version number to `v0.27.0-dev` (#3044) * Update * Bump * re-add dev changelog * Update doc/development/release_notes.md * docs section * flaky test_single_argument_step Co-authored-by: Antal Szava <antalszava@gmail.com> * fix exp bug * rebase onto release candidate * Update doc/releases/changelog-0.26.0.md * Update tests/optimize/test_optimize_shot_adapative.py * add additional test parametrization Co-authored-by: Romain Moyard <rmoyard@gmail.com> Co-authored-by: Antal Szava <antalszava@gmail.com>
Hello. You may have forgotten to update the changelog!
|
Codecov Report
@@ Coverage Diff @@
## master #3063 +/- ##
==========================================
- Coverage 99.67% 99.67% -0.01%
==========================================
Files 273 273
Lines 23346 23345 -1
==========================================
- Hits 23270 23269 -1
Misses 76 76
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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.
Nice and quick little improvement 👍🏼!
Just missing a changelog entry and still need to update the class doc-string for QubitUnitrary
to mention this new kwarg. It seems that its also missing a section for Returns
and Raises
where we list the class instance and the value error + user warning that instantiation of this class can raise.
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.
Required changes:
- Add
unitary_check
andKeyword Args:
to the docstring for the class. - Fix the warning message.
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.
Small change request from my side
Co-authored-by: Christina Lee <christina@xanadu.ai>
Co-authored-by: Lee James O'Riordan <mlxd@users.noreply.github.com>
Added changelog entry and docs for the keyword arguments and the error/warning. I don't think we use a |
[sc-26108] |
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 to me :)
Applied requested change
Codecov report is incorrect, overriding. |
Note: the computation of the expval of
qml.Hamiltonian
is extremely fast because it has its own implementation using itssparse_matrix
representation. Should we do sth similar for theSum
operator?