Template Function Pennylane::Util::compute_diagonalizing_gates¶
Defined in File UtilLinearAlg.hpp
Function Documentation¶
-
template<typename T>
void Pennylane::Util::compute_diagonalizing_gates(int n, int lda, const std::vector<std::complex<T>> &Ah, std::vector<T> &eigenVals, std::vector<std::complex<T>> &unitary)¶ Decompose Hermitian matrix into diagonal matrix and unitaries.
- Template Parameters
T – Data type.
- Parameters
n – Number of columns.
lda – Number of rows.
Ah – Hermitian matrix to be decomposed.
eigenVals – eigenvalue results.
unitaries – unitary result.
api/function_UtilLinearAlg_8hpp_1a2ab021e137b168dbef586ecca5aff1fa
Download Python script
Download Notebook
View on GitHub