Template Function Pennylane::Gates::getRX(const std::vector<U>&)

Function Documentation

template<class T, class U = T>
static auto Pennylane::Gates::getRX(const std::vector<U> &params) -> std::vector<std::complex<T>>

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

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

  • U – Required precision of parameter (float or double).

Parameters

params – Vector of phase shift angles. Only front element is read.

Returns

const std::vector<std::complex<T>> Return const RX gate data.