HUB
Sign inSign up
teleportcargo-sim logo

credkellar/teleportcargo-sim

By credkellar

โ€ขUpdated 17 days ago

TeleportCargo-Sim: teleportation cargo accounting - Bell pairs, bits, light-time, refusals. Sim lab!

Image
Networking
Developer tools
Data science
1

156

credkellar/teleportcargo-sim repository overview

โ TeleportCargo-Sim ๐Ÿ“ฆโš›๏ธ

Quantum Teleportation Cargo Simulator โ€” by Darion Kellar

Educational teleportation resource-accounting lab in ONE pure-Python file โ€” the cargo desk above the family stack: EntangleNet-Q (physics layer), BellPair-Factory (supply layer), TeleportNet-Router (routing layer). It prices "cargo jobs" โ€” teleporting the quantum state of a payload register โ€” with Werner pairs F = (1 + 3w)/4, DEJMPS purification billed in raw pairs, entanglement swapping by the Werner-weight product rule, teleport output fidelity (2F + 1)/3 against the 2/3 classical limit, a light-speed latency budget, a manifest checker with named refusal reasons, a deterministic FIFO scheduler whose queue decays (memory T2), and a from-scratch kNN regime classifier.

Pure Python standard library. Zero dependencies. Zero network. Honest scope: teleportation moves quantum STATE information only โ€” never matter, never mass, never faster than light. The classical channel is mandatory and light-speed-limited, rebuilding anything physical needs local matter at the far end, and macroscopic matter teleportation is not possible with known physics. Every matter / FTL / live-operation / commercial-cargo claim is a permanent HOLD gate (14 total).

โ ๐Ÿณ Quick start

docker pull credkellar/teleportcargo-sim:latest docker run --rm credkellar/teleportcargo-sim:latest

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

Run a specific command instead:

docker run --rm credkellar/teleportcargo-sim:latest python3 main.py checks # CHECKS 60/60 docker run --rm credkellar/teleportcargo-sim:latest python3 main.py physics # DEJMPS purification economics docker run --rm credkellar/teleportcargo-sim:latest python3 main.py account # worked cargo jobs, full accounting docker run --rm credkellar/teleportcargo-sim:latest python3 main.py latency # light-time floors per route docker run --rm credkellar/teleportcargo-sim:latest python3 main.py manifest # manifest checker verdicts docker run --rm credkellar/teleportcargo-sim:latest python3 main.py queue # FIFO schedule + decay verdicts docker run --rm credkellar/teleportcargo-sim:latest python3 main.py holds # 14 HOLD gates

โ ๐Ÿ”ฌ What's inside

  • The honest core โ€” state information only: 1 Bell pair (consumed) + 2 classical bits per qubit, and the job is not complete until the bits arrive. Never matter, never mass, never faster than light.
  • Purification economics โ€” raw SPDC pairs at F = 0.75 (BellPair-Factory's spdc-line-a, 1,200 pairs/s), DEJMPS rounds compounding the bill by 2/P_success per round: 5 rounds โ†’ F = 0.9231 at 101.09 raw pairs per delivered pair; 6 rounds โ†’ the family's F = 0.9446 at 223.99.
  • Worked cargo jobs โ€” sensor-state-10q (10 qubits, 1 hop: 1,010.93 raw pairs, 20 bits, teleport F = 0.9487, FEASIBLE); register-1000q (1,000 qubits, 2 hops: 202,186.54 raw pairs, 2,000 bits, 168.49 s of production, teleport F = 0.9027); hop-heavy-5q (12 raw hops: chain F = 0.2558, teleport F = 0.5039 โ€” REFUSED, below the 2/3 classical limit).
  • Fidelity chains โ€” swapping multiplies Werner weights; a pair at F = 0.5 teleports at exactly the 2/3 classical limit, the boundary case proven in the checks.
  • Latency budget โ€” one-way light time charged in full: Porter Ranch โ†’ Los Angeles 0.225 ms in fibre, LA โ†’ San Francisco 2.795 ms, Earth โ†’ Moon 1.2822 s in vacuum. No job ever beats its route's light time (asserted).
  • Manifest checker โ€” declared vs measured qubits, target reachable inside the 6-round cap, latency allowance, pair budget. The book's misdeclared manifest (20 qubits declared as 18) is REFUSED: QUBIT_COUNT_MISMATCH.
  • FIFO scheduler โ€” deterministic (arrival, name) order on one factory line; staged pairs decay with T2 = 1.0 s while a job waits. The sensor job waits 167.99 s behind the register job, decays to the F = 0.25 floor, and is REFUSED (QUEUE_DECAY_BELOW_CLASSICAL); alone, it delivers.
  • TinyML kNN classifier โ€” feasible / costly / infeasible from (qubits, hops, target F); training labels generated by the accounting model itself, agreement asserted in the checks.
  • Advisory seats โ€” Gemini Carbon 4 DECIDER (names-only, tighten-only, sha256 trace), Muse advisor (can never override HOLD), Google Flow plan-only (rendered = False, live = 0).

โ โœ… Verified

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

โ ๐Ÿท๏ธ Categories

Science ยท Networking ยท Developer tools

  • License: MIT ยฉ 2026 Darion Kellar
  • Image: credkellar/teleportcargo-sim:latest
Tag summary
Recent tags
Content type
Image
Digest
sha256:9388205e5โ€ฆ
Size
41.5 MB
Last updated
17 days ago
docker pull credkellar/teleportcargo-sim:latest