Home▸Quantum Computing▸Quantum Autoencoder 2D: Compressing Qubit States

Quantum Autoencoder 2D: Compressing Qubit States

Train a real parameterized quantum circuit to compress a family of 2-qubit states into 1 latent qubit, watching the trash qubit's Bloch-disk projection converge to |0⟩ live via the parameter-shift rule — 2D side-view edition.

Quantum Computing2DAdvanced60 FPS📱 Mobile-adapted⇄ 3D version
2d-ai-topic-70 ↗ Open standalone

Quantum autoencoders compress a family of quantum states into fewer qubits by training a parameterized circuit so the discarded "trash" qubits collapse toward |0⟩ — the same idea as a classical autoencoder's bottleneck, but the cost function and gradients come from real quantum mechanics. This 2D side-view simulator runs the same genuine 2-qubit variational circuit against the canonical training family cos(φ)|00⟩+sin(φ)|11⟩, computing gradients with the parameter-shift rule used on real quantum hardware and updating the parameters with gradient descent. Watch the batch of trash-qubit points drift across the Bloch-disk projection from scattered positions toward the top pole as compression fidelity climbs, while the latent qubit keeps encoding the original information for any φ you select. Drag the canvas to pan and scroll/pinch to zoom the view.

⚙ Under the hood

Train a real 2-qubit variational circuit with the genuine parameter-shift rule to compress a family of entangled states into one latent qubit, watching the trash-qubit Bloch-disk projection converge toward |0⟩ as fidelity climbs. A 2D side-view rendering of the same quantum-autoencoder mechanic as the 3D version; drag the canvas to pan and scroll or pinch to zoom.

quantum-computingquantum-machine-learningbloch-sphereparameter-shift-rulevariational-circuitqubit2d

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)