jimmy60504's picture
Update QML Classifier Explorer
7fab05e verified
---
title: QML Classifier Explorer
emoji: πŸ”¬
colorFrom: blue
colorTo: purple
sdk: static
pinned: false
---
# QML Classifier Explorer
Static Hugging Face viewer for **HW1 Problem 2** β€” comparing three quantum
machine learning classification methods on two datasets.
## What this experiment is about
Three QML approaches are evaluated on binary classification:
| Method | Description |
|--------|-------------|
| **Explicit Quantum Model** | Encoding circuit S(x) + trainable W(ΞΈ) + measurement |
| **Implicit Quantum Kernel** | Fixed encoding kernel k(xi, xj) passed to SVM |
| **Data Reuploading** | Interleaved encoding and trainable layers (Ref. [4]) |
Two datasets:
- **Circle** β€” concentric ring structure (as used in Ref. [4])
- **Moons** β€” `sklearn.datasets.make_moons(noise=0.1, n_samples=200)`
## Viewer contents
1. **Decision boundary grid** β€” 3 methods Γ— 2 datasets (6 plots)
2. **Training curve** β€” accuracy and loss vs epoch, with step slider
3. **Comparison table** β€” test accuracy, trainable parameters, training time
## Generating runtime data
Run on `gx10`:
```bash
# training + export
ssh gx10 "cd ~/quantum_computing && GX10_DOCKER_NETWORK=gx10-mlflow ./scripts/gx10_run_py.sh HW1/problem2/train.py --run-name q2-l4-e50 --tracking-uri http://gx10-mlflow-server:5001"
```
The export populates `runtime/viewer_data.json` which the viewer picks up
automatically. Without a runtime export the viewer shows the template
placeholder.