attach_batched_coefficients#

cuquantum.bindings.cudensitymat.attach_batched_coefficients(
intptr_t handle,
intptr_t superoperator,
int32_t num_operator_term_batched_coeffs,
operator_term_batched_coeffs_tmp,
operator_term_batched_coeffs,
int32_t num_operator_product_batched_coeffs,
operator_product_batched_coeffs_tmp,
operator_product_batched_coeffs,
)[source]#

Attaches batched coefficients to the operator’s term and product coefficients.

Parameters:
  • handle (intptr_t) – Library handle.

  • superoperator (intptr_t) – Operator.

  • num_operator_term_batched_coeffs (int32_t) – Number of batched coefficients in the operator term.

  • operator_term_batched_coeffs_tmp (object) –

    Temporary buffer for the batched coefficients in the operator term. It can be:

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

    • a Python sequence of ints (as pointer addresses).

  • operator_term_batched_coeffs (object) –

    Actual buffer for the batched coefficients in the operator term. It can be:

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

    • a Python sequence of ints (as pointer addresses).

  • num_operator_product_batched_coeffs (int32_t) – Number of batched coefficients in the operator product.

  • operator_product_batched_coeffs_tmp (object) –

    Temporary buffer for the batched coefficients in the operator product. It can be:

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

    • a Python sequence of ints (as pointer addresses).

  • operator_product_batched_coeffs (object) –

    Actual buffer for the batched coefficients in the operator product. It can be:

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

    • a Python sequence of ints (as pointer addresses).