diff --git a/qadence/blocks/matrix.py b/qadence/blocks/matrix.py index e66a2650..a146ba5c 100644 --- a/qadence/blocks/matrix.py +++ b/qadence/blocks/matrix.py @@ -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()