Template Class SingleQubitGateWithParamHelper¶
Defined in File SingleQubitGateHelper.hpp
Class Documentation¶
-
template<SingleQubitGateWithParam AVXImpl, typename ParamT>
class SingleQubitGateWithParamHelper¶ A Helper class for single-qubit gates with parameters.
Public Types
-
using FuncType = ReturnType (*)(std::complex<Precision>*, std::size_t, const std::vector<std::size_t>&, bool, ParamT)¶
Public Functions
-
inline auto operator()(std::complex<Precision> *arr, const std::size_t num_qubits, const std::vector<std::size_t> &wires, bool inverse, ParamT angle) const -> ReturnType¶
This function calls corresponding AVX2/512 kernel functions by finding the correct one based on
wires
.- Parameters
arr – Pointer to a statevector array
num_qubits – Number of qubits
wires – Wires the gate applies to
inverse – Apply the inverse of the gate when true
angle – Parameter of the gate
-
using FuncType = ReturnType (*)(std::complex<Precision>*, std::size_t, const std::vector<std::size_t>&, bool, ParamT)¶
api/classPennylane_1_1LightningQubit_1_1Gates_1_1AVXCommon_1_1SingleQubitGateWithParamHelper
Download Python script
Download Notebook
View on GitHub