cuquantum.bindings.cudensitymat.create_operator

cuquantum.bindings.cudensitymat.create_operator(intptr_t handle, int32_t num_space_modes, space_mode_extents) intptr_t[source]

Creates an empty operator which is going to be a collection of operator terms.

Parameters
  • handle (intptr_t) – Library handle.

  • num_space_modes (int32_t) – Number of modes (degrees of freedom) defining the primary/dual tensor product space in which the operator term will act.

  • space_mode_extents (object) –

    Extents of the modes (degrees of freedom) defining the primary/dual tensor product space in which the operator term will act. It can be:

    • an int as the pointer address to the array, or

    • a Python sequence of int64_t.

Returns

Operator.

Return type

intptr_t