cascade.mock_classical_channel module
- class cascade.mock_classical_channel.MockClassicalChannel(correct_key)
Bases:
ClassicalChannelA mock concrete implementation of the ClassicalChannel base class, which is used for the experiments.
- __init__(correct_key)
- ask_parities(blocks)
Bob asks Alice to compute the parities for a list of blocks.
- Params:
blocks (list): A list of blocks for which the ask the parities.
- Returns:
A list of parities, where each parity is an int value 0 or 1. The list of parities must be in the same order as the list of blocks.
- Return type:
parities (list)
- end_reconciliation()
Bob tells Alice that he is finished with a Cascade reconciliation.
- start_reconciliation()
Bob tells Alice that he is starting a new Cascade reconciliation.