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)

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