Template Function Pennylane::LightningQubit::applyControlledMatrix¶
Defined in File LQubitBindings.hpp
Function Documentation¶
-
template<class StateVectorT>
void Pennylane::LightningQubit::applyControlledMatrix(StateVectorT &st, const py::array_t<std::complex<typename StateVectorT::PrecisionT>, py::array::c_style | py::array::forcecast> &matrix, const std::vector<std::size_t> &controlled_wires, const std::vector<bool> &controlled_values, const std::vector<std::size_t> &wires, bool inverse = false)¶ Register controlled matrix kernel.
api/function_LQubitBindings_8hpp_1ac0a4500a14f958d260e5a7d01521383c
Download Python script
Download Notebook
View on GitHub