abs2sum_array#
-
cuquantum.
bindings. custatevecEx. abs2sum_array( - intptr_t state_vector,
- intptr_t abs2sum,
- output_ordering,
- int32_t output_ordering_len,
- mask_bit_string,
- mask_wire_ordering,
- int32_t mask_len,
Calculate abs2sum array for a given set of wires.
- Parameters:
state_vector (intptr_t) – StateVector instance.
abs2sum (intptr_t) – pointer to a host or device array of sums of squared absolute values.
output_ordering (object) –
pointer to a host array of output tensor ordering. It can be:
an
intas the pointer address to the array, ora Python sequence of
int32_t.
output_ordering_len (int32_t) – the length of output_ordering.
mask_bit_string (object) –
pointer to a host array for a bit string to specify mask bits. It can be:
an
intas the pointer address to the array, ora Python sequence of
int32_t.
mask_wire_ordering (object) –
pointer to a host array that specifies the wire ordering of mask_bit_string. It can be:
an
intas the pointer address to the array, ora Python sequence of
int32_t.
mask_len (int32_t) – the length of mask.
See also