Skip to content

Commit

Permalink
Update isingxy latex definition (PennyLaneAI#2858)
Browse files Browse the repository at this point in the history
* update isingxy latex definition

* update the changelog

* move to bug fixes

* Update doc/releases/changelog-dev.md

Co-authored-by: Lee James O'Riordan <mlxd@users.noreply.github.com>

* Update changelog-dev.md

Co-authored-by: Lee James O'Riordan <mlxd@users.noreply.github.com>
Co-authored-by: Romain Moyard <rmoyard@gmail.com>
  • Loading branch information
3 people authored Jul 29, 2022
1 parent 1f1418d commit c289d0d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion doc/releases/changelog-dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,9 @@ of operators. [(#2622)](https://github.com/PennyLaneAI/pennylane/pull/2622)

<h3>Bug fixes</h3>

* Updated IsingXY gate doc-string.
[(#2858)](https://github.com/PennyLaneAI/pennylane/pull/2858)

* Fixes a bug where the parameter-shift gradient breaks when using both
custom `grad_recipe`s that contain unshifted terms and recipes that
do not contains any unshifted terms.
Expand Down Expand Up @@ -428,5 +431,5 @@ This release contains contributions from (in alphabetical order):

Samuel Banning, Juan Miguel Arrazola, Utkarsh Azad, David Ittah, Soran Jahangiri, Edward Jiang,
Ankit Khandelwal, Christina Lee, Sergio Martínez-Losa, Albert Mitjans Coma, Ixchel Meza Chavez,
Romain Moyard, Lee James O'Riordan, Mudit Pandey, Bogdan Reznychenko, Jay Soni, Antal Száva,
Romain Moyard, Lee James O'Riordan, Mudit Pandey, Bogdan Reznychenko, Shuli Shu, Jay Soni, Antal Száva,
David Wierichs, Moritz Willmann
2 changes: 1 addition & 1 deletion pennylane/ops/qubit/parametric_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -2767,7 +2767,7 @@ class IsingXY(Operation):
r"""
Ising (XX + YY) coupling gate
.. math:: \mathtt{XY}(\phi) = \exp(-i \frac{\theta}{4} (X \otimes X + Y \otimes Y)) =
.. math:: \mathtt{XY}(\phi) = \exp(i \frac{\theta}{4} (X \otimes X + Y \otimes Y)) =
\begin{bmatrix}
1 & 0 & 0 & 0 \\
0 & \cos(\phi / 2) & i \sin(\phi / 2) & 0 \\
Expand Down

0 comments on commit c289d0d

Please sign in to comment.