cuquantum.cutensornet.create_expectation

cuquantum.cutensornet.create_expectation(intptr_t handle, intptr_t state, intptr_t operator) intptr_t[source]

Create a representation for the tensor network state expectation value.

Parameters
  • handle (intptr_t) – The library handle.

  • state (intptr_t) – The tensor network state.

Returns

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

Return type

intptr_t