drag to orbit · scroll to zoom

Trotterized Quantum Time Evolution (2D)

Real quantum computers cannot apply an arbitrary Hamiltonian directly — they build up continuous-time evolution from short bursts of elementary gates, using the Trotter–Suzuki product formula. This 2D companion evolves a single qubit under H = hxX + hzZ exactly the same two ways as the 3D simulator: analytically, via the closed-form Rabi precession solution (a smooth cyan circle on the Bloch sphere), and digitally, by chaining first- or second-order Trotter gate sequences (a jagged magenta path) — only the rendering is different, a flat orthographic projection you orbit by dragging instead of a full WebGL scene. Adjust the field strengths and the number of Trotter steps to watch the gate-based approximation converge onto the true trajectory, and read the live infidelity between the two quantum states as the gap closes.