How dwibon/qsentinel works
QSentinel is a simulation-based threat-detection prototype for teleportation-based quantum digital signatures. A user runs a test or verifies a signature in the React interface; the client calls the backend, which invokes signature or detection logic. The runtime models sentinel schedules, Pauli protection, teleportation, attacks and noise, then measures an axis-resolved fingerprint and combines statistical and protocol checks into a verdict. The graph also preserves the documented Bell-stabilizer capability. Source excerpts show the simulation and orchestration calls; the backend/API link is documented, while some backend internals are only identified by the source index.
Main entry points: qds.py QDS Signatures · qsentinel_pipeline.py Detection Pipeline · teleportation_pipeline.py Channel Pipeline · app.py Backend API
Components 17
User Interface
- Threat Dashboard
QSentinel_Frontend_Animated/src/App.jsx - API Client
QSentinel_Frontend_Animated/src/api.js
API Service
- Backend API
backend/app.py - QDS Signatures
src/qds.py
Quantum Simulation
- Channel Pipeline
src/teleportation_pipeline.py - Teleportation
src/teleportation.py - Attack Models
src/attacks.py - Channel Noise
src/noise.py - Quantum States
src/states.py - Pauli Twirl
src/twirl.py - Bell Stabilizers
src/stabilizers.py
Detection and Protocol
- Detection Pipeline
src/qsentinel_pipeline.py - Sentinel Schedule
src/sentinels.py - Sentinel Measurement
src/sentinel_measurement.py - Statistical Detector
src/detector.py - Protocol Checks
src/protocol.py
Other components
- User
Connections 25
- User → Threat Dashboard: runs tests
README.md - Threat Dashboard → API Client: requests actions
QSentinel_Frontend_Animated/src/App.jsx - API Client → Backend API: calls API
README.md - Backend API → QDS Signatures: invokes QDS
backend/app.py - Backend API → Detection Pipeline: runs detection
- QDS Signatures → Teleportation: teleports states
src/qds.py - QDS Signatures → Attack Models: applies attacks
src/qds.py - QDS Signatures → Channel Noise: applies noise
src/qds.py - QDS Signatures → Sentinel Measurement: measures sentinels
src/qds.py - QDS Signatures → Sentinel Schedule: derives schedule
src/qds.py - QDS Signatures → Pauli Twirl: protects states
src/qds.py - QDS Signatures → Statistical Detector: evaluates errors
src/qds.py - QDS Signatures → Protocol Checks: checks session
src/qds.py - Detection Pipeline → Channel Pipeline: sends through channel
src/qsentinel_pipeline.py - Detection Pipeline → Sentinel Schedule: generates schedule
src/qsentinel_pipeline.py - Detection Pipeline → Pauli Twirl: applies Pauli layer
src/qsentinel_pipeline.py - Detection Pipeline → Sentinel Measurement: measures sentinels
src/qsentinel_pipeline.py - Detection Pipeline → Statistical Detector: evaluates fingerprint
src/qsentinel_pipeline.py - Detection Pipeline → Protocol Checks: checks protocol
src/qsentinel_pipeline.py - Channel Pipeline → Teleportation: teleports state
src/teleportation_pipeline.py - Channel Pipeline → Attack Models: applies attack
src/teleportation_pipeline.py - Channel Pipeline → Channel Noise: applies channel noise
src/teleportation_pipeline.py - Channel Pipeline → Quantum States: measures state
src/teleportation_pipeline.py - Sentinel Schedule → Quantum States: creates sentinel states
src/sentinels.py - Sentinel Measurement → Quantum States: measures states
src/sentinel_measurement.py