Skip to content

Commit 2b56910

Browse files
Angle consitency in RZ docstring (#13873) (#13875)
(cherry picked from commit 3aa8cc1) Co-authored-by: Guillermo Abad López <109400222+GuillermoAbadLopez@users.noreply.github.com>
1 parent acc9cec commit 2b56910

File tree

1 file changed

+7
-7
lines changed
  • qiskit/circuit/library/standard_gates

1 file changed

+7
-7
lines changed

qiskit/circuit/library/standard_gates/rz.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,17 @@ class RZGate(Gate):
3737
.. code-block:: text
3838
3939
┌───────┐
40-
q_0: ┤ Rz(λ) ├
40+
q_0: ┤ Rz(φ) ├
4141
└───────┘
4242
4343
**Matrix Representation:**
4444
4545
.. math::
4646
47-
RZ(\lambda) = \exp\left(-i\frac{\lambda}{2}Z\right) =
47+
RZ(\phi) = \exp\left(-i\frac{\phi}{2}Z\right) =
4848
\begin{pmatrix}
49-
e^{-i\frac{\lambda}{2}} & 0 \\
50-
0 & e^{i\frac{\lambda}{2}}
49+
e^{-i\frac{\phi}{2}} & 0 \\
50+
0 & e^{i\frac{\phi}{2}}
5151
\end{pmatrix}
5252
5353
.. seealso::
@@ -57,7 +57,7 @@ class RZGate(Gate):
5757
5858
.. math::
5959
60-
U1(\lambda) = e^{i{\lambda}/2}RZ(\lambda)
60+
U1(\theta=\phi) = e^{i{\phi}/2}RZ(\phi)
6161
6262
Reference for virtual Z gate implementation:
6363
`1612.00858 <https://arxiv.org/abs/1612.00858>`_
@@ -186,10 +186,10 @@ class CRZGate(ControlledGate):
186186
.. math::
187187
188188
CRZ(\theta)\ q_0, q_1 =
189-
I \otimes |0\rangle\langle 0| + RZ(\theta) \otimes |1\rangle\langle 1| =
189+
I \otimes |0\rangle\langle 0| + RZ(\phi=\theta) \otimes |1\rangle\langle 1| =
190190
\begin{pmatrix}
191191
1 & 0 & 0 & 0 \\
192-
0 & e^{-i\frac{\lambda}{2}} & 0 & 0 \\
192+
0 & e^{-i\frac{\theta}{2}} & 0 & 0 \\
193193
0 & 0 & 1 & 0 \\
194194
0 & 0 & 0 & e^{i\frac{\theta}{2}}
195195
\end{pmatrix}

0 commit comments

Comments
 (0)