cuquantum.bindings.cudensitymat.create_operator_term¶
- cuquantum.bindings.cudensitymat.create_operator_term(intptr_t handle, int32_t num_space_modes, space_mode_extents) intptr_t [source]¶
Creates an empty operator term which is going to be a sum of tensor products of individual tensor operators, where each individual tensor operator within a product acts on disjoint quantum state modes (quantum degrees of freedom).
- 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, ora Python sequence of
int64_t
.
- Returns
Operator term.
- Return type
intptr_t
See also