Spaces:
Sleeping
Sleeping
Create GUIDE.md
Browse files
GUIDE.md
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
You can explore datasets, visualize circuit QASM, and train a classical ML model to predict the noise type.
|
| 2 |
+
|
| 3 |
+
---
|
| 4 |
+
|
| 5 |
+
## π Explorer Tab
|
| 6 |
+
|
| 7 |
+
The **Explorer** tab provides a preview of the dataset:
|
| 8 |
+
|
| 9 |
+
1. **Dataset Dropdown** β Select one of the datasets:
|
| 10 |
+
- Core (Clean)
|
| 11 |
+
- Depolarizing Noise
|
| 12 |
+
- Amplitude Damping
|
| 13 |
+
- Hardware-aware Noise
|
| 14 |
+
|
| 15 |
+
2. **Split Dropdown** β Select the data split (`train`, `test`, etc.).
|
| 16 |
+
3. **Preview Table** β Shows the first 10 circuits in the split.
|
| 17 |
+
4. **Raw QASM** β Original QASM for the selected circuit.
|
| 18 |
+
5. **Transpiled QASM** β QASM after transpilation, if available.
|
| 19 |
+
6. **Info Box** β Displays dataset name and other info.
|
| 20 |
+
7. **Summary Box** β Shows number of rows in the dataset.
|
| 21 |
+
|
| 22 |
+
---
|
| 23 |
+
|
| 24 |
+
## π§ Classification Tab
|
| 25 |
+
|
| 26 |
+
The **Classification** tab allows you to train a Random Forest classifier on the selected features.
|
| 27 |
+
|
| 28 |
+
1. **Input Features** β Select numeric features derived from the circuit:
|
| 29 |
+
- Adjacency features (density, degree mean, etc.)
|
| 30 |
+
- QASM features (length, gate counts, measure count, etc.)
|
| 31 |
+
|
| 32 |
+
2. **Test Split** β Fraction of data used for testing (default `0.2`).
|
| 33 |
+
3. **Trees (n_estimators)** β Number of trees in the Random Forest.
|
| 34 |
+
4. **Max Depth** β Maximum tree depth. Critical parameter; increasing it may cause runtime issues.
|
| 35 |
+
5. **Random Seed** β Seed for reproducibility.
|
| 36 |
+
|
| 37 |
+
Click **Train & Evaluate** to:
|
| 38 |
+
|
| 39 |
+
- Fit the classifier
|
| 40 |
+
- Compute metrics:
|
| 41 |
+
- Accuracy
|
| 42 |
+
- Macro F1
|
| 43 |
+
- Weighted F1
|
| 44 |
+
- Show confusion matrix
|
| 45 |
+
- Show top 10 feature importances
|
| 46 |
+
|
| 47 |
+
> β οΈ Note: Max depth is the most influential hyperparameter. Setting it too high may crash the Space. Start with lower values.
|
| 48 |
+
|
| 49 |
+
---
|
| 50 |
+
|
| 51 |
+
## π Output
|
| 52 |
+
|
| 53 |
+
After training, you will see:
|
| 54 |
+
|
| 55 |
+
1. **Confusion Matrix** β True vs predicted labels.
|
| 56 |
+
2. **Feature Importance** β Most relevant features for classification.
|
| 57 |
+
3. **Metrics** β Overall classification performance.
|
| 58 |
+
|
| 59 |
+
---
|
| 60 |
+
|
| 61 |
+
## π Links
|
| 62 |
+
|
| 63 |
+
- [QSBench Website](https://qsbench.github.io)
|
| 64 |
+
- [Hugging Face Datasets](https://huggingface.co/QSBench)
|
| 65 |
+
- [GitHub Repository](https://github.com/QSBench)
|