Quantum Teleportation State Explorer
Standalone browser demo

Browser demo for constrained CV teleportation state optimization

This HTML version removes Tkinter, file saving, desktop windows, and Python dependencies. It runs directly in the browser using JavaScript, Canvas plots, a simplified Fock-basis Wigner engine, and a lightweight random/local optimizer for website demonstrations.

Single-mode teleportation

Optimize one Fock-basis state and compare it with coherent, squeezed, Fock, and cat references.

Two-mode teleportation

Placeholder for future browser extension. The full two-mode optimizer is computationally heavier and is not enabled in this lightweight demo.

1. Configure

Set cutoff, energy, squeezing, gain, detector efficiency, thermal noise, phase diffusion, and optimizer limits.

2. Optimize

The demo searches over complex Fock coefficients cn while preserving normalization and target mean photon number.

3. Compare

Run in-browser comparison plots. No files are saved and no external Python backend is required.

Setup / Optimize

For a website demo, keep Ncut ≤ 12 and grid points ≤ 65 for smooth browser performance.

Numerical settings

Teleportation channel

Ready. This demo runs entirely in your browser. No plots or files will be saved.

Optimization Results

Input Wigner function

Teleported output Wigner function

Photon-number distribution

Optimization history

Optimized state

Run optimization first.

Comparison & Validation Tests

Runs reference-state tests and sweep plots inside the app. Save/export buttons are intentionally removed for website deployment.

Run an optimization first.

State metrics

StateFidelityEnergyNeg inNeg outSurvivalOverlap

Comparison fidelities

Fidelity vs squeezing r

About this browser version

This is a standalone HTML/JavaScript demo designed for embedding in a website. It is not a full replacement for the Python/QuTiP desktop research version. The Python version uses QuTiP, SciPy optimization, Tkinter, Matplotlib TkAgg, threaded workers, and export folders. This browser version keeps the core educational idea: optimize Fock coefficients, apply a noisy Wigner-space teleportation channel, and compare with reference states.

What was removed

TkinterFigureCanvasTkAggFile savingOpen folder buttonsPython backendQuTiP dependency

What remains

Single-mode Fock statesWigner plotsFidelityNegativityRandom/local optimizerComparison sweeps

Embedding tip

Upload this single HTML file to your website and link it as a demo page, or copy the body content into a page section. For heavy research runs, keep using the Python desktop app or a proper backend server.