cuquantum.cutensornet.create_accessor

cuquantum.cutensornet.create_accessor(intptr_t handle, intptr_t state, int32_t n_projected_modes, projected_modes, amplitudes_tensor_strides) intptr_t[source]

Create a representation for the tensor network state accessor.

Parameters
  • handle (intptr_t) – The library handle.

  • state (intptr_t) – The tensor network state.

  • n_projected_modes (int32_t) – The number of modes that are projected out for the state.

  • projected_modes

    A host array of projected modes for the marginal. It can be

    • an int as the pointer address to the array

    • a Python sequence of int

  • amplitudes_tensor_strides

    A host array of strides for the amplitudes tensor. It can be

    • an int as the pointer address to the array

    • a Python sequence of int

Returns

An opaque tensor network state accessor handle (as Python int).

Return type

intptr_t