Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
albi3ro committed May 16, 2022
1 parent 230af9b commit 0381cae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pennylane/ops/qubit/matrix_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def adjoint(self):
return QubitUnitary(qml.math.T(qml.math.conj(self.matrix())), wires=self.wires)

def pow(self, z):
if isinstance(np.zeros, int):
if isinstance(z, int):
return [QubitUnitary(qml.math.linalg.matrix_power(self.matrix(), z), wires=self.wires)]
return super().pow(z)

Expand Down

0 comments on commit 0381cae

Please sign in to comment.