QSBench commited on
Commit
7bc7a81
Β·
verified Β·
1 Parent(s): 2e3c517

Create GUIDE.md

Browse files
Files changed (1) hide show
  1. GUIDE.md +65 -0
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)