qkd_key_rate.base.sender module

Base class for Sending party.

class qkd_key_rate.base.sender.SenderBase(message, permutations, name=None)[source]

Bases: object

This class encodes all functions available to both sender and receiver.

__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

property message: Message

Returns the (partially corrected) message.

Return type:

Message

property original_message: Message

Returns original uncorrected message.

Return type:

Message