sv_updater_enqueue_general_channel#

cuquantum.bindings.custatevecEx.sv_updater_enqueue_general_channel(
intptr_t sv_updater,
matrices,
int matrix_data_type,
ex_matrix_types,
int32_t num_matrices,
int layout,
channel_wires,
int32_t num_channel_wires,
)[source]#

Enqueue general channel.

Parameters:
  • sv_updater (intptr_t) – SVUpdater instance.

  • matrices (object) –

    host pointer to an array of matrix elements. It can be:

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

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

  • matrix_data_type (int) – dataType of the matrices.

  • ex_matrix_types (object) –

    matrix types of the specified matrices. It can be:

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

    • a Python sequence of _MatrixType.

  • num_matrices (int32_t) – the number of matrices.

  • layout (int) – layout of the matrices.

  • channel_wires (object) –

    wires that the general channel is applied. It can be:

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

    • a Python sequence of int32_t.

  • num_channel_wires (int32_t) – the number of wires.