Skip to content
SimulatorLanguage models

A pendulum stepped two ways

A pendulum moves through its phase space: angle across, momentum up. Step it with a method that can be run backwards and with one that cannot, and drag its start.

  • across: angle · up: momentum
Energy at the start
0.368
Energy at the end
0.368
Change in energy
0.000
Returns to its start run backwards
Yes
How each step is taken

Switch to Euler with the same step: the trajectory spirals off its curve and cannot be run back. Drag the ring, or tap the plane, to start elsewhere.

What the simulator does

  • The curves are the pendulum's levels of energy: a true trajectory stays on one of them.
  • The leapfrog step (half a kick, a drift, half a kick) keeps the trajectory on its curve, keeps areas of phase space, and returns to its start when run backwards.
  • The Euler step advances angle and momentum from the old values: its energy grows at every step, and it cannot be run back.

In Verace V3

Schematic: one hidden state stepped through the optional symplectic flow, split into position and momentum and moved by learned Hamiltonian dynamics. Verace V3 is a tested prototype with no training run recorded.

Hidden state after the layers
Enters the optional symplectic flow
Position and momentum halves
The two halves of the hidden state
Symplectic Euler kick-drift
A momentum kick, then a position drift, over 10 steps
Phase-space volume
Each sub-step is a shear, so volume is kept

What this is not

This simulator is an illustration of the principle, with made-up numbers. It does not run the lab's code or show the lab's data, and nothing in it is a measurement.

Read the write-up