-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
docs: clarify method purpose #13312
docs: clarify method purpose #13312
Conversation
Thank you for opening a new pull request. Before your PR can be merged it will first need to pass continuous integration tests and be reviewed. Sometimes the review process can be slow, so please be patient. While you're waiting, please feel free to review other open PRs. While only a subset of people are authorized to approve pull requests for merging, everyone is encouraged to review open pull requests. Doing reviews helps reduce the burden on the core team and helps make the project's code better for everyone. One or more of the following people are relevant to this code:
|
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 for looking at this.
I think we'll maybe need a little bit more detail than this to properly describe the function. The complex conjugate of an arbitrary linear operator is only defined with regards to a particular matrix representation (unlike the adjoint, which is what this method was confused with), so I think we should highlight that here. (For example, if we use the to_matrix
, or we can add a short comment that it's the matrix expressed in the
@jakelishman Thanks for the feedback. I have updated the comment. |
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, thanks!
Pull Request Test Coverage Report for Build 11331375663Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
* docs: clarify method * docs: improve comment (cherry picked from commit efdcb75)
* docs: clarify method * docs: improve comment (cherry picked from commit efdcb75) Co-authored-by: J. Harte <[email protected]>
Summary
Fixes #13051.
Details and comments
Update the doc string for the Pauli operator method
conjugate
to clarify that it returns the complex conjugate and not the conjugate transpose.