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, std::size_t num_qubits, const std::complex<PrecisionT*> matrix, const std::vector<std::size_t> &controlled_wires, const std::vector<bool> &controlled_values, const std::vector<std::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_1a1b260bbfc58f7137167220795a197b2c
Download Python script
Download Notebook
View on GitHub