Template Function Pennylane::Util::is_Hermitian

Function Documentation

template<typename T>
bool Pennylane::Util::is_Hermitian(std::size_t n, std::size_t lda, const std::vector<std::complex<T>> &mat)

Check if a matrix is a Hermitian matrix.

Template Parameters

T – Data type.

Parameters
  • n – Number of columns.

  • lda – Number of rows.

  • mat – A matrix to be checked.

Returns

is_Hermitian Is the matrix a Hermitian matrix or not.