From 91e694adefc8162a41b067f80fd7accaec9af59c Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 13 Feb 2025 19:06:43 +0000 Subject: [PATCH] delete erroneous note in XXMinusYY documentation (#13837) (#13840) (cherry picked from commit 8d7404b8d462bed4c2072baa26e97b13447f9871) Co-authored-by: Kevin J. Sung --- .../library/standard_gates/xx_minus_yy.py | 30 ------------------- 1 file changed, 30 deletions(-) diff --git a/qiskit/circuit/library/standard_gates/xx_minus_yy.py b/qiskit/circuit/library/standard_gates/xx_minus_yy.py index 9e6be64f6570..1fa040ba6be2 100644 --- a/qiskit/circuit/library/standard_gates/xx_minus_yy.py +++ b/qiskit/circuit/library/standard_gates/xx_minus_yy.py @@ -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