Skip to content

Commit

Permalink
switch
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmoutinho committed Jul 18, 2024
1 parent 2b08f3f commit 5a2a38f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qadence/blocks/matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ def __init__(
raise TypeError("Please provide a 2D matrix.")
if not self.is_square(matrix):
raise TypeError("Please provide a square matrix.")
if check_unitary:
if check_hermitian:
if not self.is_hermitian(matrix):
logger.warning("Provided matrix is not hermitian.")
if check_hermitian:
if check_unitary:
if not self.is_unitary(matrix):
logger.warning("Provided matrix is not unitary.")
self.matrix = matrix.clone()
Expand Down

0 comments on commit 5a2a38f

Please sign in to comment.