Template Function Pennylane::Gates::getT

Function Documentation

template<template<typename...> class ComplexT, typename T>
static constexpr auto Pennylane::Gates::getT(const bool inverse = false) -> std::vector<ComplexT<T>>

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

Template Parameters
  • ComplexT – Complex class.

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

Returns

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