create_network_operator#
-
cuquantum.
bindings. cutensornet. create_network_operator( - intptr_t handle,
- int32_t num_state_modes,
- state_mode_extents,
- int data_type,
Creates an uninitialized tensor network operator of a given shape defined by the number of state modes and their extents.
- Parameters:
handle (intptr_t) – cuTensorNet library handle.
num_state_modes (int32_t) – The number of state modes the operator acts on.
state_mode_extents (object) –
An array of size
num_state_modes
specifying the extent of each state mode acted on. It can be:an
int
as the pointer address to the array, ora Python sequence of
int64_t
.
data_type (int) – Data type of the operator.
- Returns:
Tensor network operator (empty at this point).
- Return type:
intptr_t
See also