Template Function Pennylane::Gates::getT¶
Defined in File Gates.hpp
Function Documentation¶
-
template<class T>
static constexpr auto Pennylane::Gates::getT() -> std::vector<std::complex<T>>¶ Create a matrix representation of the T gate data in row-major format.
- Template Parameters
T – Required precision of gate (
float
ordouble
).- Returns
constexpr std::vector<std::complex<T>> Return constant expression of T gate data.
api/function_namespacePennylane_1_1Gates_1a4e9a50efb5b7864da9c58593e64b209b
Download Python script
Download Notebook
View on GitHub