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