Template Function Pennylane::Gates::getControlledPhaseShift

Function Documentation

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

Create a matrix representation of the controlled phase-shift gate data in row-major format.

See also

getPhaseShift<T,U>(U angle).