Template Function Pennylane::Gates::getRX(U)¶
Defined in File Gates.hpp
Function Documentation¶
-
template<class T, class U = T>
static auto Pennylane::Gates::getRX(U angle) -> std::vector<std::complex<T>>¶ Create a matrix representation of the RX gate data in row-major format.
- Template Parameters
T – Required precision of gate (
float
ordouble
).U – Required precision of parameter (
float
ordouble
).
- Parameters
angle – Phase shift angle.
- Returns
const std::vector<std::complex<T>> Return const RX gate data.
api/function_namespacePennylane_1_1Gates_1a46c92d92cc8ebd765091fbfe8ecf38b4
Download Python script
Download Notebook
View on GitHub