Skip to content

Commit

Permalink
doc: correct gphase matrix representation (#946)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmshaffer authored Apr 12, 2024
1 parent 53aba5e commit b1cd32d
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 b1cd32d

Please sign in to comment.