How arunaya1812/quantumproject1 works
This repository is a BB84 quantum-key-distribution simulator and attack-detection prototype, extended with temporal ML detection and authenticated key establishment. The principal workflow simulates Alice and Bob exchanging photons, measures attack signals across windows, and either rejects a suspicious session or reconciles and derives an authenticated key. A separate documented workflow generates timelines, engineers temporal features, and trains a Random Forest detector. Edges reflect the excerpts, SOURCE INDEX references, or README-described workflow; unsampled details are not inferred.
Main entry points: secure_session.py Session Orchestrator · protocol.py BB84 Protocol · timeline.py Window Simulator · eavesdropper.py Attack Models
Components 17
BB84 Simulation
- BB84 Protocol
bb84/protocol.py - Qiskit Backend
bb84/qiskit_protocol.py - Photon Model
bb84/photon.py - Quantum Channel
bb84/channel.py - Attack Models
bb84/eavesdropper.py - Decoy Statistics
bb84/decoy.py - Window Simulator
bb84/timeline.py
Attack Detection
- Threshold Detectors
bb84/adaptive_threshold.py - Detection Features
bb84/features.py - Unified Detector
bb84/unified_detector.py
Secure Sessions
- Session Orchestrator
bb84/secure_session.py - PQC Authentication
bb84/pqc.py
Dataset and ML
- Timeline Dataset
generate_timeline_dataset.py - Temporal Feature Engineering
feature_engineering.py - Random Forest Training
train_model.py - Trained Detector
models/rf_detector.joblib
Other components
- Alice and Bob
Connections 23
- Alice and Bob → Session Orchestrator: request session
README.md - Session Orchestrator → Window Simulator: simulate windows
bb84/secure_session.py - Session Orchestrator → Unified Detector: evaluate windows
bb84/secure_session.py - Session Orchestrator → BB84 Protocol: run BB84
bb84/secure_session.py - Session Orchestrator → Qiskit Backend: select backend
bb84/secure_session.py - Session Orchestrator → PQC Authentication: authenticate and derive
bb84/secure_session.py - BB84 Protocol → Photon Model: encode and measure
bb84/protocol.py - BB84 Protocol → Quantum Channel: transmit photons
bb84/protocol.py - BB84 Protocol → Attack Models: apply attack
bb84/protocol.py - Quantum Channel → Photon Model: transmit
bb84/channel.py - Attack Models → Photon Model: intercept and resend
bb84/eavesdropper.py - Qiskit Backend → Photon Model: use bases
bb84/qiskit_protocol.py - Qiskit Backend → Attack Models: apply attack
bb84/qiskit_protocol.py - Window Simulator → BB84 Protocol: run windows
bb84/timeline.py - Window Simulator → Attack Models: configure attacks
bb84/timeline.py - Window Simulator → Decoy Statistics: measure decoy gap
bb84/timeline.py - Unified Detector → Threshold Detectors: combine thresholds
bb84/unified_detector.py - Unified Detector → Detection Features: use features
bb84/unified_detector.py - Session Orchestrator → PQC Authentication: sign exchanges
bb84/secure_session.py - Timeline Dataset → Window Simulator: generate from
generate_timeline_dataset.py - Timeline Dataset → Temporal Feature Engineering: engineer features
README.md - Temporal Feature Engineering → Random Forest Training: train from features
README.md - Random Forest Training → Trained Detector: save model
train_model.py