qkd_key_rate.base.receiver module

Base class for Receiving party.

class qkd_key_rate.base.receiver.ReceiverBase(message, permutations, name=None)[source]

Bases: SenderBase

This class encodes all functions only available to the receiver.

The receiver is assumed to have a string with errors and is thus assumed to correct the errors.

__init__(message, permutations, name=None)[source]
Parameters:
  • message (Message) – Input message of the sender party

  • permutations (Permutations) – List containing permutations for each pass

  • name (Optional[str]) – Name of the sender party

abstract correct_errors(alice)[source]

The main routine, find and correct errors.

Return type:

None

correct_individual_error(error_index)[source]

Corrects a single error by flipping bit at location ‘error_index’.

Return type:

None