Template Function Pennylane::Gates::getPauliX¶
Defined in File Gates.hpp
Function Documentation¶
-
template<template<typename...> class ComplexT, typename T>
static constexpr auto Pennylane::Gates::getPauliX() -> std::vector<ComplexT<T>>¶ Create a matrix representation of the PauliX 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 PauliX data.
api/function_Gates_8hpp_1a23dbb58d2be571115ce9aaa5ce0a90bb
Download Python script
Download Notebook
View on GitHub