cuquantum.cutensornet.create_network_operator

cuquantum.cutensornet.create_network_operator(intptr_t handle, int32_t n_state_modes, state_mode_extents, int data_type) intptr_t[source]

Create a tensor network operator of a given shape.

Parameters
  • handle (intptr_t) – The library handle.

  • n_state_modes (int32_t) – The total number of state modes the operator will act on.

  • state_mode_extents

    A host array of extents of each state mode. It can be

    • an int as the pointer address to the array

    • a Python sequence of int

  • data_type (cuquantum.cudaDataType) – The data type of the operator.

Returns

An opaque tensor network operator handle (as Python int).

Return type

intptr_t