Template Function Pennylane::NanoBindings::registerGates

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