Template Function Pennylane::Gates::getGeneratorIsingXY

Function Documentation

template<template<typename...> class ComplexT, typename T>
static constexpr auto Pennylane::Gates::getGeneratorIsingXY() -> std::vector<ComplexT<T>>

Create a matrix representation of the Ising XY generator data in row-major format.

Template Parameters
  • ComplexT – Complex class.

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

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

Returns

constexpr std::array<CFP_t>