Template Function Pennylane::Util::is_Hermitian¶
Defined in File Util.hpp
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.
api/function_Util_8hpp_1ae87891f5ac66cf23a5e5f8d34ceb9ff2
Download Python script
Download Notebook
View on GitHub