Template Function Pennylane::Gates::getT

Function Documentation

template<class T>
static constexpr auto Pennylane::Gates::getT() -> std::vector<std::complex<T>>

Create a matrix representation of the T gate data in row-major format.

Template Parameters

T – Required precision of gate (float or double).

Returns

constexpr std::vector<std::complex<T>> Return constant expression of T gate data.