sv_updater_enqueue_matrix#
-
cuquantum.
bindings. custatevecEx. sv_updater_enqueue_matrix( - intptr_t sv_updater,
- intptr_t matrix,
- int matrix_data_type,
- int ex_matrix_type,
- int layout,
- int32_t adjoint,
- targets,
- int32_t num_targets,
- controls,
- control_bit_values,
- int32_t num_controls,
Enqueue matrix to SVUpdater.
- Parameters:
sv_updater (intptr_t) – SVUpdater instance.
matrix (intptr_t) – pointer to a host buffer that holds matrix elements.
matrix_data_type (int) – data type of matrix.
ex_matrix_type (MatrixType) – enumerator specifying the matrix type.
layout (int) – enumerator specifying the matrix layout.
adjoint (int32_t) – apply adjoint of matrix.
targets (object) –
pointer to a host array of target wires. It can be:
an
intas the pointer address to the array, ora Python sequence of
int32_t.
num_targets (int32_t) – the number of target wires.
controls (object) –
pointer to a host array of control wires. It can be:
an
intas the pointer address to the array, ora Python sequence of
int32_t.
control_bit_values (object) –
pointer to a host array of control bit values. It can be:
an
intas the pointer address to the array, ora Python sequence of
int32_t.
num_controls (int32_t) – the number of control wires.
See also