WrappedTensorCallback#

class cuquantum.bindings.cudensitymat.WrappedTensorCallback(
callback: TensorCallbackType,
device: CallbackDevice,
)[source]#

Wrapped tensor callback Python extension type.

Methods

__init__(
callback: TensorCallbackType,
device: CallbackDevice,
)#

Create a wrapped tensor callback.

Parameters:
  • callback – The tensor callback function.

  • device – The device on which the callback is invoked.

Attributes

callback#

object

Type:

callback