Template Function Pennylane::Gates::getToffoli¶
Defined in File Gates.hpp
Function Documentation¶
-
template<class T>
static constexpr auto Pennylane::Gates::getToffoli() -> std::vector<std::complex<T>>¶ Create a matrix representation of the Toffoli 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 Toffoli gate data.
api/function_namespacePennylane_1_1Gates_1a6a3606e796bc9b57ca5a01648a376c37
Download Python script
Download Notebook
View on GitHub