Template Function Pennylane::LightningGPU::cuGates::getSingleExcitationPlus(const std::vector<U>&)¶
Defined in File cuGates_host.hpp
Function Documentation¶
-
template<class CFP_t, class U = double>
static auto Pennylane::LightningGPU::cuGates::getSingleExcitationPlus(const std::vector<U> ¶ms) -> std::vector<CFP_t>¶ Create a matrix representation of the single excitation rotation with positive phase-shift outside the rotation subspace gate data in row-major format.
- Template Parameters
CFP_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
std::vector<CFP_t> Return single excitation rotation with positive phase-shift outside the rotation subspace gate data.
api/function_cuGates__host_8hpp_1a6a64f9474a850e5f489d03353a94db21
Download Python script
Download Notebook
View on GitHub