Template Function Pennylane::Gates::getIsingYY

Function Documentation

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

Create a matrix representation of the Ising YY coupling gate 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).

Parameters

angle – Phase shift angle.

Returns

std::vector<ComplexT<T>> Return Ising YY coupling gate data.