Dataset Viewer
Auto-converted to Parquet Duplicate
enhanced_prompt
null
enhanced_completion
stringlengths
13
31.5k
metadata
dict
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[12]; creg c[12]; h q[0]; h q[2]; rz(0.7853975) q[3]; y q[4]; rz(0.7853975) q[5]; swap q[10], q[7]; swap q[7], q[4]; cx q[4], q[7]; cx q[9], q[10]; swap q[5], q[4]; swap q[4], q[3]; cx q[3], q[4]; t q[1]; t q[4]; rz(0.7853975) q[10]; x q[8]; y q[9]; y q[11]; swap q[4], q[7]; sw...
{ "num_qubits": 12, "topology": "Grid-4x3", "num_edges": 34 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[11]; creg c[11]; y q[10]; y q[1]; x q[9]; s q[9]; t q[5]; swap q[8], q[0]; cx q[0], q[1]; swap q[8], q[0]; measure q -> c;
{ "num_qubits": 11, "topology": "Star-11", "num_edges": 20 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[12]; creg c[12]; h q[0]; y q[1]; h q[3]; rz(0.7853975) q[4]; y q[6]; t q[8]; s q[10]; swap q[4], q[5]; cx q[3], q[4]; swap q[4], q[5]; swap q[1], q[4]; swap q[4], q[7]; cx q[7], q[4]; swap q[4], q[7]; swap q[1], q[4]; swap q[8], q[7]; swap q[5], q[8]; cx q[2], q[5]; swap q[5],...
{ "num_qubits": 12, "topology": "Grid-4x3", "num_edges": 34 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[14]; creg c[14]; rz(0.7853975) q[7]; rz(0.7853975) q[2]; swap q[2], q[3]; swap q[3], q[4]; swap q[4], q[5]; cx q[6], q[5]; measure q -> c;
{ "num_qubits": 14, "topology": "Ring-14", "num_edges": 28 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[12]; creg c[12]; t q[1]; x q[2]; h q[4]; t q[5]; x q[6]; t q[7]; rz(0.7853975) q[8]; x q[9]; cx q[1], q[2]; swap q[6], q[5]; swap q[5], q[4]; swap q[4], q[3]; cx q[3], q[2]; s q[0]; h q[1]; y q[2]; x q[3]; rz(0.7853975) q[5]; s q[7]; t q[9]; h q[11]; swap q[1], q[2]; swap q[2]...
{ "num_qubits": 12, "topology": "Ring-12", "num_edges": 24 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[9]; creg c[9]; y q[2]; x q[3]; x q[6]; t q[7]; x q[8]; cx q[2], q[1]; cx q[5], q[8]; swap q[0], q[3]; swap q[3], q[4]; swap q[4], q[5]; swap q[5], q[8]; cx q[8], q[0]; h q[1]; h q[2]; h q[5]; s q[7]; cx q[1], q[2]; swap q[2], q[5]; swap q[5], q[8]; swap q[8], q[7]; cx q[7], q[...
{ "num_qubits": 9, "topology": "Grid-3x3", "num_edges": 24 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[14]; creg c[14]; x q[4]; h q[12]; t q[13]; y q[5]; y q[6]; swap q[6], q[5]; swap q[5], q[4]; swap q[4], q[3]; cx q[3], q[2]; measure q -> c;
{ "num_qubits": 14, "topology": "Linear-14", "num_edges": 26 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[15]; creg c[15]; x q[2]; y q[3]; x q[6]; y q[7]; rz(0.7853975) q[13]; swap q[1], q[2]; swap q[2], q[3]; swap q[3], q[4]; swap q[4], q[5]; swap q[5], q[6]; swap q[6], q[7]; swap q[7], q[8]; swap q[8], q[9]; swap q[9], q[10]; swap q[10], q[11]; swap q[11], q[12]; swap q[12], q[1...
{ "num_qubits": 15, "topology": "Linear-15", "num_edges": 28 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[13]; creg c[13]; rz(0.7853975) q[3]; x q[5]; y q[6]; s q[8]; s q[9]; t q[10]; s q[11]; rz(0.7853975) q[12]; cx q[6], q[7]; t q[0]; h q[2]; rz(0.7853975) q[3]; y q[4]; h q[5]; rz(0.7853975) q[6]; x q[7]; t q[9]; h q[10]; s q[11]; s q[12]; cx q[10], q[8]; swap q[3], q[4]; swap q...
{ "num_qubits": 13, "topology": "HeavyHex-13", "num_edges": 30 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[9]; creg c[9]; y q[0]; h q[2]; x q[3]; rz(0.7853975) q[4]; rz(0.7853975) q[6]; h q[7]; x q[8]; cx q[4], q[5]; cx q[4], q[7]; swap q[6], q[3]; swap q[3], q[0]; cx q[0], q[1]; swap q[8], q[5]; swap q[5], q[2]; cx q[2], q[1]; x q[0]; t q[2]; s q[4]; x q[5]; y q[6]; y q[7]; s q[8]...
{ "num_qubits": 9, "topology": "Grid-3x3", "num_edges": 24 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[9]; creg c[9]; s q[0]; t q[1]; swap q[5],q[4]; swap q[4],q[1]; cx q[1],q[5]; cx q[5],q[1]; swap q[4],q[1]; swap q[5],q[4]; cx q[7],q[3]; cx q[2],q[5]; rz(0.7853975) q[0]; rz(0.7853975) q[4]; t q[5]; rz(0.7853975) q[6]; rz(0.7853975) q[7]; cx q[3],q[6]; swap q[6],q[7]; swap q[7...
{ "num_qubits": 9, "topology": "Grid-3x3", "num_edges": 24 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[13]; creg c[13]; y q[2]; x q[6]; y q[9]; s q[10]; h q[11]; x q[12]; cx q[8], q[0]; swap q[12], q[0]; cx q[0], q[11]; swap q[2], q[0]; cx q[0], q[5]; swap q[4], q[0]; cx q[0], q[8]; swap q[1], q[0]; cx q[0], q[12]; swap q[5], q[0]; cx q[0], q[7]; s q[12]; y q[5]; y q[4]; h q[3]...
{ "num_qubits": 13, "topology": "Star-13", "num_edges": 24 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[12]; creg c[12]; x q[0]; y q[1]; s q[2]; s q[4]; h q[6]; x q[7]; t q[10]; swap q[10], q[11]; swap q[11], q[0]; swap q[0], q[1]; swap q[1], q[2]; cx q[2], q[10]; swap q[1], q[2]; swap q[0], q[1]; swap q[11], q[0]; swap q[10], q[11]; swap q[6], q[5]; swap q[5], q[4]; swap q[4], ...
{ "num_qubits": 12, "topology": "Ring-12", "num_edges": 24 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[15]; creg c[15]; x q[3]; x q[2]; h q[2]; y q[10]; h q[2]; swap q[11], q[0]; cx q[0], q[3]; swap q[11], q[0]; cx q[5], q[0]; measure q -> c;
{ "num_qubits": 15, "topology": "Star-15", "num_edges": 28 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[12]; creg c[12]; x q[1]; x q[2]; h q[3]; y q[4]; s q[6]; h q[7]; t q[11]; swap q[11], q[0]; cx q[0], q[8]; swap q[11], q[0]; swap q[10], q[0]; cx q[0], q[11]; swap q[10], q[0]; swap q[5], q[0]; cx q[0], q[2]; swap q[5], q[0]; swap q[6], q[0]; cx q[0], q[5]; swap q[6], q[0]; sw...
{ "num_qubits": 12, "topology": "Star-12", "num_edges": 22 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[13]; creg c[13]; rz(0.7853975) q[1]; y q[2]; h q[3]; h q[4]; s q[5]; h q[7]; x q[9]; h q[10]; y q[11]; swap q[11], q[12]; swap q[10], q[11]; swap q[8], q[10]; swap q[7], q[8]; swap q[6], q[7]; cx q[4], q[6]; swap q[6], q[7]; swap q[7], q[8]; swap q[8], q[10]; swap q[10], q[11]...
{ "num_qubits": 13, "topology": "HeavyHex-13", "num_edges": 30 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[6]; creg c[6]; h q[0]; t q[2]; y q[4]; swap q[1], q[2]; cx q[2], q[4]; swap q[3], q[5]; cx q[1], q[3]; cx q[5], q[3]; y q[0]; rz(0.7853975) q[5]; s q[3]; swap q[2], q[4]; cx q[2], q[4]; rz(0.7853975) q[0]; y q[1]; s q[4]; cx q[1], q[2]; rz(0.7853975) q[0]; y q[1]; s q[2]; h q[...
{ "num_qubits": 6, "topology": "Grid-3x2", "num_edges": 14 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[5]; creg c[5]; y q[0]; s q[1]; rz(0.7853975) q[3]; s q[4]; cx q[4], q[0]; y q[0]; h q[1]; s q[3]; h q[4]; cx q[1], q[2]; swap q[1], q[0]; cx q[0], q[4]; s q[1]; s q[0]; y q[2]; t q[3]; cx q[1], q[0]; cx q[4], q[3]; x q[2]; h q[3]; cx q[4], q[3]; swap q[3], q[2]; cx q[2], q[1];...
{ "num_qubits": 5, "topology": "Ring-5", "num_edges": 10 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[8]; creg c[8]; h q[1]; y q[3]; h q[5]; swap q[1], q[0]; cx q[0], q[2]; swap q[1], q[0]; swap q[7], q[5]; swap q[5], q[3]; cx q[3], q[2]; swap q[5], q[3]; swap q[7], q[5]; t q[1]; t q[2]; rz(0.7853975) q[3]; t q[5]; swap q[0], q[2]; cx q[2], q[4]; swap q[0], q[2]; cx q[4], q[6]...
{ "num_qubits": 8, "topology": "Grid-4x2", "num_edges": 20 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[9]; creg c[9]; y q[1]; y q[3]; rz(0.7853975) q[4]; t q[6]; rz(0.7853975) q[7]; swap q[8], q[5]; swap q[5], q[4]; cx q[4], q[3]; swap q[2], q[1]; swap q[1], q[4]; swap q[4], q[7]; cx q[7], q[6]; y q[0]; x q[7]; h q[4]; cx q[3], q[6]; rz(0.7853975) q[0]; x q[7]; s q[3]; s q[5]; ...
{ "num_qubits": 9, "topology": "Grid-3x3", "num_edges": 24 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[10]; creg c[10]; x q[0]; y q[1]; s q[4]; rz(0.7853975) q[5]; s q[6]; s q[8]; t q[9]; cx q[8], q[7]; swap q[8], q[6]; cx q[6], q[5]; swap q[6], q[8]; swap q[1], q[2]; swap q[2], q[3]; swap q[3], q[4]; swap q[4], q[5]; swap q[5], q[6]; swap q[6], q[7]; swap q[7], q[8]; swap q[8]...
{ "num_qubits": 10, "topology": "Linear-10", "num_edges": 18 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[4]; creg c[4]; rz(0.7853975) q[2]; cx q[2], q[3]; rz(0.7853975) q[0]; x q[1]; cx q[0], q[1]; cx q[2], q[3]; rz(0.7853975) q[1]; s q[2]; rz(0.7853975) q[3]; swap q[1], q[3]; cx q[0], q[3]; y q[1]; y q[3]; cx q[0], q[3]; cx q[3], q[1]; s q[0]; x q[1]; t q[2]; y q[3]; cx q[0], q[...
{ "num_qubits": 4, "topology": "Grid-2x2", "num_edges": 8 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[16]; creg c[16]; t q[0]; y q[1]; rz(0.7853975) q[2]; y q[4]; h q[6]; h q[7]; h q[8]; h q[11]; t q[12]; x q[13]; swap q[1], q[2]; swap q[2], q[3]; swap q[3], q[4]; swap q[4], q[5]; swap q[5], q[6]; swap q[6], q[7]; swap q[7], q[8]; swap q[8], q[9]; cx q[1], q[9]; swap q[3], q[2...
{ "num_qubits": 16, "topology": "Ring-16", "num_edges": 32 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[15]; creg c[15]; s q[1]; x q[3]; y q[4]; s q[5]; x q[6]; t q[8]; t q[11]; s q[12]; y q[13]; h q[14]; swap q[8], q[7]; swap q[7], q[6]; swap q[6], q[5]; swap q[5], q[4]; swap q[4], q[3]; cx q[3], q[2]; swap q[3], q[4]; swap q[4], q[5]; swap q[5], q[6]; swap q[6], q[7]; swap q[7...
{ "num_qubits": 15, "topology": "Linear-15", "num_edges": 28 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[6]; creg c[6]; h q[1]; s q[2]; s q[3]; swap q[1], q[0]; cx q[0], q[4]; swap q[1], q[0]; s q[0]; y q[1]; y q[2]; h q[3]; swap q[3], q[0]; cx q[0], q[1]; swap q[3], q[0]; cx q[0], q[1]; swap q[5], q[0]; cx q[0], q[3]; swap q[5], q[0]; x q[0]; s q[3]; t q[4]; swap q[5], q[0]; cx ...
{ "num_qubits": 6, "topology": "Star-6", "num_edges": 10 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[5]; creg c[5]; x q[4]; s q[3]; cx q[0], q[3]; measure q -> c;
{ "num_qubits": 5, "topology": "Star-5", "num_edges": 8 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[13]; creg c[13]; s q[5]; rz(0.7853975) q[11]; swap q[7], q[8]; swap q[8], q[10]; cx q[10], q[11]; swap q[7], q[6]; cx q[6], q[4]; measure q -> c;
{ "num_qubits": 13, "topology": "HeavyHex-13", "num_edges": 30 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[13]; creg c[13]; s q[8]; t q[9]; s q[4]; swap q[0], q[7]; cx q[0], q[9]; swap q[0], q[7]; measure q -> c;
{ "num_qubits": 13, "topology": "Star-13", "num_edges": 24 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[5]; creg c[5]; x q[0]; t q[1]; t q[2]; h q[3]; x q[4]; swap q[0], q[1]; cx q[0], q[4]; swap q[0], q[1]; t q[0]; rz(0.7853975) q[1]; rz(0.7853975) q[3]; h q[4]; swap q[0], q[1]; cx q[0], q[4]; swap q[0], q[1]; h q[0]; y q[1]; y q[3]; swap q[0], q[4]; cx q[0], q[1]; swap q[0], q...
{ "num_qubits": 5, "topology": "Star-5", "num_edges": 8 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[8]; creg c[8]; y q[4]; t q[5]; swap q[7], q[6]; swap q[6], q[5]; swap q[5], q[4]; swap q[4], q[3]; swap q[3], q[2]; swap q[2], q[1]; cx q[1], q[0]; swap q[6], q[5]; swap q[5], q[4]; swap q[4], q[3]; swap q[3], q[2]; cx q[2], q[0]; rz(0.7853975) q[0]; swap q[5], q[4]; swap q[4]...
{ "num_qubits": 8, "topology": "Linear-8", "num_edges": 14 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[12]; creg c[12]; y q[0]; h q[3]; rz(0.7853975) q[5]; t q[7]; y q[8]; s q[9]; rz(0.7853975) q[11]; cx q[10], q[11]; swap q[9], q[10]; swap q[10], q[11]; swap q[11], q[0]; swap q[0], q[1]; swap q[1], q[2]; cx q[2], q[3]; swap q[3], q[2]; cx q[2], q[4]; swap q[3], q[2]; swap q[2]...
{ "num_qubits": 12, "topology": "Ring-12", "num_edges": 24 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[6]; creg c[6]; t q[0]; h q[2]; rz(0.7853975) q[3]; y q[4]; swap q[0], q[1]; swap q[1], q[2]; swap q[2], q[3]; swap q[3], q[4]; swap q[4], q[5]; cx q[5], q[4]; swap q[4], q[3]; swap q[3], q[2]; swap q[2], q[1]; swap q[1], q[0]; cx q[4], q[5]; swap q[0], q[1]; swap q[1], q[2]; c...
{ "num_qubits": 6, "topology": "Linear-6", "num_edges": 10 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[15]; creg c[15]; x q[2]; x q[5]; rz(0.7853975) q[6]; y q[7]; x q[8]; t q[9]; y q[10]; h q[11]; rz(0.7853975) q[12]; y q[14]; cx q[2], q[1]; swap q[6], q[7]; cx q[7], q[8]; swap q[6], q[7]; swap q[14], q[12]; swap q[12], q[11]; cx q[11], q[10]; swap q[12], q[11]; swap q[14], q[...
{ "num_qubits": 15, "topology": "HeavyHex-15", "num_edges": 36 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[12]; creg c[12]; rz(0.7853975) q[0]; s q[1]; s q[5]; y q[7]; h q[8]; swap q[11], q[8]; swap q[8], q[5]; swap q[5], q[4]; cx q[4], q[3]; swap q[4], q[5]; swap q[5], q[8]; swap q[8], q[11]; cx q[9], q[10]; t q[0]; s q[2]; y q[3]; y q[4]; x q[5]; x q[6]; s q[7]; h q[8]; y q[9]; r...
{ "num_qubits": 12, "topology": "Grid-4x3", "num_edges": 34 }
null
OPENQASM 2.0; include "qelib1.inc"; gate swap a,b { cx a,b; cx b,a; cx a,b; } qreg q[16]; creg c[16]; s q[0]; h q[2]; s q[3]; y q[4]; x q[9]; rz(0.7853975) q[10]; x q[11]; swap q[12],q[11]; swap q[11],q[10]; swap q[10],q[8]; swap q[8],q[7]; swap q[7],q[6]; swap q[6],q[4]; cx q[4],q[5]; swap q[6],q[4]; swap q[7],q[6]; s...
{ "num_qubits": 16, "topology": "HeavyHex-16", "num_edges": 38 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[10]; creg c[10]; y q[0]; x q[1]; rz(0.7853975) q[3]; y q[7]; s q[9]; cx q[3], q[4]; swap q[8], q[9]; swap q[7], q[8]; swap q[6], q[7]; swap q[4], q[6]; swap q[3], q[4]; swap q[2], q[3]; cx q[2], q[1]; swap q[2], q[3]; swap q[3], q[4]; swap q[4], q[6]; swap q[6], q[7]; swap q[7...
{ "num_qubits": 10, "topology": "HeavyHex-10", "num_edges": 22 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[9]; creg c[9]; rz(0.7853975) q[0]; x q[1]; h q[2]; h q[4]; x q[6]; t q[7]; t q[8]; swap q[2], q[3]; swap q[1], q[2]; swap q[0], q[1]; cx q[0], q[8]; swap q[2], q[3]; cx q[2], q[1]; cx q[8], q[7]; swap q[3], q[4]; swap q[4], q[5]; swap q[5], q[6]; cx q[6], q[7]; x q[1]; y q[6];...
{ "num_qubits": 9, "topology": "Ring-9", "num_edges": 18 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[5]; creg c[5]; h q[0]; y q[1]; rz(0.7853975) q[2]; swap q[3], q[4]; cx q[4], q[0]; t q[0]; h q[1]; t q[4]; cx q[4], q[3]; s q[4]; cx q[4], q[0]; s q[0]; x q[1]; y q[3]; cx q[4], q[3]; x q[0]; s q[1]; x q[2]; h q[4]; x q[3]; swap q[2], q[3]; cx q[3], q[4]; cx q[2], q[1]; y q[1]...
{ "num_qubits": 5, "topology": "Ring-5", "num_edges": 10 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[8]; creg c[8]; h q[0]; s q[1]; y q[2]; rz(0.7853975) q[6]; y q[7]; swap q[0], q[1]; swap q[1], q[2]; swap q[2], q[3]; swap q[3], q[4]; swap q[4], q[5]; cx q[5], q[0]; swap q[5], q[6]; cx q[3], q[6]; swap q[4], q[3]; cx q[4], q[1]; y q[0]; h q[1]; rz(0.7853975) q[2]; y q[3]; y ...
{ "num_qubits": 8, "topology": "Linear-8", "num_edges": 14 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[16]; creg c[16]; h q[1]; rz(0.7853975) q[2]; s q[4]; t q[5]; y q[6]; y q[7]; t q[8]; y q[9]; h q[10]; t q[11]; x q[15]; swap q[6], q[0]; cx q[0], q[8]; swap q[6], q[0]; swap q[8], q[0]; cx q[0], q[2]; swap q[8], q[0]; rz(0.7853975) q[0]; rz(0.7853975) q[2]; x q[3]; x q[8]; y q...
{ "num_qubits": 16, "topology": "Star-16", "num_edges": 30 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[5]; creg c[5]; rz(0.7853975) q[4]; t q[2]; x q[4]; t q[3]; y q[2]; cx q[0], q[2]; cx q[0], q[2]; measure q -> c;
{ "num_qubits": 5, "topology": "HeavyHex-5", "num_edges": 10 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[12]; creg c[12]; y q[0]; s q[1]; rz(0.7853975) q[2]; h q[5]; x q[6]; t q[8]; y q[9]; x q[10]; h q[11]; swap q[1], q[2]; swap q[2], q[5]; cx q[5], q[8]; swap q[2], q[5]; swap q[1], q[2]; cx q[1], q[5]; swap q[9], q[6]; swap q[6], q[3]; cx q[9], q[2]; swap q[6], q[3]; swap q[9],...
{ "num_qubits": 12, "topology": "Grid-4x3", "num_edges": 34 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[7]; creg c[7]; t q[6]; cx q[6], q[5]; x q[0]; s q[1]; x q[6]; swap q[0], q[6]; cx q[6], q[5]; t q[6]; x q[1]; t q[2]; x q[4]; x q[5]; h q[0]; swap q[4], q[3]; cx q[3], q[2]; swap q[0], q[1]; cx q[1], q[2]; h q[6]; t q[0]; x q[4]; y q[3]; y q[1]; swap q[4], q[3]; swap q[3], q[2...
{ "num_qubits": 7, "topology": "Ring-7", "num_edges": 14 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[9]; creg c[9]; x q[0]; rz(0.7853975) q[3]; y q[6]; h q[7]; rz(0.7853975) q[8]; swap q[7], q[0]; cx q[0], q[5]; swap q[7], q[0]; cx q[6], q[0]; cx q[0], q[1]; h q[1]; t q[2]; x q[4]; h q[5]; swap q[1], q[0]; cx q[0], q[6]; swap q[1], q[0]; swap q[3], q[0]; cx q[0], q[5]; cx q[8...
{ "num_qubits": 9, "topology": "Star-9", "num_edges": 16 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[11]; creg c[11]; h q[2]; y q[3]; s q[4]; y q[5]; h q[9]; x q[10]; swap q[3], q[4]; swap q[4], q[5]; swap q[5], q[6]; cx q[6], q[7]; swap q[2], q[3]; swap q[3], q[4]; cx q[4], q[5]; swap q[0], q[1]; cx q[1], q[2]; swap q[9], q[10]; swap q[8], q[9]; swap q[7], q[8]; swap q[6], q...
{ "num_qubits": 11, "topology": "Linear-11", "num_edges": 20 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[13]; creg c[13]; h q[0]; t q[3]; rz(0.7853975) q[4]; y q[5]; t q[6]; t q[8]; s q[9]; y q[10]; h q[11]; rz(0.7853975) q[12]; swap q[9], q[10]; swap q[10], q[11]; cx q[11], q[12]; swap q[10], q[11]; swap q[9], q[10]; swap q[4], q[3]; swap q[3], q[2]; swap q[2], q[1]; swap q[1], ...
{ "num_qubits": 13, "topology": "Ring-13", "num_edges": 26 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[12]; creg c[12]; s q[1]; x q[2]; x q[3]; x q[4]; h q[7]; x q[8]; s q[9]; t q[10]; x q[11]; swap q[10], q[7]; swap q[7], q[4]; cx q[4], q[5]; swap q[7], q[4]; swap q[10], q[7]; swap q[3], q[4]; swap q[4], q[5]; cx q[5], q[8]; swap q[4], q[5]; swap q[3], q[4]; cx q[10], q[7]; sw...
{ "num_qubits": 12, "topology": "Grid-4x3", "num_edges": 34 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[14]; creg c[14]; s q[1]; s q[3]; h q[4]; rz(0.7853975) q[5]; h q[8]; rz(0.7853975) q[12]; swap q[10], q[9]; swap q[9], q[8]; swap q[8], q[7]; swap q[7], q[6]; swap q[6], q[5]; swap q[5], q[4]; cx q[4], q[3]; swap q[1], q[2]; swap q[2], q[3]; swap q[3], q[4]; swap q[4], q[5]; s...
{ "num_qubits": 14, "topology": "Linear-14", "num_edges": 26 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[12]; creg c[12]; t q[0]; y q[4]; x q[5]; h q[6]; h q[7]; t q[8]; x q[11]; swap q[5], q[8]; swap q[4], q[5]; cx q[4], q[1]; swap q[6], q[3]; swap q[3], q[4]; cx q[4], q[5]; swap q[3], q[4]; swap q[4], q[5]; cx q[5], q[8]; h q[1]; h q[2]; s q[3]; h q[4]; x q[5]; rz(0.7853975) q[...
{ "num_qubits": 12, "topology": "Grid-4x3", "num_edges": 34 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[9]; creg c[9]; y q[0]; t q[1]; h q[3]; t q[6]; t q[8]; swap q[8], q[0]; cx q[0], q[4]; swap q[8], q[0]; swap q[6], q[0]; cx q[0], q[4]; swap q[6], q[0]; swap q[8], q[0]; cx q[0], q[7]; swap q[8], q[0]; swap q[6], q[0]; cx q[0], q[1]; swap q[6], q[0]; x q[0]; s q[1]; s q[3]; s ...
{ "num_qubits": 9, "topology": "Star-9", "num_edges": 16 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[6]; creg c[6]; rz(0.7853975) q[0]; y q[1]; h q[2]; x q[3]; t q[4]; swap q[0], q[1]; cx q[1], q[3]; y q[1]; x q[2]; cx q[5], q[3]; y q[1]; t q[0]; x q[2]; swap q[4], q[2]; swap q[2], q[0]; cx q[0], q[1]; swap q[1], q[3]; cx q[3], q[5]; h q[3]; t q[2]; s q[4]; s q[1]; t q[0]; s ...
{ "num_qubits": 6, "topology": "Grid-3x2", "num_edges": 14 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[5]; creg c[5]; t q[0]; x q[1]; x q[2]; x q[3]; h q[4]; cx q[3], q[2]; cx q[2], q[1]; t q[2]; y q[3]; rz(0.7853975) q[4]; swap q[2], q[3]; cx q[3], q[4]; cx q[3], q[2]; s q[1]; rz(0.7853975) q[3]; t q[2]; swap q[0], q[2]; swap q[2], q[3]; cx q[3], q[4]; y q[1]; swap q[4], q[3];...
{ "num_qubits": 5, "topology": "HeavyHex-5", "num_edges": 10 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[12]; creg c[12]; t q[0]; rz(0.7853975) q[3]; h q[5]; h q[7]; x q[8]; y q[10]; swap q[3], q[4]; swap q[4], q[6]; swap q[6], q[7]; swap q[7], q[8]; swap q[8], q[10]; cx q[10], q[11]; swap q[6], q[7]; cx q[6], q[5]; swap q[1], q[2]; swap q[2], q[3]; swap q[3], q[4]; swap q[4], q[...
{ "num_qubits": 12, "topology": "HeavyHex-12", "num_edges": 28 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[7]; creg c[7]; x q[1]; h q[2]; rz(0.7853975) q[3]; s q[6]; swap q[5], q[6]; cx q[5], q[4]; cx q[5], q[6]; swap q[1], q[2]; swap q[0], q[1]; cx q[3], q[2]; rz(0.7853975) q[1]; s q[3]; t q[6]; swap q[4], q[5]; swap q[3], q[4]; swap q[2], q[3]; swap q[1], q[2]; cx q[0], q[1]; h q...
{ "num_qubits": 7, "topology": "Linear-7", "num_edges": 12 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[11]; creg c[11]; s q[1]; h q[2]; h q[4]; x q[5]; s q[6]; t q[7]; rz(0.7853975) q[10]; swap q[7], q[0]; cx q[0], q[8]; swap q[7], q[0]; t q[0]; s q[2]; y q[3]; t q[5]; rz(0.7853975) q[9]; rz(0.7853975) q[10]; swap q[6], q[0]; cx q[0], q[8]; swap q[6], q[0]; swap q[6], q[0]; cx ...
{ "num_qubits": 11, "topology": "Star-11", "num_edges": 20 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[13]; creg c[13]; x q[8]; x q[9]; h q[7]; x q[10]; x q[3]; swap q[6], q[7]; swap q[7], q[8]; swap q[8], q[9]; cx q[9], q[10]; swap q[8], q[9]; swap q[7], q[8]; swap q[6], q[7]; measure q -> c;
{ "num_qubits": 13, "topology": "Linear-13", "num_edges": 24 }
null
OPENQASM 2.0; include "qelib1.inc"; qreg q[16]; creg c[16]; y q[1]; h q[2]; t q[5]; h q[6]; y q[10]; rz(0.7853975) q[12]; y q[13]; h q[14]; s q[15]; swap q[7], q[0]; cx q[0], q[12]; swap q[7], q[0]; swap q[9], q[0]; cx q[0], q[13]; swap q[9], q[0]; swap q[11], q[0]; cx q[0], q[8]; swap q[11], q[0]; swap q[5], q[0]; cx ...
{ "num_qubits": 16, "topology": "Star-16", "num_edges": 30 }
End of preview. Expand in Data Studio

banner

This dataset is a remastered version prepared using Adaption's Adaptive Data platform.

quantum_circuit_routing

This dataset contains pairs of abstract OpenQASM 2.0 quantum circuits and their hardware-compliant compiled versions. Each sample specifies a target qubit topology (e.g., Star, Ring, Linear, Grid, HeavyHex) and coupling map constraints. The compiled outputs include necessary SWAP gates inserted to satisfy physical connectivity requirements while minimizing circuit depth.

Dataset Motto:
"Embedding physical spatial graph calculus into LLM weight space to eliminate graph hallucinations and enable deterministic quantum hardware circuit routing."

Dataset size

There are 15,000 data points in this dataset. This is an instruction tuning dataset.

Quality of Remastered Dataset

The final quality is B, with a relative quality improvement of -26.0%.

Domain

  • Code (80%)
  • Science (20%)

Language

  • English (100%)

Tone

  • Technical (100%)

Evaluation Results

  • Quality Gains:

    QualityGains
  • Grade Improvement:

    Grade
  • Percentile Chart:

    Percentile Chart

Usage & Quickstart

Load the dataset directly using the Hugging Face datasets library:

from datasets import load_dataset

# Load the instruction-tuning dataset
dataset = load_dataset("jay2219/quantum-circuit-routing")

# Inspect a sample training pair
sample = dataset["train"][0]
print("System Role:\n", sample["messages"][0]["content"])
print("User Prompt (Abstract QASM & Topology):\n", sample["messages"][1]["content"])
print("Assistant Response (Routed Compliant QASM):\n", sample["messages"][2]["content"])

Data Schema & Fields

Each record follows the standard OpenAI Chat format:

  • messages[0] (system): Enforces deterministic quantum hardware compilation role and strict OpenQASM output requirements.
  • messages[1] (user): Specifies the physical hardware topology, qubit count, explicit coupling map (valid edge list), hardware constraints, and input abstract OpenQASM 2.0.
  • messages[2] (assistant): Compiled OpenQASM 2.0 code containing minimal SWAP gate insertions to satisfy physical coupling map adjacency constraints.

Hardware Topologies Covered

The 15,000 instruction-tuning samples span 5 distinct physical quantum hardware architectures:

  1. Linear: 1D line chain topology (e.g. 5–15 qubits).
  2. Ring: 1D closed-loop ring topology.
  3. Star: Central hub routing graph (all peripheral qubits connect through hub node 0).
  4. Grid: 2D rectangular lattice QPU connectivity graphs (e.g. 2x2 up to 5x3).
  5. HeavyHex: IBM Heavy-Hex lattice architecture.

Associated Models & Evaluation Benchmarks

Downloads last month
1

Models trained or fine-tuned on jay2219/quantum-circuit-routing