Template Function Pennylane::Gates::getCZ¶
Defined in File Gates.hpp
Function Documentation¶
-
template<template<typename...> class ComplexT, typename T>
static constexpr auto Pennylane::Gates::getCZ() -> std::vector<ComplexT<T>>¶ Create a matrix representation of the CZ gate data in row-major format.
- Template Parameters
ComplexT – Complex class.
T – Required precision of gate (
float
ordouble
).
- Returns
constexpr std::vector<ComplexT<T>> Return constant expression of SWAP gate data.
api/function_Gates_8hpp_1abfc3af02b74e93d1435db42f916f62d3
Download Python script
Download Notebook
View on GitHub