Skip to content

Commit

Permalink
pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
renatomello committed Feb 11, 2024
1 parent 7b03730 commit 85f26bc
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/qibo/backends/tensorflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,18 +238,8 @@ def MS(self, phi0, phi1, theta):
cos, sin = self.np.cos(theta / 2) + 0j, self.np.sin(theta / 2) + 0j
return self.tf.cast(
[
[
cos,
0,
0,
-1.0j * self.np.conj(plus) * sin,
],
[
0,
cos,
-1.0j * self.np.conj(minus) * sin,
0,
],
[cos, 0, 0, -1.0j * self.np.conj(plus) * sin],
[0, cos, -1.0j * self.np.conj(minus) * sin, 0],
[0, -1.0j * minus * sin, cos, 0],
[-1.0j * plus * sin, 0, 0, cos],
],
Expand Down

0 comments on commit 85f26bc

Please sign in to comment.