Skip to content

Commit

Permalink
doc: correct gphase matrix representation
Browse files Browse the repository at this point in the history
  • Loading branch information
rmshaffer authored Apr 10, 2024
1 parent f556567 commit ea95b59
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/braket/circuits/gates.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,8 @@ class GPhase(AngledGate):
Unitary matrix:
.. math:: \mathtt{gphase}(\gamma) = e^{i \gamma} I = \begin{bmatrix}
e^{i \gamma} & 0 \\
0 & e^{i \gamma} \end{bmatrix}.
.. math:: \mathtt{gphase}(\gamma) = e^{i \gamma} I_1 = \begin{bmatrix}
e^{i \gamma} \end{bmatrix}.
Args:
angle (Union[FreeParameterExpression, float]): angle in radians.
Expand Down Expand Up @@ -279,9 +278,8 @@ def gphase(
Unitary matrix:
.. math:: \mathtt{gphase}(\gamma) = e^{i \gamma} I = \begin{bmatrix}
e^{i \gamma} & 0 \\
0 & e^{i \gamma} \end{bmatrix}.
.. math:: \mathtt{gphase}(\gamma) = e^{i \gamma} I_1 = \begin{bmatrix}
e^{i \gamma} \end{bmatrix}.
Args:
angle (Union[FreeParameterExpression, float]): Phase in radians.
Expand Down

0 comments on commit ea95b59

Please sign in to comment.