pygsti.algorithms.fiducialselection.build_bitvec_mx#
- build_bitvec_mx(n, k)#
Create an array of all length-n and Hamming weight k binary vectors.
- Parameters:
n (int) – The length of each bit string.
k (int) – The hamming weight of each bit string.
- Returns:
An array of shape (binom(n,k), n) whose rows are the sought binary vectors.
- Return type:
numpy.ndarray