mirror of https://github.com/Qiskit/qiskit.git
Fix documented definition of ``UGate`` (#7198)
* Update u.py Fixes #7197 * Update u.py Fixed a typo in the previous pull request. * Update qiskit/circuit/library/standard_gates/u.py Co-authored-by: Julien Gacon <gaconju@gmail.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
parent
064855db2a
commit
ac3aa530c3
|
@ -28,7 +28,13 @@ class UGate(Gate):
|
||||||
|
|
||||||
.. math::
|
.. math::
|
||||||
U(\theta, \phi, \lambda) =
|
U(\theta, \phi, \lambda) =
|
||||||
RZ(\phi - \pi/2) RX(\pi/2) RZ(\pi - \theta) RX(\pi/2) RZ(\lambda - \pi/2)
|
RZ(\phi) RX(-\pi/2) RZ(\theta) RX(\pi/2) RZ(\lambda)
|
||||||
|
|
||||||
|
Equivalent simplified form:
|
||||||
|
|
||||||
|
.. math::
|
||||||
|
U(\theta, \phi, \lambda) =
|
||||||
|
RZ(\phi + \pi/2) RX(\theta) RZ(\lambda - \pi/2)
|
||||||
|
|
||||||
**Circuit symbol:**
|
**Circuit symbol:**
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue