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