Modules§
- constants
- Module containing fundamental quantum constant matrices. Provides predefined quantum gates and operations used in QKD protocols, including identity (I), Hadamard (H), Pauli-X (X), and Y-basis Hadamard (H_Y) matrices.
- helpers
- 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.
- 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.
Structs§
- Complex
Matrix - Represents a 2x2 matrix of complex numbers.
- Qubit
- Represents a qubit with a quantum state as a linear combination of |0⟩ and |1⟩.
Functions§
- build_
b92 - Builds and configures a QKD instance for the B92 protocol.
- build_
bb84 - Builds and configures a QKD instance for the BB84 protocol.
- build_
six_ state - Builds and configures a QKD instance for the Six-State protocol.