operator_term_append_mpo_product#
-
cuquantum.
bindings. cudensitymat. operator_term_append_mpo_product( - intptr_t handle,
- intptr_t operator_term,
- int32_t num_mpo_operators,
- mpo_operators,
- mpo_conjugation,
- state_modes_acted_on,
- mode_action_duality,
- double complex coefficient,
- coefficient_callback,
- coefficient_gradient_callback,
Appends a product of matrix product operators (MPOs) to the operator term.
- Parameters:
handle (intptr_t) – Library handle.
operator_term (intptr_t) – Operator term.
num_mpo_operators (int32_t) – Number of MPO operators in the MPO product.
mpo_operators (object) –
MPO operators constituting the MPO product. It can be:
mpo_conjugation (object) –
Hermitean conjugation status of each MPO in the MPO product (zero means normal, positive integer means conjugate-transposed). It can be:
an
intas the pointer address to the array, ora Python sequence of
int32_t.
state_modes_acted_on (object) –
State modes acted on by the product of matrix product operators. This is a concatenated list of the state modes acted on by all constituting MPO operators in the same order how they appear in the mpo_operators argument. It can be:
an
intas the pointer address to the array, ora Python sequence of
int32_t.
mode_action_duality (object) –
Duality status of each mode action, that is, whether the action applies to a ket mode of the quantum state (value zero) or a bra mode of the quantum state (positive value). It can be:
an
intas the pointer address to the array, ora Python sequence of
int32_t.
coefficient (complex) – Constant (static) complex scalar coefficient associated with the MPO product.
coefficient_callback (object) – Optional user-defined complex scalar callback function which can be called later to update the scalar coefficient associated with the MPO product, or NULL. The total coefficient associated with the MPO product is a product of the constant coefficient and the result of the scalar callback function, if defined.
coefficient_gradient_callback (object) – Optional user-defined scalar gradient callback function function which can be called later to compute the gradients of the complex scalar coefficient with respect to the user-defined real parameters, or NULL.