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