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