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