Template Function Pennylane::NanoBindings::registerControlledGates

Function Documentation

template<class StateT, class PyClass>
void Pennylane::NanoBindings::registerControlledGates(PyClass &pyclass)

Register controlled gate operations for a statevector. Register the applyControlledMatrix function to the given state.

Template Parameters
  • StateT – State vector type

  • PyClass – Nanobind class type

Parameters

pyclass – Nanobind class to bind methods to