Template Function Pennylane::Gates::getDoubleExcitationPlus

Function Documentation

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

Create a matrix representation of the double excitation rotation with positive phase-shift outside the rotation subspace gate data in row-major format.

Template Parameters
  • ComplexT<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 double excitation rotation with positive phase-shift outside the rotation subspace gate data.