microsoft/qdk

Public

mirrored fromhttps://github.com/microsoft/qdkAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
billti/sim

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

katas/content/key_distribution/random_array/index.md

6lines · modepreview

**Input:** An integer $N$.

**Output** :  A `Bool` array of length $N$, where each element is chosen at random as `true` or `false` with $50\%$ probability.

> This will be used by both Alice and Bob to choose either the sequence of bits to send or the sequence of bases 
> to use when encoding/measuring the bits.