qkd_key_rate.base.schedule module

Base class for Schedule object.

class qkd_key_rate.base.schedule.Schedule(schedule)[source]

Bases: object

Schedule object for Winnow protocol

next_pass()[source]

Find iteration index for the next pass and update processed schedule. This iteration index describes the Hamming-distance used in that specific interaction in the protocol.

Return type:

int

property remaining_passes: int

Number of remaining passes in schedule

Return type:

int

classmethod schedule_from_error_rate(error_rate=0.15)[source]

Get schedule based on error rate

Return type:

Schedule