  Random number generators are imperfect due to manufacturing bias and
technological imperfections. These imperfections are removed using
post-processing algorithms that in general compress the data and do not work in
every scenario. In this work, we present a universal whitening algorithm using
n-qubit permutation matrices to remove the imperfections in commercial random
number generators without compression. Specifically, we demonstrate the
efficacy of our algorithm in several categories of random number generators and
its comparison with cryptographic hash functions and block ciphers. We have
achieved improvement in almost every randomness parameter evaluated using ENT
randomness test suite. The modified random number files obtained after the
application of our algorithm in the raw random data file pass the NIST SP
800-22 tests in both the cases: 1. The raw file does not pass all the tests. 2.
The raw file also passes all the tests.
