Home▸Machine Learning & Neural Networks▸Quantum Advanced Quantum Machine Learning Simulation

Quantum Data Re-Uploading Classifier

Train a single-qubit quantum classifier live: watch a Bloch-sphere state get re-encoded and rotated layer by layer, track the decision boundary sharpen on a 2D dataset, and see the exact parameter-shift gradients driving the learning.

Machine Learning & Neural Networks2DModerate60 FPS📱 Mobile-adapted
quantum-advanced-quantum-machine-learning-simulation ↗ Open standalone

This simulation trains a real single-qubit quantum machine learning model — the "data re-uploading" classifier — on a 2D dataset, live in the browser. A classical feature (x, y) is repeatedly encoded onto a qubit's Bloch sphere and interleaved with trainable rotations across configurable layers; gradient descent uses the exact quantum parameter-shift rule to update those rotation angles every epoch, sharpening the decision boundary shown on the 2D panel while the 3D Bloch sphere animates the exact rotation trajectory a probed point takes through the circuit. Switch between a circular and an XOR-shaped target concept, add re-upload layers to increase the qubit's expressivity, and watch loss and accuracy converge as the single qubit learns to classify data it was never explicitly programmed to separate.

⚙ Under the hood

This simulation explores the complex interplay between quantum mechanics and machine learning algorithms, allowing users to visualize how quantum phenomena can be leveraged for enhanced computational capabilities. By manipulating simulated quantum systems, learners can observe the potential impact on machine learning processes like pattern recognition and data analysis.

Quantum Machine Learning

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

What did you find?

Add reproduction steps (optional)