Template Function Pennylane::NanoBindings::registerBackendAgnosticStateVectorMethods

Function Documentation

template<class StateVectorT, class PyClass>
void Pennylane::NanoBindings::registerBackendAgnosticStateVectorMethods(PyClass &pyclass)

Register backend agnostic state vector methods.

Register the registerBackendAgnosticStateVectorMethods function to the given class.

Template Parameters
  • StateVectorT – The type of the state vector.

  • PyClass – Nanobind’s class to bind methods type.

Parameters

pyclass – Nanobind’s class to bind methods.