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