HUB
Sign inSign up
quantumtransduction-lab logo

credkellar/quantumtransduction-lab

By credkellar

β€’Updated 17 days ago

QuantumTransduction-Lab: microwave-to-optical transduction lab - cooperativity, thermal noise. Sim!!

Image
Machine learning & AI
Developer tools
Data science
1

135

credkellar/quantumtransduction-lab repository overview

⁠QuantumTransduction-Lab πŸ”„βš›οΈ

Microwave-to-Optical Quantum Transduction Lab β€” by Darion Kellar

Educational quantum transduction lab in ONE pure-Python file: the standard beam-splitter cooperativity formula eta_int = 4C1C2 / (1 + C1 + C2)^2 evaluated honestly β€” matched C = 100 reaches 0.990075 while the same budget split 199/1 collapses to 0.019702 β€” Bose-Einstein thermal occupation at a labelled 5 GHz microwave mode from exact SI constants (n_th = 16.174294 at 4 K, 0.099810 at 100 mK, 3.79e-11 at 10 mK), a labelled added-noise model N_add = n_th / C_harm with an explicit quantum-enabled policy line (eta_total >= 0.5 AND N_add < 1), series-linewidth bandwidth bookkeeping (6.6667 MHz, time-bandwidth product 1.0000 for a 150 ns pulse), an extraction tradeoff with a real interior peak (eta_total 0.888980 at r = 0.99, collapsing to 0.443556 at r = 0.999), a grid scan under a labelled pump cap that finds the matched optimum itself, and a from-scratch kNN verdict classifier whose labels come from the lab's own policy.

Pure Python standard library. Zero dependencies. Zero network. Honest scope: every parameter is a LABELLED teaching value β€” no transducer was built, cooled, pumped, or measured, and every efficiency is a statement about the formula at the stated inputs, never a hardware promise or a device specification. Efficiency is not fidelity, and neither is promised. Every hardware / quantum-network / entanglement / QKD / vendor use is a permanent HOLD gate (14 total).

⁠🧰 Tech Stack Badges & Full Architecture Tech Stack

β πŸ’» Core Programming Languages & Core Systems

Python Stdlib Only Network Deterministic License

  • 🐍 Python 3.12, pure standard library (math, hashlib, json, sys) β€” zero dependencies, zero network, deterministic (double-run byte-identical)
  • πŸ”„ Transduction physics core: the beam-splitter cooperativity efficiency 4Β·C1Β·C2/(1 + C1 + C2)Β², Bose–Einstein thermal occupation from exact SI constants (h, k_B), a labelled added-noise model N_add = n_th / C_harm, series-linewidth bandwidth, and the extraction tradeoff C(r) = C0Β·(1 βˆ’ r) β€” every headline number asserted against its analytic value in CHECKS
  • πŸ—ΊοΈ Operating-point scan: an 11Γ—11 (C1, C2) grid swept under a labelled pump cap (C1 + C2 ≀ 200), reporting its own optimum and a fixed-sum matched-vs-lopsided contrast
  • 🧠 TinyML kNN verdict classifier (from scratch, stdlib): quantum-enabled / efficient-but-noisy / quiet-but-lossy / unusable from (eta, N_add)
  • πŸͺ‘ Council seats: Gemini Argon 4 DECIDER (names-only, tighten-only) + Muse advisor (never overrides HOLD) + Google Flow plan-only (rendered = False, live = 0)
⁠⛓️ Web3 & Infrastructure
  • 🚫 Not applicable β€” honestly. No blockchain, no Web3, no tokens: the "infrastructure" in this lab is a labelled evaluation of converter formulas inside one offline file. Quantum-network deployment is a permanent HOLD gate, not a feature. No fake badges here.
β βš™οΈ Platform Support & Hardware Architecture

Linux macOS Windows

  • πŸ–₯️ Pure Python β€” runs anywhere Python 3.12+ runs (Linux, macOS, Windows), plus the python:3.12-slim Docker image
  • πŸ”’ No hardware is controlled, ever: real transducers, cryostats, lasers, and microwave sources are permanent HOLD gates (see the gate table below)
⁠⚑ Low-Level Infrastructure & Performance
  • 🚫 No low-level code β€” honestly. No C, no C++, no GPU, no compiled extensions: this is one interpreted Python file on purpose, so every number can be read, checked, and diffed. Performance here means honest algorithms β€” closed-form efficiency and occupation formulas, an exhaustive grid scan under the cap, and a kNN over a policy-labelled grid β€” all deterministic and byte-identical between runs.
β πŸ› οΈ DevOps & Build Tools

Docker GitHub Actions pytest Git

  • 🐳 Docker (python:3.12-slim), GitHub Actions CI + Docker Publish (delivered in the paste pack)
  • 🎯 Target image: credkellar/quantumtransduction-lab:latest
  • πŸ§ͺ Tests: pytest (24 tests) + the built-in CHECKS suite (50 checks) in main.py
⁠☁️ Cloud Providers
  • 🚫 None β€” honestly. No cloud provider is used or needed: the lab runs fully offline on your own machine or in a local Docker container. Docker Hub appears only as the registry the publish workflow pushes the image to.

⁠🐳 Quick start

docker pull credkellar/quantumtransduction-lab:latest
docker run --rm credkellar/quantumtransduction-lab:latest

The default command runs the full demo plus the built-in self-checks (CHECKS 50/50).

Run a specific command instead:

docker run --rm credkellar/quantumtransduction-lab:latest python3 main.py checks    # CHECKS 50/50
docker run --rm credkellar/quantumtransduction-lab:latest python3 main.py convert   # matched vs mismatched efficiency (JSON)
docker run --rm credkellar/quantumtransduction-lab:latest python3 main.py noise     # n_th at 4 K / 100 mK / 10 mK + N_add (JSON)
docker run --rm credkellar/quantumtransduction-lab:latest python3 main.py bandwidth # 6.6667 MHz, TBP, extraction tradeoff (JSON)
docker run --rm credkellar/quantumtransduction-lab:latest python3 main.py scan      # best point under the C1 + C2 <= 200 cap (JSON)
docker run --rm credkellar/quantumtransduction-lab:latest python3 main.py classify  # kNN verdicts: quantum-enabled / noisy / lossy / unusable
docker run --rm credkellar/quantumtransduction-lab:latest python3 main.py holds     # 14 HOLD gates

β πŸ”¬ What's inside

  • Cooperativity conversion, exact β€” eta_int at matched C = 1 / 10 / 100 is 0.444444 / 0.907029 / 0.990075; with the labelled 0.90 extraction on both ports, eta_total is 0.360000 / 0.734694 / 0.801960. Unity is a matched strong-coupling limit, printed as a limit.
  • The mismatch cliff β€” C1 = 100 against C2 = 1 gives eta_int 0.038447, a 26x collapse; the fixed-sum contrast at C1 + C2 = 200 prices allocation directly: 0.990075 (100/100) vs 0.742556 (150/50) vs 0.019702 (199/1).
  • Thermal occupation from exact SI β€” hf/k = 0.239962 K at 5 GHz; n_th falls 16.174294 -> 0.099810 -> 3.79e-11 across 4 K -> 100 mK -> 10 mK, and the high-temperature limit is checked against kT/hf - 1/2.
  • Added noise + the quantum-enabled line β€” N_add = n_th / C_harm at matched C = 10: 1.61743 at 4 K (efficient-but-noisy), 0.009981 at 100 mK (quantum-enabled), 3.79e-12 at 10 mK. Same converter, different verdicts β€” both computed.
  • Bandwidth bookkeeping β€” labelled loaded linewidths 10 MHz (microwave) and 20 MHz (optical) combine in series to 6.6667 MHz; the labelled 150 ns pulse gives a time-bandwidth product of exactly 1.0000.
  • Extraction tradeoff β€” C(r) = 1000*(1 - r) per side: eta_total peaks at r = 0.99 (0.888980, 100 MHz) and collapses at r = 0.999 (0.443556) while bandwidth balloons to 1000 MHz β€” the exchange rate is printed.
  • Operating-point scan β€” 81 grid points evaluated under the labelled cap C1 + C2 <= 200; the best point found is the matched C1 = C2 = 100 (eta_total 0.801960), discovered by the sweep, not assumed.
  • TinyML kNN classifier β€” quantum-enabled / efficient-but-noisy / quiet-but-lossy / unusable from (eta, N_add); labels generated by the lab's own verdict policy over its training grid.
  • Advisory seats β€” Gemini Argon 4 DECIDER (names-only, tighten-only, sha256 trace), Muse advisor (can never override HOLD), Google Flow plan-only (rendered = False, live = 0).

β βœ… Verified

  • pytest: 24 passed
  • Built-in checks: CHECKS 50/50
  • Deterministic: double-run byte-identical
  • Base image: python:3.12-slim

⁠🏷️ Categories

Science Β· Developer tools Β· Machine learning & AI

  • License: MIT Β© 2026 Darion Kellar
  • Image: credkellar/quantumtransduction-lab:latest
Tag summary
Recent tags
Content type
Image
Digest
sha256:7009cab49…
Size
41.5 MB
Last updated
17 days ago
docker pull credkellar/quantumtransduction-lab:latest