jay2219 commited on
Commit
b0478f9
·
1 Parent(s): 0bc9830
Files changed (2) hide show
  1. README.md +142 -0
  2. data/quantum_benchmark.jsonl +0 -0
README.md ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ annotations_creators:
3
+ - expert-generated
4
+ language:
5
+ - en
6
+ language_creators:
7
+ - machine-generated
8
+ license:
9
+ - mit
10
+ multilinguality:
11
+ - monolingual
12
+ pretty_name: Q-Route Benchmark Dataset
13
+ size_categories:
14
+ - n<1K
15
+ source_datasets:
16
+ - original
17
+ tags:
18
+ - quantum-computing
19
+ - openqasm
20
+ - hardware-compilation
21
+ - topology-routing
22
+ - benchmark
23
+ - graph-calculus
24
+ - auto-scientist
25
+ - adaption-labs
26
+ task_categories:
27
+ - text-generation
28
+ - code-generation
29
+ ---
30
+
31
+ # ⚛️ Q-Route Benchmark Dataset (`qroute-benchmark-dataset`)
32
+
33
+ [![HuggingFace Dataset](https://img.shields.io/badge/%F0%9F%A4%97%20HuggingFace-Dataset-blue)](https://huggingface.co/datasets/jay2219/Q-Route-Benchmark)
34
+
35
+ The **Q-Route Benchmark Dataset** is a curated, post-training held-out evaluation suite comprising **100 non-overlapping quantum circuit routing test cases**. It is specifically designed to audit and benchmark large language models (LLMs) on **spatial hardware graph routing** for physical Quantum Processing Units (QPUs).
36
+
37
+ ---
38
+
39
+ ## 📌 Dataset Summary
40
+
41
+ Physical quantum chips (such as IBM Heavy-Hex, linear chains, rings, or 2D grid lattices) restrict 2-qubit operations (`cx`, `cz`) to physically adjacent hardware qubits defined by a coupling map.
42
+
43
+ This dataset provides:
44
+ - **Abstract Input OpenQASM 2.0 Circuits:** Uncompiled circuits containing arbitrary multi-qubit interactions across non-adjacent physical qubits.
45
+ - **Physical Hardware Specifications:** Target QPU topology graphs, qubit counts, and explicit coupling map edge lists.
46
+ - **Gold-Standard Ground Truth Outputs:** Provably compliant, SWAP-routed OpenQASM 2.0 circuits with minimal SWAP overhead and circuit depth.
47
+
48
+ ---
49
+
50
+ ## 📊 Dataset Statistics & Topology Breakdown
51
+
52
+ The dataset contains exactly **100 benchmark test cases** balanced across 5 distinct hardware graph topologies and 3 difficulty tiers:
53
+
54
+ | Hardware Topology | QPU Architecture | Physical Qubits | Coupling Edges | Test Case Count | Difficulty Tier |
55
+ | :--- | :--- | :---: | :---: | :---: | :---: |
56
+ | **Ring-8** | Closed 1D Ring Lattice | 8 | 16 | 20 | Easy |
57
+ | **Linear-9** | 1D Line Chain | 9 | 16 | 20 | Medium |
58
+ | **Grid-4x3** | 2D Rectangular Grid Lattice | 12 | 34 | 20 | Medium |
59
+ | **Star-15** | Star / Central Hub Routing Graph | 15 | 28 | 20 | Hard |
60
+ | **HeavyHex-16** | IBM Heavy-Hex Connectivity Lattice | 16 | 36 | 20 | Hard |
61
+
62
+ **Total:** 100 benchmark circuits | 5 hardware topologies | 3 difficulty tiers (Easy: 5–8 qubits, Medium: 9–12 qubits, Hard: 13–16 qubits).
63
+
64
+ ---
65
+
66
+ ## 🗂️ Data Structure & Schema
67
+
68
+ Each sample in `quantum_benchmark.jsonl` follows standard OpenAI Chat JSONL formatting with explicit metadata fields:
69
+
70
+ ```json
71
+ {
72
+ "messages": [
73
+ {
74
+ "role": "system",
75
+ "content": "You are Q-Route, an enterprise-grade deterministic Quantum Hardware Compiler..."
76
+ },
77
+ {
78
+ "role": "user",
79
+ "content": "### Physical Hardware Specification:\n- Target Topology: Grid-4x3\n- Number of Qubits: 12\n- Valid Physical Edges (Coupling Map): [[0, 1], [0, 3], ...]\n\n### Abstract Input OpenQASM 2.0:\n```qasm\nOPENQASM 2.0;\ninclude \"qelib1.inc\";\nqreg q[12];\n...\n```"
80
+ },
81
+ {
82
+ "role": "assistant",
83
+ "content": "OPENQASM 2.0;\ninclude \"qelib1.inc\";\nqreg q[12];\n...\nswap q[2], q[1];\nswap q[1], q[4];\ncx q[4], q[7];\n..."
84
+ }
85
+ ],
86
+ "metadata": {
87
+ "num_qubits": 12,
88
+ "topology": "Grid-4x3",
89
+ "num_edges": 34
90
+ }
91
+ }
92
+ ```
93
+
94
+ ### Key Fields:
95
+ - **`messages[0]` (`system`)**: Verbatim prompt template system message enforcing strict OpenQASM compiler output.
96
+ - **`messages[1]` (`user`)**: Complete prompt string containing target topology, qubit count, coupling map JSON, hardware constraints, and input abstract OpenQASM 2.0.
97
+ - **`messages[2]` (`assistant`)**: Ground truth, topology-compliant OpenQASM 2.0 output with minimal SWAP gate insertions.
98
+ - **`metadata`**: Machine-readable metadata dict containing `num_qubits`, `topology`, and `num_edges`.
99
+
100
+ ---
101
+
102
+ ## 🔒 Test Set Integrity & Audit Trail
103
+
104
+ The 100 benchmark test cases in this repository were **generated AFTER training data collection was finalized**.
105
+
106
+ - **Zero Overlap:** Shared 0% overlap with the 15,000-sample training dataset ([`adaptions/qroute-training-data`](https://huggingface.co/datasets/adaptions/qroute-training-data)).
107
+ - **Post-Training Generation:** Guaranteed post-training test set generation to prevent data contamination or benchmark memorization.
108
+ - **Verifiable Timestamps:** Hugging Face commit history and GitHub repository creation timestamps provide an immutable audit trail.
109
+
110
+ ---
111
+
112
+ ## 🚀 How to Load and Use
113
+
114
+ ### Using `datasets` in Python:
115
+
116
+ ```python
117
+ from datasets import load_dataset
118
+
119
+ # Load the benchmark dataset from Hugging Face Hub
120
+ dataset = load_dataset("jay2219/Q-Route-Benchmark")
121
+
122
+ # Inspect a sample test case
123
+ sample = dataset["train"][0]
124
+ print("Topology:", sample["metadata"]["topology"])
125
+ print("Qubits:", sample["metadata"]["num_qubits"])
126
+ print("User Prompt:\n", sample["messages"][1]["content"])
127
+ ```
128
+
129
+
130
+ ## 📜 Citation & License
131
+
132
+ This dataset is released under the **MIT License**.
133
+
134
+ ```bibtex
135
+ @dataset{qroute_benchmark_dataset_2026,
136
+ author = {Jay Prajapati},
137
+ title = {Q-Route Benchmark Dataset: 100 Held-Out Quantum Circuit Routing Evaluation Cases},
138
+ year = {2026},
139
+ publisher = {Hugging Face},
140
+ howpublished = {\url{https://huggingface.co/datasets/jay2219/Q-Route-Benchmark}}
141
+ }
142
+ ```
data/quantum_benchmark.jsonl ADDED
The diff for this file is too large to render. See raw diff