cascade.classical_channel module

class cascade.classical_channel.ClassicalChannel

Bases: abc.ABC

An abstract base class that abstracts the interactions that Bob has with Alice over the classical channel.

abstract 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)

abstract end_reconciliation()

Bob tells Alice that he is finished with a Cascade reconciliation.

abstract start_reconciliation()

Bob tells Alice that he is starting a new Cascade reconciliation.