Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
renatomello committed Nov 3, 2023
1 parent 58a625d commit 487cde3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qibo/backends/npmatrices.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ def GeneralizedfSim(self, u, phi):
return self.np.array(
[
[1, 0, 0, 0],
[0, u[0, 0], u[0, 1], 0],
[0, u[1, 0], u[1, 1], 0],
[0, complex(u[0, 0]), complex(u[0, 1]), 0],
[0, complex(u[1, 0]), complex(u[1, 1]), 0],
[0, 0, 0, phase],
],
dtype=self.dtype,
Expand Down

0 comments on commit 487cde3

Please sign in to comment.