I am currently using the commpy.channels.bsc
function to flip the binary bots in a binary list with a given bit flip probability, The problem i am having is that I want to keep the a constant number of 1s in both my original and noisy vector.
Thanks in advance.
This returned for me e. g.: