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