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