Matrix Utilities

graphqomb.matrix module

Matrix utilities.

This module provides:

Functions

graphqomb.matrix.is_unitary(mat)[source]

Check if a matrix is unitary.

Parameters:

mat (numpy.typing.NDArray[T]) – matrix to check

Returns:

True if unitary, False otherwise

Return type:

bool

graphqomb.matrix.is_hermitian(mat)[source]

Check if a matrix is Hermitian.

Parameters:

mat (numpy.typing.NDArray[T]) – matrix to check

Returns:

True if Hermitian, False otherwise

Return type:

bool