Template Function Pennylane::LightningQubit::Gates::callControlledMatrixOp¶
Defined in File OpToMemberFuncPtr.hpp
Function Documentation¶
-
template<class PrecisionT>
inline void Pennylane::LightningQubit::Gates::callControlledMatrixOp(ControlledMatrixFuncPtrT<PrecisionT> func, std::complex<PrecisionT> *data, size_t num_qubits, const std::complex<PrecisionT*> matrix, const std::vector<size_t> &controlled_wires, const std::vector<bool> &controlled_values, const std::vector<size_t> &wires, bool adj)¶ Call a controlled matrix operation.
- Template Parameters
PrecisionT – Floating point type for the state-vector.
api/function_namespacePennylane_1_1LightningQubit_1_1Gates_1adb27dcdbc90d7ca042eae6d1eb29fce8
Download Python script
Download Notebook
View on GitHub