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.
Optimize one Fock-basis state and compare it with coherent, squeezed, Fock, and cat references.
Placeholder for future browser extension. The full two-mode optimizer is computationally heavier and is not enabled in this lightweight demo.
Set cutoff, energy, squeezing, gain, detector efficiency, thermal noise, phase diffusion, and optimizer limits.
The demo searches over complex Fock coefficients cn while preserving normalization and target mean photon number.
Run in-browser comparison plots. No files are saved and no external Python backend is required.
For a website demo, keep Ncut ≤ 12 and grid points ≤ 65 for smooth browser performance.
Runs reference-state tests and sweep plots inside the app. Save/export buttons are intentionally removed for website deployment.
| State | Fidelity | Energy | Neg in | Neg out | Survival | Overlap |
|---|
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.
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.