This script is to visualise and simulate, on a basic level, how the quantum key distribution protocol BB84 and error correction protocol cascade are used to create, distribute and error correct a private encryption key.
The basic premise is that two people, conventionally called Alice and Bob, want to communicate a secret securely. To do this they use the BB84 protocol to generate a private encryption key that can be used to encrypt their non-quantum secret. More information can be found in this research paper.