cuquantum.cutensornet.create_state¶
- cuquantum.cutensornet.create_state(intptr_t handle, int purity, int32_t n_state_modes, state_mode_extents, int data_type) intptr_t [source]¶
Create a tensor network state.
- Parameters
handle (intptr_t) – The library handle.
purity (cuquantum.cutensornet.StatePurity) – The tensor network state purity.
n_state_modes (int32_t) – The number of modes of the tensor network states.
state_mode_extents –
A host array of extents for each state mode. It can be
data_type (cuquantum.cudaDataType) – The data type of the tensor network state.
- Returns
An opaque tensor network state handle (as Python
int
).- Return type
intptr_t
See also