Template Function Pennylane::LightningGPU::applyControlledMatrix

Function Documentation

template<class StateVectorT>
void Pennylane::LightningGPU::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.