Template Function Pennylane::NanoBindings::registerGates¶
Defined in File Bindings.hpp
Function Documentation¶
-
template<class StateT, class PyClass>
void Pennylane::NanoBindings::registerGates(PyClass &pyclass)¶ Register gates for a given backend. Register the applyMatrix and applyControlledMatrix functions to the given state.
- Template Parameters
StateT – The type used to represent the state (statevector, tensornet, etc.)
PyClass – Nanobind’s class object type
- Parameters
pyclass – Nanobind’s class object to bind statevector
api/function_Bindings_8hpp_1a8e4eb97c2a6bf2714335375803bbf41c
Download Python script
Download Notebook
View on GitHub