microsoft/qdk
Publicmirrored fromhttps://github.com/microsoft/qdkAvailable
katas/content/key_distribution/random_array/index.md
6lines · modecode
| 1 | **Input:** An integer $N$. |
| 2 | |
| 3 | **Output** : A `Bool` array of length $N$, where each element is chosen at random as `true` or `false` with $50\%$ probability. |
| 4 | |
| 5 | > This will be used by both Alice and Bob to choose either the sequence of bits to send or the sequence of bases |
| 6 | > to use when encoding/measuring the bits. |
| 7 | |