Back to age-quantum.org Temporal-mode laboratory · 7 simulators · ES/EN

AGE · Temporal-mode laboratory

Help and how it works

Everything you need to use the laboratory, understand its PHP/JSON structure and add new simulators.

How to use the laboratory

The home page groups simulators into collections. Press «Open simulator» to enter its page: there you get the bilingual description, a tip to get started and the simulator framed and ready to operate. Inside each simulator you get tabs with different views (oscilloscope, sweeps, audit, learning, model and sources), preset configurations and its own EN/ES button.

7 of 7 simulators · Languages: ES / EN

Two synced languages

Switch language with the ES/EN buttons in the header: it is remembered in a cookie and applied across the site. When you open a simulator, PHP passes your chosen language to it and applies it on the fly; if your browser is set to another language, the simulator still respects the site's choice. The preference is also kept in the URL (?lang=es or ?lang=en), so any link can be shared already translated.

The JSON database

No MySQL, no dependencies: two JSON files act as the database. data/simulators.json is the catalogue (collections, cards, es/en titles and descriptions, files, levels and tags); data/visits.json stores the visit counter that PHP increments with file locking to prevent corrupt writes. The site is rebuilt from these files on every request: editing the JSON is enough to reorder, rename or add simulators.

  • data/simulators.json · Simulators, Collections, ES/EN
  • data/visits.json · Recorded visits
  • lang/es.json · lang/en.json · UI

Adding a new simulator

1) Copy the self-contained HTML into the sims/ folder. 2) Add an entry to the «simulators» array in data/simulators.json with its slug, file, collection, order and es/en texts. 3) Done: the home page, the card, previous/next navigation and the counter are generated automatically. For a third language, create lang/xx.json with the same keys and add «xx» to meta.languages.

  • sims/ → HTML autocontenido
  • data/simulators.json → slug, file, category, order, *_es, *_en

Run and deploy

Locally: open a terminal in the project folder and run «php -S localhost:8080 app.php»; open http://localhost:8080/temporal-modes-lab/ (PHP 7.4 or newer; no extra extensions; app.php enables clean URLs like /temporal-modes-lab/en/simulators/lab-01/). On a server: extract the ZIP at the web root and serve the temporal-modes-lab/ folder, which is already wired as the URL base. The included .htaccess enables clean URLs on Apache with no extra configuration.

php -S localhost:8080 app.php

Where the content comes from

The seven simulators are the laboratory's original HTML files, served unmodified: PHP only injects a small language/theme sync script on the fly. The physics of the TM benches builds on the published parameters of ETH Zurich's 30 m link; the v2 engines include built-in audits inside each simulator.

Quick questions

Do the simulators need an internet connection?
All computation is local; only the IBM Plex fonts load from Google Fonts, and offline the system font is used.
Why does the export button disappear inside the frame?
By the simulators' own design: they hide the download when framed. Use «Fullscreen» to export the JSON with its fingerprint.
Are my settings lost when I reload?
Each simulator starts from its preset configurations; settings are per session. Site language and theme are remembered.

Simulators · 7

  1. LAB 01 Build a photonic circuit and watch the light travel
  2. TM-01 30 m link test bench
  3. TM-02 Minimum norm and realizability: C2⋆ versus C3
  4. TM-03 Calibrating the minimum-norm receiver C2⋆
  5. TM-04 Can the receiver follow the filter the algebra asks for?
  6. TM-05 Two-node chiral cascade bench
  7. TM-06 Does C2⋆ selectivity survive decoherence?