QN Bench: Build Real Quantum Network Links on an Interactive Optical Bench

Rust + WebAssembly • Quantum Networking Simulator QN Bench: Build Real Quantum Network Links on an Interactive Optical Bench QN Bench is an educational 2D optical-bench puzzle game built in Rust (eframe/egui) that teaches the real physics and optical hardware stack behind quantum networks—from single-photon frequency conversion…

Research Computing & Data Platforms
Research Computing & Data Platforms
resources-icon-news
Blog

12.01.2026

Rust + WebAssembly • Quantum Networking Simulator

QN Bench: Build Real Quantum Network Links on an Interactive Optical Bench

QN Bench is an educational 2D optical-bench puzzle game built in Rust (eframe/egui) that teaches the real physics and optical hardware stack behind quantum networks—from single-photon frequency conversion and Hong-Ou-Mandel interference to live BB84 / E91 QKD + FIPS-197 AES-256 encryption and Quantum Teleportation.

21 Campaign Labs (Lab 0 – L20)
Free-Build Sandbox & Shareable URLs
Live FIPS-197 AES-256 Inspector
Web, macOS Universal & Windows x64

Why an Optical Bench Puzzle Game?

Quantum networking is often taught through abstract circuit diagrams, hiding the physical engineering required to move a single photon from a trapped-ion or diamond NV-center node across kilometers of noisy telecom fiber. QN Bench puts those physical constraints directly on a 2D optical breadboard.

Before you even fire a photon, a Live Alignment Laser traces your beam path in real time, flagging fiber absorption hazards, polarization drift, chromatic dispersion, and picosecond arrival mismatches while live oscilloscopes monitor fidelity, Raman pump noise, and detector lock.

QN Bench Level 1 showing the Live Alignment Laser detecting 780nm fiber absorption before Quantum Frequency Conversion, alongside live Fidelity, Raman Noise, and SNSPD oscilloscopes.
Level 1: The Wavelength Barrier & Live Alignment Laser
Convert 780nm trapped-ion photons to 1550nm telecom wavelengths with a PPLN QFC, strip Raman pump noise with a Volume Bragg Grating, and verify your path before firing.

21 Hands-On Labs Across Two Acts

Starting from an introductory Lab 0 Orientation and progressing through 20 full engineering challenges, each level introduces a real-world quantum networking bottleneck and the optical component used to overcome it:

Lab 0 & Levels 1–3

Transduction & Long-Haul Links

Convert 780nm ion photons to 1550nm via PPLN QFC, filter Raman pump noise with VBG filters, route around cryostats, and restore fidelity using Quantum Memory.

Levels 4–8

HOM Swapping, WDM & PMD

Equalize picosecond path delays for Hong-Ou-Mandel Bell-State Measurement, multiplex perpendicular beams, survive lit telecom fiber coexistence, and correct polarization drift with Half-Wave Plates.

Levels 9–16

Distillation, Satellites & QKD

Purify noisy pairs for fault-tolerant QPUs (≥90%), bridge hybrid 780nm Ion + 637nm Diamond NV nodes, stabilize atmospheric satellite downlinks with Adaptive Optics, run BB84/E91 QKD past Eve, and chain multi-hop heralded repeaters.

Levels 17–20 (Act II)

Dispersion, Dichroic WDM & Teleportation

Compensate Chromatic Dispersion with Dispersion-Compensating Fiber (DCF), split wavelengths with dichroic WDM routers, and culminate in Bennett et al. (1993) Quantum Teleportation.

Real Cryptography, Free-Build Sandbox & Classroom Tools

On QKD levels and custom Sandbox benches, photons aren’t just score counters. QN Bench sifts raw polarization and Bell-state measurements, checks the CHSH Bell inequality (S > 2.0) against eavesdroppers, runs SHA-256 privacy amplification, and derives identical 256-bit keys for Alice and Bob so you can type custom messages and watch live FIPS-197 AES-256-CTR encryption and decryption in Rust.

QN Bench QKD and FIPS-197 AES-256 Inspector showing sifted photon bits, derived 256-bit hexadecimal keys for Alice and Bob, plaintext input, ciphertext, and decrypted output.
Live QKD & FIPS-197 AES-256 Inspector
Inspect sifted bits, derived 256-bit keys, and encrypt or decrypt your own messages live.
QN Bench Free-Build Sandbox Mode running a shareable E91 QKD bench with live CHSH S=2.83 telemetry and locked 256-bit AES encryption.
Free-Build Sandbox & Shareable #bp= Links
Build custom quantum networks with unlimited optics and share playable browser URLs in one click.

  • Single-Step Frame Debugger: Pause any experiment and step forward +5ps at a time to inspect photon wavelength, polarization, and fidelity tile by tile.
  • 21 Companion Lab Video Guides: Every lab (Lab 0 through Level 20) includes a built-in YouTube walkthrough accessible right from the bench.
  • Quantum Lab Report & Accessibility: Track 1–3 star efficiency ratings across all labs with one-click Markdown export, plus a high-contrast Colorblind Pattern Mode and Touch/Tap Erase Mode for tablets and trackpads.

Pure Rust, Zero External Media, Runs Everywhere

Every optical component, oscilloscope trace, and synthesized lab sound effect in QN Bench is 100% procedurally generated in Rust with zero external image or audio assets. The exact same codebase compiles to:

  • WebAssembly (Instant Play): Launch directly in any modern desktop or mobile browser with zero installation.
  • macOS Universal (Apple Silicon & Intel): Signed with Apple Developer ID and notarized by Apple (.dmg).
  • Windows 10/11 (x64): Per-user installer (.exe, no admin required) and portable .zip, with permission-based in-app self-updates verified via SHA-256.

Ready to Align Your First Quantum Link?

Jump straight into the browser app, grab a native desktop build for macOS or Windows, or explore the Rust source code and physics test suite on GitHub.