Template Function Pennylane::Gates::getCRZ(U)¶
Defined in File Gates.hpp
Function Documentation¶
-
template<class T, class U = T>
static auto Pennylane::Gates::getCRZ(U angle) -> std::vector<std::complex<T>>¶ Create a matrix representation of the controlled RZ 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 RZ gate data.
api/function_namespacePennylane_1_1Gates_1acceb67599b7bd763ae879448f6c1d1f2
Download Python script
Download Notebook
View on GitHub