State preparation
Random bits $b_i$ are encoded in a random basis — rectilinear $\{|0\rangle,|1\rangle\}$ or diagonal $\{|+\rangle,|-\rangle\}$.
Q-Sec simulates the BB84 protocol on IBM Qiskit Aer — single-photon state preparation, depolarizing channel noise and intercept-resend attacks — and measures exactly when a key stops being secret.
quantum channel
LIVESecurity rests on physics, not on computational hardness: measuring an unknown quantum state disturbs it, and that disturbance is measurable.
Random bits $b_i$ are encoded in a random basis — rectilinear $\{|0\rangle,|1\rangle\}$ or diagonal $\{|+\rangle,|-\rangle\}$.
Photons cross a depolarizing channel $\mathcal{E}_\varepsilon(\rho)$ where an adversary may intercept and resend them.
Bob measures in his own random bases. Over a public channel both keep only positions where the bases agree (~50%).
A sacrificed sample estimates the QBER. Below 11%, a secret key survives at rate $R \ge 1 - 2h(\text{QBER})$.
Every error Bob sees could have leaked to Eve. Error correction plus privacy amplification can remove that leakage — but only while the error rate stays under the Shor–Preskill threshold.
Calibrated configurations that land on each side of the security threshold.
Noiseless fiber, no adversary. Bob recovers Alice’s sifted bits exactly.
Eve measures every photon in a random basis and resends it, disturbing half of them.
Strong depolarizing noise, no adversary. Indistinguishable from an attack — so it aborts too.
Presentation, quantum domain and persistence are strictly decoupled: the views never touch the database, and the simulation core is framework-agnostic and fully unit-tested.
Explore the architectureviews/
business/
datos/
No sign-up needed. Create an account only if you want your experiments saved to a personal history.