CCSC Northwestern Regional Conference 2026 · Journal of Computing Sciences in Colleges

Adaptive Machine Learning-Based Noise Mitigation for BB84 Quantum Key Distribution Over Noisy Quantum Channels

Farzin Bahadori, Charles Ganu, and Stacie Spahr

Hal and Inge Marcus School of Engineering, Saint Martin's University, Lacey, WA

Abstract

Quantum Key Distribution (QKD) is theoretically secure, but noise can raise the Quantum Bit Error Rate (QBER) and reduce key-generation efficiency. We present an adaptive machine-learning framework for BB84 under simulated bit-flip, phase-flip, and depolarizing noise. Observable channel statistics classify the dominant noise condition and select a mitigation circuit from 100 evaluated designs. Across six test environments, adaptive selection reduced error by at least 99.6% relative to a bare qubit and was never worse than the evaluated fixed strategy. Independent retransmission outperformed several deeper entangled codes in the simulated noise regime, while gate, readout, and preparation noise had greater impact than channel noise. The results motivate noise-aware adaptive mitigation and validation on physical hardware.

How it works

Standard BB84 only notices noise after the fact, by sacrificing part of the sifted key to estimate QBER. This framework reacts to the channel instead:

  1. Simulate. BB84 runs in Qiskit Aer under bit-flip, phase-flip and depolarizing noise at a range of strengths, with an optional intercept-resend eavesdropper.
  2. Classify. A Random Forest reads session statistics (overall and basis-specific QBER, sifted-key rate, directional bias) and names the dominant noise condition.
  3. Select. The prediction picks a mitigation circuit from a search over 100 designs, scored by worst-case error and circuit depth.
  4. Mitigate and measure. The chosen circuit protects the transmission, and the framework compares error before and after.

Results

FindingResult
Adaptive selection, six test environments (three noise types at strengths 0.08 and 0.14)≥ 99.6% less error than a bare qubit
Channel prediction in those six environments6 of 6 correct
Adaptive selection against the evaluated fixed strategynever worse
Noise classifier, 1,000 sessions, five-fold cross-validation0.83 ± 0.02 accuracy
Noise classifier, held-out 25% split0.82 accuracy
Mitigation circuits searched100

Two results ran against intuition. Independent retransmission beat several deeper entangled codes in this noise regime, and noise at the gates, readout and state preparation hurt more than noise in the channel itself. All results hold under the tested simulated environments; physical hardware is future work.

Line chart: logical error rate falls exponentially as repetition-code distance increases
Figure 1. Logical error falls exponentially as repetition-code distance increases.
Scatter plot of 100 circuits, worst-case error against circuit depth
Figure 2. All 100 circuits plotted by worst-case error against depth; lower and farther left is better.
Bar chart of error by noise location for an entangled circuit
Figure 3. Noise-location sensitivity for an entangled circuit; gate, readout, and preparation noise have greater impact than channel noise.
Chart comparing error for a bare qubit, a fixed strategy and adaptive selection
Figure 4. Adaptive circuit selection reduces error relative to a bare qubit and the evaluated fixed strategy.

Code

Setup and run instructions are in the README.

Citation

@article{bahadori2026adaptive,
  author  = {Bahadori, Farzin and Ganu, Charles and Spahr, Stacie},
  title   = {Adaptive Machine Learning-Based Noise Mitigation for {BB84}
             Quantum Key Distribution Over Noisy Quantum Channels},
  journal = {Journal of Computing Sciences in Colleges},
  note    = {CCSC Northwestern Regional Conference, Whitman College,
             Walla Walla, WA, October 2026},
  year    = {2026}
}