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