Template Function Pennylane::NanoBindings::createOpsList¶
Defined in File Bindings.hpp
Function Documentation¶
-
template<class StateVectorT>
OpsData<StateVectorT> Pennylane::NanoBindings::createOpsList(const std::vector<std::string> &ops_name, const std::vector<std::vector<typename StateVectorT::PrecisionT>> &ops_params, const std::vector<std::vector<std::size_t>> &ops_wires, const std::vector<bool> &ops_inverses, const std::vector<nb::ndarray<std::complex<typename StateVectorT::PrecisionT>, nb::c_contig>> &ops_matrices, const std::vector<std::vector<std::size_t>> &ops_controlled_wires, const std::vector<std::vector<bool>> &ops_controlled_values)¶ Create operations list from data.
Create the operations list from the given data.
- Template Parameters
StateVectorT – State vector type
- Parameters
ops_name – Operation names
ops_params – Operation parameters
ops_wires – Operation wires
ops_inverses – Operation inverse flags
ops_matrices – Operation matrices
ops_controlled_wires – Operation controlled wires
ops_controlled_values – Operation controlled values
- Returns
OpsData<StateVectorT> Operations data
api/function_Bindings_8hpp_1abb62c3df0de63de0e5e781f940887d7d
Download Python script
Download Notebook
View on GitHub