Crate qkd

Crate qkd 

Source

Modules§

participants
Module containing the implementation of QKD protocol participants (Alice, Bob, and Eve). Provides structs and builders for creating and configuring participants with their respective quantum bases and behaviors.
protocol
Module implementing the core Quantum Key Distribution protocols. Contains the main QKD struct, protocol execution logic, and result types including QKDResult and PublicDiscussionResult.
types
Module defining fundamental quantum types and structures. Includes the Qubit struct and related quantum state representations used throughout the QKD simulations.
utils
Module providing utility functions and common quantum operations. Contains mathematical utilities, basis matrices (I, H, H_Y), and helper functions like shuffle_and_split for protocol execution.

Functions§

run_b92
Executes the B92 QKD protocol with the specified number of qubits and interception rate.
run_bb84
Executes the BB84 QKD protocol with the specified number of qubits and interception rate.
run_six_state
Executes the Six-State QKD protocol with the specified number of qubits and interception rate.