cuquantum.bindings.cutensornet.state_initialize_mps¶
- cuquantum.bindings.cutensornet.state_initialize_mps(intptr_t handle, intptr_t tensor_network_state, int boundary_condition, extents_in, strides_in, state_tensors_in)[source]¶
Imposes a user-defined MPS (Matrix Product State) factorization on the initial tensor network state with the given shape and data.
- Parameters
handle (intptr_t) – cuTensorNet library handle.
tensor_network_state (intptr_t) – Tensor network state.
boundary_condition (BoundaryCondition) – The boundary condition of the chosen MPS representation.
extents_in (object) –
Array of size
nStateModesspecifying the extents of all tensors defining the initial MPS representation.extents[i]is expected to be consistent with the mode order (shared mode between (i-1)th and i-th MPS tensor, state mode of the i-th MPS tensor, shared mode between i-th and the (i+1)th MPS tensor). For the open boundary condition, the modes of the first tensor get reduced to (state mode, shared mode with the second site) while the modes of the last tensor become (shared mode with the second to the last site, state mode). It can be:strides_in (object) –
Array of size
nStateModesspecifying the strides of all tensors in the chosen MPS representation. Similar toextents_in,strides_inis also expected to be consistent with the mode order of each MPS tensor. If NULL, the default generalized column-major strides will be assumed. It can be:state_tensors_in (object) –
Array of size
nStateModesspecifying the data for all tensors defining the chosen MPS representation. If NULL, the initial MPS-factorized state will represent the vacuum state. It can be:
See also