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