Template Function Pennylane::Gates::getPhaseShift(const std::vector<U>&)¶
Defined in File Gates.hpp
Function Documentation¶
-
template<class T, class U = T>
static auto Pennylane::Gates::getPhaseShift(const std::vector<U> ¶ms) -> std::vector<std::complex<T>>¶ Create a matrix representation of the Phase-shift gate data in row-major format.
- Template Parameters
T – Required precision of gate (
float
ordouble
).U – Required precision of parameter (
float
ordouble
).
- Parameters
params – Vector of phase shift angles. Only front element is read.
- Returns
const std::vector<std::complex<T>> Return const Phase-shift gate data.
api/function_namespacePennylane_1_1Gates_1a931e6b7f84125baadef50048f0576610
Download Python script
Download Notebook
View on GitHub