cuquantum.cutensornet.state_finalize_mps

cuquantum.cutensornet.state_finalize_mps(intptr_t handle, intptr_t state, int boundary_condition, extents_out, strides_out)[source]

Set the target MPS representation.

Parameters
  • handle (intptr_t) – The library handle.

  • state (intptr_t) – The tensor network state.

  • boundary_condition (BoundaryCondition) – The boundary condition of the initial MPS state.

  • extents_out

    A host array of extents for all target MPS tensors. It can be

    • an int as the pointer address to the nested sequence

    • a Python sequence of int, each of which is a pointer address to the corresponding tensor’s extents

    • a nested Python sequence of int

  • strides_out

    A host array of strides for all target MPS tensors. It can be

    • an int as the pointer address to the nested sequence

    • a Python sequence of int, each of which is a pointer address to the corresponding tensor’s strides

    • a nested Python sequence of int