HomeQuantum ComputingQuantum Autoencoder: Compressing Qubit States

Quantum Autoencoder: 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 vector converge to |0⟩ live via the parameter-shift rule.

Quantum Computing3DAdvanced60 FPS📱 Mobile-adapted
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 simulator runs a 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 Bloch vectors drift from scattered points toward the north pole as compression fidelity climbs, while the latent qubit keeps encoding the original information for any φ you select.

⚙ Under the hood

Train a real 2-qubit parameterized circuit with the quantum parameter-shift rule to compress a family of entangled states into one latent qubit while the trash qubit's Bloch vector converges live to |0⟩.

quantum machine learningquantum autoencodervariational circuitparameter-shift rulebloch spherequbit compression

3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)