Template Function Pennylane::Gates::getHadamard

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<T> – Required precision of gate (float or double).

Returns

constexpr std::vector<ComplexT<T>> Return constant expression of Hadamard data.