Skip to content

Commit

Permalink
delete erroneous note in XXMinusYY documentation (#13837) (#13840)
Browse files Browse the repository at this point in the history
(cherry picked from commit 8d7404b)

Co-authored-by: Kevin J. Sung <[email protected]>
  • Loading branch information
mergify[bot] and kevinsung authored Feb 13, 2025
1 parent 0f591c6 commit 91e694a
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions qiskit/circuit/library/standard_gates/xx_minus_yy.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,36 +63,6 @@ class XXMinusYYGate(Gate):
0 & 0 & 1 & 0 \\
-i\sin\left(\rotationangle\right)e^{i\beta} & 0 & 0 & \cos\left(\rotationangle\right)
\end{pmatrix}
.. note::
In Qiskit's convention, higher qubit indices are more significant
(little endian convention). In the above example we apply the gate
on (q_0, q_1) which results in adding the (optional) phase defined
by :math:`\beta` on q_1. Instead, if we apply it on (q_1, q_0), the
phase is added on q_0. If :math:`\beta` is set to its default value
of :math:`0`, the gate is equivalent in big and little endian.
.. code-block:: text
┌───────────────┐
q_0: ┤1 ├
│ (XX-YY)(θ,β) │
q_1: ┤0 ├
└───────────────┘
.. math::
\newcommand{\rotationangle}{\frac{\theta}{2}}
R_{XX-YY}(\theta, \beta) q_1, q_0 =
RZ_0(\beta) \cdot \exp\left(-i \frac{\theta}{2} \frac{XX-YY}{2}\right) \cdot RZ_0(-\beta) =
\begin{pmatrix}
\cos\left(\rotationangle\right) & 0 & 0 & -i\sin\left(\rotationangle\right)e^{i\beta} \\
0 & 1 & 0 & 0 \\
0 & 0 & 1 & 0 \\
-i\sin\left(\rotationangle\right)e^{-i\beta} & 0 & 0 & \cos\left(\rotationangle\right)
\end{pmatrix}
"""

_standard_gate = StandardGate.XXMinusYYGate
Expand Down

0 comments on commit 91e694a

Please sign in to comment.