Quantum Channel Monitoring System (QCMS)
A real-world quantum-secured communication and channel surveillance system combining quantum-secure teleportation transport with real-time channel threat auditing.
🏛️ Repository Architecture
This repository is organized into two primary frameworks:
Quantum-Channel-Monitoring-System/
├── QuSec/ # Quantum-Secure Transport & Teleportation Framework
│ ├── src/qusec/ # Core Python library (Node runtime, Quantum, Hardware, Crypto)
│ ├── tests/ # Unit & integration test suites
│ ├── firmware/ # ESP32 C++ firmware for hardware TRNG & classical relay
│ ├── web/ # Web platform bridge SDK & live browser testbench
│ ├── pyproject.toml # Standalone pip package configuration
│ └── README.md # In-depth QuSec documentation & CLI guide
│
├── QAuditor/ # Quantum Channel Threat Auditing & Monitoring (Upcoming)
│ └── ... # Active eavesdropping detection, QBER telemetry & auditor nodes
│
└── README.md # System overview & hardware topology
🔬 System & Hardware Architecture
The end-to-end setup implements a physical 4-node quantum communication and auditing topology:
Sender Laptop Receiver Laptop
┌───────────────────────┐ ┌───────────────────────┐
│ QuSec Node (Sender) │ │ QuSec Node (Receiver) │
│ ├── Gateway REST/SSE │ │ ├── Gateway REST/SSE │
│ ├── Key Pool (OTP) │ │ ├── Key Pool (OTP) │
│ └── Teleport Engine │ │ └── Teleport Engine │
└──────────┬────────────┘ └───────────┬───────────┘
│ USB Serial (115200) │ USB Serial (115200)
┌──────────▼────────────┐ ┌───────────▼───────────┐
│ ESP32 Sender │◄─── Classical Wireless ──►│ ESP32 Receiver │
│ (TRNG + Wi-Fi Relay) │ (Wi-Fi / ESP-NOW) │ (TRNG + Wi-Fi Relay) │
└───────────────────────┘ └───────────────────────┘
│ Ethernet │ Ethernet
┌──────────▼────────────┐ ┌───────────▼───────────┐
│ Optical Transceiver │◄════ Optical Fibre Cable ═►│ Optical Transceiver │
│ Media Converter │ (Quantum Channel) │ Media Converter │
└───────────────────────┘ └───────────────────────┘
▲ ▲
│ │
[Attacker / Eve] [Auditor / QAuditor]
ESP32 + Intercept ESP32 + QBER Probe
Physical Hardware Components
- 4 ESP32 Microcontrollers:
- Sender ESP32: Generates quantum randomness via hardware
esp_random()TRNG and acts as the sender's classical Wi-Fi bridge. - Receiver ESP32: Coordinates classical reconciliation frames and timing synchronization.
- Attacker ESP32 (Eve): Intercept-resend and channel disturbance simulator.
- Auditor ESP32 (QAuditor): Independent channel surveillance and telemetry probe.
- Sender ESP32: Generates quantum randomness via hardware
- Optical Transceiver Pair & Fibre Cable:
- Media converters connecting via high-speed optical fibre carrying simulated quantum carrier frames over Ethernet.
- 2 Ethernet Cables:
- Direct physical connection between Sender Laptop and Optical Media Converter, and between Receiver Laptop and Optical Media Converter.
- Endpoint Laptops:
- Running full-duplex QuSec nodes, local quantum circuit emulation (Qiskit / Aer), and social media web bridge gateways.
⚡ Quickstart: QuSec Package
QuSec is a fully standalone Python package packaged under the QuSec/ directory.
Installation
Option 1: Install from Local Clone
git clone https://github.com/tShivam25/Quantum-Channel-Monitoring-System.git
cd Quantum-Channel-Monitoring-System/QuSec
pip install -e .
Option 2: Direct Global Installation via Pip
pip install "git+https://github.com/tShivam25/Quantum-Channel-Monitoring-System.git#subdirectory=QuSec"
Diagnostics & Self-Test
Verify all hardware, serial ports, and network channels:
qusec doctor
Continuous Interactive Quantum Chat
Start continuous two-way quantum chat directly in your terminal (loops continuously until you turn it off):
# On Sender Laptop:
qusec chat --role sender
# On Receiver Laptop:
qusec chat --role receiver --peer-host <SENDER_IP>
Run Live Visual Dashboard Node
# On Sender Laptop:
qusec node --role sender
# On Receiver Laptop:
qusec node --role receiver --peer-host <SENDER_IP>
Launch Attacker Console on 3rd Laptop (qusec attacker)
Connect the Attacker ESP32 to the 3rd laptop and start the Claude Code styled adversary console:
# Interactive Claude Code TUI:
qusec attacker --target-host <RECEIVER_IP>
# Automated random in-between chat attacks:
qusec attacker --target-host <RECEIVER_IP> --random
For complete technical specifications, mathematical protocols (SARG04 + 3-qubit Bell teleportation), and REST API documentation, see the QuSec Subdirectory Documentation.
📄 License
MIT License.
Metadata
Release files for qusec 0.2.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| qusec-0.2.5.tar.gz | 89.5 kB | Without provenance | Details for qusec-0.2.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| qusec-0.2.5-py3-none-any.whl | Python 3 | none | any | Details for qusec-0.2.5-py3-none-any.whl |
Total release size: 190.7 kB
Release files / qusec-0.2.5.tar.gz
| Download URL | qusec-0.2.5.tar.gz |
|---|---|
| Size | 89.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c071cfd404ee9df39e05e6f5c35dcbad7504f63878c52b4f059fe79cb901c8c6
|
|
BLAKE2b-256 checksum How to use checksums |
b7f3f662d4f63e6377238b3a6dc204713280fb29b1a7fdb2169ff04d70bbe65d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / qusec-0.2.5-py3-none-any.whl
| Download URL | qusec-0.2.5-py3-none-any.whl |
|---|---|
| Size | 101.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f2a1e677d29b794f53480480c51e12e8dd7c30b2e1f288a96b39e566c9974082
|
|
BLAKE2b-256 checksum How to use checksums |
bc9ac0c0ed456a9ddd23e550a4a47d7ebed6925b9eda0dd23c5a135349e98c96
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Security for qusec 0.2.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.