Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 18, 2024
1 parent cc41c73 commit b0fdee2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qibo/quantum_info/linalg_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def matrix_exponentiation(

def matrix_power(matrix, power: Union[float, int], backend=None):
"""Given a ``matrix`` :math:`A` and power :math:`\\alpha`, calculates :math:`A^{\\alpha}`.
Args:
matrix (ndarray): matrix whose power to calculate.
power (float or int): power to raise ``matrix`` to.
Expand All @@ -214,7 +214,7 @@ def matrix_power(matrix, power: Union[float, int], backend=None):

if not isinstance(power, (float, int)):
raise_error(
TypeError,
TypeError,
f"``power`` must be either float or int, but it is type {type(power)}.",
)

Expand Down

0 comments on commit b0fdee2

Please sign in to comment.