qit.state.index_muls

qit.state.index_muls(dim)

Index multipliers for C-ordered data.

Parameters

dim (array[int]) – dimension vector

Returns

index multiplier vector

Return type

array[int]

ravel_multi_index(s, dim) == index_muls(dim) @ s