Skip to content

Commit

Permalink
fix implementation of Rz
Browse files Browse the repository at this point in the history
  • Loading branch information
derwind committed Mar 1, 2024
1 parent 2422b5b commit e86d9b1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ttz/mps/mps.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,10 @@ def Ry(theta: float):

def Rz(theta: float):
return np.array(
[[np.cos(theta / 2) - np.sin(theta / 2), 0], [0, np.cos(theta / 2) + np.sin(theta / 2)]],
[
[np.cos(theta / 2) - np.sin(theta / 2) * 1j, 0],
[0, np.cos(theta / 2) + np.sin(theta / 2) * 1j],
],
dtype=complex,
)

Expand Down

0 comments on commit e86d9b1

Please sign in to comment.