Skip to content

Commit

Permalink
Merge pull request #1074 from qiboteam/fSim
Browse files Browse the repository at this point in the history
Fix `matrix()` method for `gates.GeneralizedfSim`
  • Loading branch information
renatomello authored Nov 3, 2023
2 parents 58a625d + 487cde3 commit dbdbd07
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 dbdbd07

Please sign in to comment.