-
Notifications
You must be signed in to change notification settings - Fork 644
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
[Strings3] Update documentation and codebase with new string representations of X, Y, Z and Identity #5153
Conversation
…o paulistrings
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.
Yep this is actually quite important:
We should update the |
3be7577
to
80c5d1b
Compare
Excellent point! A lot of the codebase seems to rely on checking not just I also tried subclassing but it turned out difficult to have both |
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.
Well that was painful to get through...
Co-authored-by: Thomas R. Bromley <49409390+trbromley@users.noreply.github.com>
Co-authored-by: Thomas R. Bromley <49409390+trbromley@users.noreply.github.com>
… with PennyLane (#5215) ```python3 coeffs = [2.0, f1, f2] ops = [qml.PauliX(0), qml.PauliY(0), qml.PauliZ(0)] H = qml.dot(coeffs, ops) print(H) ``` ```pycon ( 2.0 * X(0) + f1(params_0, t) * Y(0) + f2(params_1, t) * Z(0) ) ``` - [x] Update repr - [x] Update tests - [x] Update docs - [x] changelog - [x] Update qml.dot docs builds on top of #5153 [sc-57051] --------- Co-authored-by: Thomas R. Bromley <49409390+trbromley@users.noreply.github.com>
Updating docs and codebase with
qml.X/Y/Z/I(*)
instead ofqml.PauliX/Y/Z(*)
andqml.Identity(*)
following #5116 and updating composite operation outputs in docs according to #5138ToDo