Check if a given matrix is unitary.
matrix (ndarray | Array) – A square matrix to be checked for unitarity.
ndarray
Array
SimphonyError – If the provided matrix is not 2-dimensional or not square.
bool | ndarray | Array
bool