pub fn noisy_channel(n: usize, flip_prob: f64, seed: u64) -> (Vec<u8>, Vec<u8>)Expand description
Generate a Binary Symmetric Channel (BSC) output.
Input X is uniform random bits. Y is X with bits flipped with probability flip_prob.
Theoretical MI: 1 - H(flip_prob).