QSBench commited on
Commit
67bd4e7
·
verified ·
1 Parent(s): 76cdd53

Create GUIDE.md

Browse files
Files changed (1) hide show
  1. GUIDE.md +62 -0
GUIDE.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 🌌 QSBench: Complete User Guide
2
+
3
+ Welcome to **QSBench Analytics Hub**. This space is designed for exploring synthetic quantum datasets, training machine learning (ML) models, and evaluating the impact of quantum noise on expectation values.
4
+
5
+ ---
6
+
7
+ ## 📂 1. Dataset Architecture
8
+
9
+ QSBench provides unified datasets for the *Quantum Machine Learning (QML)* task. In this demo, 4 core datasets are available:
10
+
11
+ 1. **Core (Clean):** Base set of ideal simulations. No physical noise influence. Great starting point for testing neural network architectures.
12
+ 2. **Depolarizing Noise:** Simulation of depolarizing noise (equal‑probability error on quantum gates).
13
+ 3. **Amplitude Damping:** Simulation of amplitude damping (asymmetric energy loss process by qubits).
14
+ 4. **Transpilation (10q):** Circuits optimised and compiled for a specific hardware topology.
15
+
16
+ ### Circuit Families Covered
17
+ Each set includes a balanced sample from the following circuit classes:
18
+ * `QFT` — Quantum Fourier Transform.
19
+ * `HEA` — Hardware Efficient Ansatz (variational forms).
20
+ * `RANDOM` — Circuits with random gate placements.
21
+ * `EFFICIENT` / `REAL_AMPLITUDES` — Popular ansätze for hybrid quantum networks (VQA, QAOA).
22
+
23
+ ---
24
+
25
+ ## 📊 2. Feature Description
26
+
27
+ When you switch to the **ML Training** tab, the system automatically parses the CSV file and extracts numerical features. These metrics describe the structure and complexity of the quantum circuit.
28
+
29
+ **Key structural metrics:**
30
+ * **`n_qubits` & `depth`:** Physical size of the circuit. Depth determines the coherence time required for execution.
31
+ * **`gate_entropy`:** Entropy of the gate distribution. Shows how uniformly or “chaotically” gates are distributed among qubits.
32
+ * **`meyer_wallach`:** Meyer‑Wallach measure. A scalar describing the degree of global quantum entanglement in the final circuit state. A value close to 1 means maximal entanglement.
33
+ * **`adjacency`:** Connectivity graph density. Shows how actively qubits interact with each other via two‑qubit gates (CX).
34
+ * **Gate counters (`total_gates`, `cx_count`, `rx_count`, etc.):** Exact number of applied operations. Special attention should be paid to `cx_count`, because CNOT gates introduce the most noise on real hardware.
35
+
36
+ ---
37
+
38
+ ## 🎯 3. Target Variables
39
+
40
+ In the basic experiment on the ML tab, the model is trained to predict the **Global Z‑axis Expectation Value** (`ideal_expval_Z_global`).
41
+
42
+ * **What does this mean?** It is the averaged measurement outcome of the ideal quantum state (ranging from -1 to 1).
43
+ * **Why are other targets hidden?** The dataset contains local expectation values (`ideal_expval_Z_q0`, `error_Z_global`, etc.). They are excluded from the list of available features to avoid data leakage when training the regressor.
44
+
45
+ ---
46
+
47
+ ## 🤖 4. How to Use the ML Training Module
48
+
49
+ 1. **Select the dataset:** Choose one of the four packs (e.g., Amplitude Damping).
50
+ 2. **Select metrics:** Pick the features on which the model will be trained. Recommended baseline set: *gate_entropy, meyer_wallach, depth, cx_count*.
51
+ 3. **Training:** When you click the “Execute Baseline” button, the system splits the data (80% Train / 20% Test) and trains a **Random Forest Regressor** (100 trees, depth 10).
52
+ 4. **Result analysis:**
53
+ * **Parity Plot (Scatter):** Shows how accurately predictions align with the ideal diagonal line.
54
+ * **Feature Importance:** Which metrics contributed most to the prediction (useful for understanding how topology affects the outcome).
55
+ * **Residuals:** Distribution of prediction errors.
56
+
57
+ ---
58
+
59
+ ## 🔗 5. Project Resources
60
+ * 🤗 [**Hugging Face**](https://huggingface.co/QSBench)
61
+ * 💻 [**GitHub**](https://github.com/QSBench)
62
+ * 🌐 [**Project Website**](https://qsbench.github.io)