Dataset Viewer
Auto-converted to Parquet Duplicate
task_id
stringlengths
36
44
domain
stringclasses
4 values
prompt
stringlengths
903
5.9k
canonical_solution
stringlengths
450
5.06k
completion
stringlengths
97
810
test
stringclasses
1 value
timing_train/timing_task_00000_th01_v2
timing
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[0]; rx(2.35619449) q[2]; s q[1]; cz q[2], q[0]; barrier q; rz(-1.570796327) q[1]; rz(3.141592654) q[2]; rz(2.35619449) q[0]; rz(1.570796327) q[2]; t q[1]; ry(0) q[2]; s q[0]; x q[0]; rx(0.5235987756) q[1]; swap q[1], q[2]; rz(0.2617993878) q[0]; ry(-0.3243036048) q...
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[0]; rx(2.35619449) q[2]; s q[1]; cz q[2], q[0]; barrier q; rz(-1.570796327) q[1]; rz(3.141592654) q[2]; rz(2.35619449) q[0]; rz(1.570796327) q[2]; t q[1]; ry(0) q[2]; s q[0]; x q[0]; rx(0.5235987756) q[1]; swap q[1], q[2]; rz(0.2617993878) q[0]; ry(-0.3243036048) q...
// basic_delay_units | h_delay_rz: Prepare with H, delay, then apply RZ. h q[1]; delay[37ns] q[1]; rz(0.785398) q[1];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00001_th02_v3
timing
OPENQASM 3; include "stdgates.inc"; qubit[5] q; h q[4]; ry(2.35619449) q[2]; barrier q; y q[0]; y q[4]; cx q[0], q[3]; t q[2]; y q[2]; h q[1]; cz q[4], q[1]; cz q[2], q[3]; swap q[3], q[2]; rz(-3.030644721) q[1]; h q[2]; ry(1.047197551) q[1]; sdg q[0]; cz q[1], q[0]; rx(2.35619449) q[1]; rx(1.805184495) q[4]; cx q[0...
OPENQASM 3; include "stdgates.inc"; qubit[5] q; h q[4]; ry(2.35619449) q[2]; barrier q; y q[0]; y q[4]; cx q[0], q[3]; t q[2]; y q[2]; h q[1]; cz q[4], q[1]; cz q[2], q[3]; swap q[3], q[2]; rz(-3.030644721) q[1]; h q[2]; ry(1.047197551) q[1]; sdg q[0]; cz q[1], q[0]; rx(2.35619449) q[1]; rx(1.805184495) q[4]; cx q[0...
// dt_delay | dt_delay_on_all_qubits: Apply a dt delay on all qubits, then a single-qubit gate. delay[163dt] q; rz(0.523599) q[2];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00002_th03_v4
timing
OPENQASM 3; include "stdgates.inc"; qubit[5] q; h q[3]; rz(-1.542764665) q[3]; rz(0.5235987756) q[2]; y q[2]; barrier q; cz q[1], q[0]; z q[1]; cz q[3], q[2]; swap q[0], q[2]; swap q[2], q[4]; swap q[3], q[4]; rz(-0.7749198612) q[4]; sdg q[0]; rz(0.7853981634) q[2]; rx(0.5235987756) q[4]; rx(3.126958543) q[1]; delay...
OPENQASM 3; include "stdgates.inc"; qubit[5] q; h q[3]; rz(-1.542764665) q[3]; rz(0.5235987756) q[2]; y q[2]; barrier q; cz q[1], q[0]; z q[1]; cz q[3], q[2]; swap q[0], q[2]; swap q[2], q[4]; swap q[3], q[4]; rz(-0.7749198612) q[4]; sdg q[0]; rz(0.7853981634) q[2]; rx(0.5235987756) q[4]; rx(3.126958543) q[1]; delay...
// duration_arithmetic | subtraction_expression: Delay by (3*a)-b, then apply Y. delay[(3*33ns) - 13ns] q[3]; y q[3];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00003_th04_v2
timing
OPENQASM 3; include "stdgates.inc"; qubit[5] q; h q[1]; h q[4]; delay[10ns] q[4]; cx q[1], q[0]; cz q[1], q[2]; swap q[4], q[3]; h q[2]; cx q[1], q[3]; rx(3.141592654) q[2]; cz q[3], q[4]; cz q[2], q[0]; cx q[0], q[1]; tdg q[4]; cz q[2], q[4]; rx(1.570796327) q[3]; x q[0]; delay[63dt] q[4]; delay[22dt] q[4]; cx q[2]...
OPENQASM 3; include "stdgates.inc"; qubit[5] q; h q[1]; h q[4]; delay[10ns] q[4]; cx q[1], q[0]; cz q[1], q[2]; swap q[4], q[3]; h q[2]; cx q[1], q[3]; rx(3.141592654) q[2]; cz q[3], q[4]; cz q[2], q[0]; cx q[0], q[1]; tdg q[4]; cz q[2], q[4]; rx(1.570796327) q[3]; x q[0]; delay[63dt] q[4]; delay[22dt] q[4]; cx q[2]...
// mixed_units_duration | mixed_units_sandwich_h: H, then mixed-units delay, then H. h q[0]; delay[7ns + 69ns] q[0]; h q[0];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00004_th05_v3
timing
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[0]; delay[80dt] q[1]; t q[0]; swap q[1], q[0]; delay[3ns] q[0]; tdg q[0]; s q[1]; cz q[2], q[0]; cz q[0], q[1]; rx(-0.7853981634) q[2]; z q[2]; cz q[0], q[2]; swap q[1], q[2]; barrier q; cz q[0], q[1]; h q[2]; swap q[0], q[2]; rx(2.35619449) q[1]; rx(-0.5077652255)...
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[0]; delay[80dt] q[1]; t q[0]; swap q[1], q[0]; delay[3ns] q[0]; tdg q[0]; s q[1]; cz q[2], q[0]; cz q[0], q[1]; rx(-0.7853981634) q[2]; z q[2]; cz q[0], q[2]; swap q[1], q[2]; barrier q; cz q[0], q[1]; h q[2]; swap q[0], q[2]; rx(2.35619449) q[1]; rx(-0.5077652255)...
// left_alignment_stretch | left_align_2q_then_parallel_stretch: Left-align: do a 2-qubit gate, then stretch both qubits to the box end. stretch g; box[144ns] { cx q[0], q[1]; delay[g] q[0]; delay[g] q[1]; }
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00005_th06_v4
timing
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[1]; ry(-0.7853981634) q[0]; cz q[2], q[0]; h q[0]; delay[22dt] q[0]; rx(0.3926990817) q[0]; delay[80dt] q[0]; delay[64dt] q[2]; swap q[2], q[0]; sdg q[1]; z q[2]; rx(2.980370126) q[0]; rz(0.2617993878) q[2]; delay[26ns] q[2]; // === CORE_TASK_START === // TODO(cor...
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[1]; ry(-0.7853981634) q[0]; cz q[2], q[0]; h q[0]; delay[22dt] q[0]; rx(0.3926990817) q[0]; delay[80dt] q[0]; delay[64dt] q[2]; swap q[2], q[0]; sdg q[1]; z q[2]; rx(2.980370126) q[0]; rz(0.2617993878) q[2]; delay[26ns] q[2]; // === CORE_TASK_START === // right_al...
// right_alignment_stretch | right_align_stretch_then_rx_x: Right-align: stretch, then apply RX and X at the end. stretch g; box[124ns] { delay[g] q[0]; rx(0.392699) q[0]; x q[0]; }
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00006_th07_v2
timing
OPENQASM 3; include "stdgates.inc"; qubit[4] q; h q[0]; rx(3.141592654) q[2]; x q[2]; cx q[1], q[2]; cx q[1], q[3]; swap q[2], q[3]; sdg q[1]; cz q[0], q[1]; cx q[0], q[1]; cz q[1], q[3]; s q[0]; rx(2.094395102) q[1]; y q[3]; rz(2.35619449) q[2]; ry(0.5235987756) q[1]; rx(0) q[2]; z q[3]; swap q[1], q[0]; t q[0]; cz...
OPENQASM 3; include "stdgates.inc"; qubit[4] q; h q[0]; rx(3.141592654) q[2]; x q[2]; cx q[1], q[2]; cx q[1], q[3]; swap q[2], q[3]; sdg q[1]; cz q[0], q[1]; cx q[0], q[1]; cz q[1], q[3]; s q[0]; rx(2.094395102) q[1]; y q[3]; rz(2.35619449) q[2]; ry(0.5235987756) q[1]; rx(0) q[2]; z q[3]; swap q[1], q[0]; t q[0]; cz...
// center_alignment_stretch | center_align_rx: Center-align an RX rotation by symmetric stretch delays. stretch g; box[144ns] { delay[g] q[0]; rx(1.5708) q[0]; delay[g] q[0]; }
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00007_th08_v3
timing
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[1]; h q[0]; barrier q; x q[1]; cz q[1], q[2]; rz(2.094395102) q[1]; delay[56ns] q[0]; barrier q; rx(3.141592654) q[2]; tdg q[0]; sdg q[0]; cx q[1], q[2]; rx(0) q[1]; cz q[2], q[0]; cx q[2], q[0]; x q[0]; rz(-0.7853981634) q[0]; ry(3.141592654) q[0]; rz(2.876581889)...
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[1]; h q[0]; barrier q; x q[1]; cz q[1], q[2]; rz(2.094395102) q[1]; delay[56ns] q[0]; barrier q; rx(3.141592654) q[2]; tdg q[0]; sdg q[0]; cx q[1], q[2]; rx(0) q[1]; cz q[2], q[0]; cx q[2], q[0]; x q[0]; rz(-0.7853981634) q[0]; ry(3.141592654) q[0]; rz(2.876581889)...
// proportional_placement | two_stretches_two_segments: Use two independent stretch variables to create a two-segment placement. stretch a; stretch b; box[349ns] { delay[a] q[0]; rz(0.785398) q[0]; delay[b] q[0]; x q[0]; }
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00008_th09_v4
timing
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[2]; swap q[2], q[0]; sdg q[2]; h q[2]; swap q[0], q[2]; ry(0.7853981634) q[2]; delay[50ns] q[0]; ry(1.570796327) q[1]; cx q[0], q[2]; cz q[0], q[1]; cx q[1], q[2]; y q[0]; t q[0]; cz q[0], q[1]; ry(-2.762160353) q[2]; rx(-1.570796327) q[0]; tdg q[1]; swap q[1], q[0...
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[2]; swap q[2], q[0]; sdg q[2]; h q[2]; swap q[0], q[2]; ry(0.7853981634) q[2]; delay[50ns] q[0]; ry(1.570796327) q[1]; cx q[0], q[2]; cz q[0], q[1]; cx q[1], q[2]; y q[0]; t q[0]; cz q[0], q[1]; ry(-2.762160353) q[2]; rx(-1.570796327) q[0]; tdg q[1]; swap q[1], q[0...
// durationof_single_gate | durationof_h: Delay by durationof({h}), then apply Z. delay[durationof({ h q[1]; })] q[1]; z q[1];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00009_th10_v2
timing
OPENQASM 3; include "stdgates.inc"; qubit[5] q; h q[1]; ry(2.094395102) q[0]; rz(2.094395102) q[3]; tdg q[4]; cz q[1], q[2]; y q[2]; s q[4]; z q[3]; rz(0) q[0]; s q[2]; z q[3]; barrier q; rx(1.570796327) q[1]; delay[77ns] q[2]; delay[30dt] q[1]; rz(1.047197551) q[1]; // === CORE_TASK_START === // TODO(core task): T...
OPENQASM 3; include "stdgates.inc"; qubit[5] q; h q[1]; ry(2.094395102) q[0]; rz(2.094395102) q[3]; tdg q[4]; cz q[1], q[2]; y q[2]; s q[4]; z q[3]; rz(0) q[0]; s q[2]; z q[3]; barrier q; rx(1.570796327) q[1]; delay[77ns] q[2]; delay[30dt] q[1]; rz(1.047197551) q[1]; // === CORE_TASK_START === // durationof_subcirc...
// durationof_subcircuit | durationof_h_then_cx: Delay by durationof({H;CX}), then apply X on target. delay[durationof({ h q[0]; cx q[0], q[1]; })] q[1]; x q[1];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00010_th11_v3
timing
OPENQASM 3; include "stdgates.inc"; qubit[5] q; h q[2]; rx(1.047197551) q[3]; rx(2.094395102) q[2]; s q[1]; cz q[0], q[1]; cz q[3], q[1]; rx(0.7853981634) q[2]; tdg q[4]; rx(1.047197551) q[0]; s q[2]; rz(0) q[0]; // === CORE_TASK_START === // TODO(core task): The snippet applies a delay operation followed by an X g...
OPENQASM 3; include "stdgates.inc"; qubit[5] q; h q[2]; rx(1.047197551) q[3]; rx(2.094395102) q[2]; s q[1]; cz q[0], q[1]; cz q[3], q[1]; rx(0.7853981634) q[2]; tdg q[4]; rx(1.047197551) q[0]; s q[2]; rz(0) q[0]; // === CORE_TASK_START === // dynamic_padding_safe | padding_with_2q_in_full: Safe padding derived from...
// dynamic_padding_safe | padding_with_2q_in_full: Safe padding derived from a block that includes a 2-qubit gate. delay[durationof({ h q[1]; cx q[1], q[2]; }) - durationof({ h q[1]; }) + 9ns] q[2]; x q[2];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00011_th12_v4
timing
OPENQASM 3; include "stdgates.inc"; qubit[4] q; h q[1]; z q[1]; x q[2]; cz q[0], q[2]; cx q[0], q[1]; h q[1]; sdg q[3]; barrier q; ry(1.570796327) q[0]; tdg q[1]; swap q[1], q[3]; cz q[3], q[0]; x q[2]; barrier q; rx(2.067526226) q[2]; cz q[3], q[1]; ry(0.3926990817) q[2]; barrier q; swap q[3], q[2]; rx(0) q[1]; //...
OPENQASM 3; include "stdgates.inc"; qubit[4] q; h q[1]; z q[1]; x q[2]; cz q[0], q[2]; cx q[0], q[1]; h q[1]; sdg q[3]; barrier q; ry(1.570796327) q[0]; tdg q[1]; swap q[1], q[3]; cz q[3], q[0]; x q[2]; barrier q; rx(2.067526226) q[2]; cz q[3], q[1]; ry(0.3926990817) q[2]; barrier q; swap q[3], q[2]; rx(0) q[1]; //...
// basic_box_boundary | box_with_barrier_inside: Put an X and a barrier inside a box, then apply X outside. box { x q[0]; barrier q; } x q[0];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00012_th13_v2
timing
OPENQASM 3; include "stdgates.inc"; qubit[5] q; h q[0]; cx q[3], q[4]; swap q[4], q[0]; ry(0.3926990817) q[0]; delay[10ns] q[0]; rz(2.094395102) q[2]; cz q[4], q[0]; swap q[4], q[0]; rx(-0.7853981634) q[3]; ry(0) q[3]; rz(0.5235987756) q[2]; delay[61dt] q[3]; cz q[3], q[0]; h q[1]; delay[59dt] q[1]; ry(0.2617993878)...
OPENQASM 3; include "stdgates.inc"; qubit[5] q; h q[0]; cx q[3], q[4]; swap q[4], q[0]; ry(0.3926990817) q[0]; delay[10ns] q[0]; rz(2.094395102) q[2]; cz q[4], q[0]; swap q[4], q[0]; rx(-0.7853981634) q[3]; ry(0) q[3]; rz(0.5235987756) q[2]; delay[61dt] q[3]; cz q[3], q[0]; h q[1]; delay[59dt] q[1]; ry(0.2617993878)...
// timed_box_known_duration | timed_box_single_delay_exact: Use a timed box that contains a single delay equal to the box duration. box[85ns] { delay[85ns] q[0]; } h q[0];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00013_th14_v3
timing
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[1]; cz q[0], q[2]; cz q[2], q[0]; ry(2.35619449) q[1]; delay[57ns] q[1]; h q[1]; t q[2]; barrier q; s q[2]; ry(0.3926990817) q[2]; h q[1]; s q[0]; swap q[0], q[2]; ry(2.35619449) q[2]; // === CORE_TASK_START === // TODO(core task): The snippet applies a controlled...
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[1]; cz q[0], q[2]; cz q[2], q[0]; ry(2.35619449) q[1]; delay[57ns] q[1]; h q[1]; t q[2]; barrier q; s q[2]; ry(0.3926990817) q[2]; h q[1]; s q[0]; swap q[0], q[2]; ry(2.35619449) q[2]; // === CORE_TASK_START === // box_with_stretch_fill | parallel_stretch_then_2q:...
// box_with_stretch_fill | parallel_stretch_then_2q: In a timed box: stretch on both qubits then apply a 2-qubit gate. stretch g; box[166ns] { delay[g] q[0]; delay[g] q[2]; cx q[0], q[2]; }
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00014_th15_v4
timing
OPENQASM 3; include "stdgates.inc"; qubit[4] q; h q[2]; x q[1]; ry(0.3926990817) q[1]; rz(2.094395102) q[2]; cx q[3], q[1]; z q[1]; swap q[2], q[0]; barrier q; rx(0.7849876585) q[3]; barrier q; cx q[0], q[3]; t q[0]; // === CORE_TASK_START === // TODO(core task): The snippet applies a Hadamard gate to qubit 2, foll...
OPENQASM 3; include "stdgates.inc"; qubit[4] q; h q[2]; x q[1]; ry(0.3926990817) q[1]; rz(2.094395102) q[2]; cx q[3], q[1]; z q[1]; swap q[2], q[0]; barrier q; rx(0.7849876585) q[3]; barrier q; cx q[0], q[3]; t q[0]; // === CORE_TASK_START === // barrier_ordering | barrier_h_involution: H, barrier, H to emphasize b...
// barrier_ordering | barrier_h_involution: H, barrier, H to emphasize barrier as a scheduling boundary. h q[2]; barrier q; h q[2];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00015_th16_v2
timing
OPENQASM 3; include "stdgates.inc"; qubit[4] q; h q[2]; ry(-2.347029926) q[1]; rz(0.3926990817) q[0]; ry(1.570796327) q[0]; cz q[1], q[3]; y q[2]; cx q[0], q[3]; cz q[0], q[2]; rz(3.141592654) q[3]; ry(-1.570796327) q[0]; rz(3.141592654) q[1]; rz(2.35619449) q[0]; cz q[0], q[2]; tdg q[1]; // === CORE_TASK_START ===...
OPENQASM 3; include "stdgates.inc"; qubit[4] q; h q[2]; ry(-2.347029926) q[1]; rz(0.3926990817) q[0]; ry(1.570796327) q[0]; cz q[1], q[3]; y q[2]; cx q[0], q[3]; cz q[0], q[2]; rz(3.141592654) q[3]; ry(-1.570796327) q[0]; rz(3.141592654) q[1]; rz(2.35619449) q[0]; cz q[0], q[2]; tdg q[1]; // === CORE_TASK_START ===...
// hahn_echo_midpoint | hahn_echo_y_mid: Echo variant: use Y pulse at midpoint instead of X. h q[2]; stretch g; box[364ns] { delay[g] q[2]; y q[2]; delay[g] q[2]; }
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00016_th17_v3
timing
OPENQASM 3; include "stdgates.inc"; qubit[5] q; h q[2]; rz(-1.844057309) q[1]; delay[1dt] q[4]; cz q[3], q[0]; swap q[2], q[0]; delay[30dt] q[4]; rz(0.3926990817) q[0]; ry(-0.6338948563) q[0]; rz(-2.669089411) q[1]; delay[26dt] q[2]; delay[27dt] q[3]; rx(-0.7048321509) q[3]; barrier q; tdg q[0]; tdg q[1]; x q[1]; cx...
OPENQASM 3; include "stdgates.inc"; qubit[5] q; h q[2]; rz(-1.844057309) q[1]; delay[1dt] q[4]; cz q[3], q[0]; swap q[2], q[0]; delay[30dt] q[4]; rz(0.3926990817) q[0]; ry(-0.6338948563) q[0]; rz(-2.669089411) q[1]; delay[26dt] q[2]; delay[27dt] q[3]; rx(-0.7048321509) q[3]; barrier q; tdg q[0]; tdg q[1]; x q[1]; cx...
// center_align_halfdiff_known | single_qubit_symmetric_known_delays: Use symmetric known delays around an operation (single-qubit centering). delay[29ns] q[0]; delay[22ns] q[0]; delay[29ns] q[0]; h q[0];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00017_th18_v4
timing
OPENQASM 3; include "stdgates.inc"; qubit[5] q; h q[1]; cx q[2], q[3]; t q[3]; ry(0.5235987756) q[2]; sdg q[4]; delay[80ns] q[2]; rz(2.35619449) q[3]; rx(2.35619449) q[2]; rz(1.047197551) q[3]; cx q[0], q[2]; rz(0.5235987756) q[1]; ry(-2.62931674) q[0]; cx q[4], q[0]; rx(-1.293568664) q[0]; ry(0.5235987756) q[3]; ry...
OPENQASM 3; include "stdgates.inc"; qubit[5] q; h q[1]; cx q[2], q[3]; t q[3]; ry(0.5235987756) q[2]; sdg q[4]; delay[80ns] q[2]; rz(2.35619449) q[3]; rx(2.35619449) q[2]; rz(1.047197551) q[3]; cx q[0], q[2]; rz(0.5235987756) q[1]; ry(-2.62931674) q[0]; cx q[4], q[0]; rx(-1.293568664) q[0]; ry(0.5235987756) q[3]; ry...
// multi_qubit_delay_semantics | global_delay_with_barrier: Global delay followed by barrier and a rotation. delay[156ns] q; barrier q; rz(0.785398) q[2];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00018_th19_v2
timing
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[1]; cz q[0], q[2]; cz q[2], q[0]; ry(2.35619449) q[1]; delay[57ns] q[1]; h q[1]; t q[2]; barrier q; s q[2]; ry(0.3926990817) q[2]; h q[1]; s q[0]; swap q[0], q[2]; ry(2.35619449) q[2]; // === CORE_TASK_START === // TODO(core task): The snippet applies a controlled...
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[1]; cz q[0], q[2]; cz q[2], q[0]; ry(2.35619449) q[1]; delay[57ns] q[1]; h q[1]; t q[2]; barrier q; s q[2]; ry(0.3926990817) q[2]; h q[1]; s q[0]; swap q[0], q[2]; ry(2.35619449) q[2]; // === CORE_TASK_START === // nop_sync_in_box | nop_vs_delay_parallel: Timed bo...
// nop_sync_in_box | nop_vs_delay_parallel: Timed box: nop on one qubit, full-duration delay on another. box[189ns] { nop q[2]; delay[189ns] q[0]; } cz q[2], q[0];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00019_th20_v3
timing
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[0]; cz q[2], q[1]; swap q[2], q[1]; rz(3.141592654) q[0]; s q[2]; barrier q; swap q[1], q[2]; h q[2]; barrier q; barrier q; cz q[0], q[1]; rz(-2.290197031) q[2]; rz(3.141592654) q[0]; cz q[2], q[0]; cz q[1], q[2]; y q[1]; rz(0.2617993878) q[2]; rz(2.35619449) q[0];...
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[0]; cz q[2], q[1]; swap q[2], q[1]; rz(3.141592654) q[0]; s q[2]; barrier q; swap q[1], q[2]; h q[2]; barrier q; barrier q; cz q[0], q[1]; rz(-2.290197031) q[2]; rz(3.141592654) q[0]; cz q[2], q[0]; cz q[1], q[2]; y q[1]; rz(0.2617993878) q[2]; rz(2.35619449) q[0];...
// duration_update | duration_scale: Scale a duration variable (2*d) before the second delay. duration d = 38ns; delay[d] q[1]; d = 2*d; delay[d] q[1]; rz(0.785398) q[1];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00020_th21_v4
timing
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[1]; cx q[1], q[0]; delay[78dt] q[0]; rx(1.047197551) q[2]; cx q[2], q[1]; cx q[0], q[2]; cz q[0], q[1]; x q[0]; ry(1.570796327) q[0]; sdg q[2]; swap q[1], q[0]; ry(0.2617993878) q[0]; swap q[0], q[1]; sdg q[0]; ry(2.35619449) q[2]; rz(0.7853981634) q[2]; // === CO...
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[1]; cx q[1], q[0]; delay[78dt] q[0]; rx(1.047197551) q[2]; cx q[2], q[1]; cx q[0], q[2]; cz q[0], q[1]; x q[0]; ry(1.570796327) q[0]; sdg q[2]; swap q[1], q[0]; ry(0.2617993878) q[0]; swap q[0], q[1]; sdg q[0]; ry(2.35619449) q[2]; rz(0.7853981634) q[2]; // === CO...
// explicit_delay_as_structure | repeated_delay_patterns: Repeat delay-gate-delay pattern on a single qubit. x q[1]; delay[141ns] q[1]; z q[1]; delay[141ns] q[1]; x q[1];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00021_th22_v2
timing
OPENQASM 3; include "stdgates.inc"; qubit[4] q; h q[0]; cx q[2], q[3]; ry(-0.7853981634) q[3]; swap q[2], q[0]; h q[3]; ry(-1.570796327) q[3]; swap q[2], q[3]; s q[0]; delay[63dt] q[3]; s q[0]; rx(0.9614626789) q[3]; y q[3]; cz q[2], q[1]; rz(-1.570796327) q[1]; // === CORE_TASK_START === // TODO(core task): The sn...
OPENQASM 3; include "stdgates.inc"; qubit[4] q; h q[0]; cx q[2], q[3]; ry(-0.7853981634) q[3]; swap q[2], q[0]; h q[3]; ry(-1.570796327) q[3]; swap q[2], q[3]; s q[0]; delay[63dt] q[3]; s q[0]; rx(0.9614626789) q[3]; y q[3]; cz q[2], q[1]; rz(-1.570796327) q[1]; // === CORE_TASK_START === // delay_zero_ordering | d...
// delay_zero_ordering | delay_zero_on_all_qubits: Use delay[0] on all qubits as a global ordering point. h q[3]; delay[0ns] q; h q[3];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00022_th23_v3
timing
OPENQASM 3; include "stdgates.inc"; qubit[4] q; h q[2]; barrier q; cx q[0], q[2]; cx q[2], q[0]; rx(1.047197551) q[1]; swap q[0], q[3]; delay[48dt] q[3]; z q[2]; delay[73dt] q[3]; t q[3]; rz(3.141592654) q[3]; t q[3]; cx q[3], q[1]; delay[39ns] q[2]; delay[20ns] q[1]; rz(2.605382457) q[1]; delay[26ns] q[1]; cx q[2],...
OPENQASM 3; include "stdgates.inc"; qubit[4] q; h q[2]; barrier q; cx q[0], q[2]; cx q[2], q[0]; rx(1.047197551) q[1]; swap q[0], q[3]; delay[48dt] q[3]; z q[2]; delay[73dt] q[3]; t q[3]; rz(3.141592654) q[3]; t q[3]; cx q[3], q[1]; delay[39ns] q[2]; delay[20ns] q[1]; rz(2.605382457) q[1]; delay[26ns] q[1]; cx q[2],...
// nested_box | nested_box_with_untimed_inner: Use an untimed inner box inside a timed outer box. box[219ns] { box { h q[2]; } delay[57ns] q[2]; } h q[2];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00023_th24_v4
timing
OPENQASM 3; include "stdgates.inc"; qubit[5] q; h q[4]; cx q[3], q[2]; z q[2]; sdg q[0]; x q[4]; s q[2]; swap q[3], q[4]; ry(-3.041208379) q[0]; rx(1.047197551) q[0]; ry(2.094395102) q[1]; swap q[0], q[1]; sdg q[4]; swap q[3], q[1]; ry(2.094395102) q[2]; cx q[0], q[3]; // === CORE_TASK_START === // TODO(core task):...
OPENQASM 3; include "stdgates.inc"; qubit[5] q; h q[4]; cx q[3], q[2]; z q[2]; sdg q[0]; x q[4]; s q[2]; swap q[3], q[4]; ry(-3.041208379) q[0]; rx(1.047197551) q[0]; ry(2.094395102) q[1]; swap q[0], q[1]; sdg q[4]; swap q[3], q[1]; ry(2.094395102) q[2]; cx q[0], q[3]; // === CORE_TASK_START === // multi_stretch_so...
// multi_stretch_solve_system | three_stretches_mixed_constraints: Use three stretches with two boxes (underdetermined but constrained). stretch a; stretch b; stretch c; box[153ns] { delay[a] q[2]; delay[b] q[2]; delay[c] q[2]; } box[200ns] { delay[2*a] q[2]; delay[b] q[2]; delay[c] q[2]; } rz(0.785398) q[2];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00024_th25_v2
timing
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[1]; tdg q[1]; delay[59ns] q[1]; t q[0]; x q[1]; x q[0]; cz q[2], q[0]; ry(1.047197551) q[1]; barrier q; swap q[1], q[0]; delay[38dt] q[0]; // === CORE_TASK_START === // TODO(core task): The snippet applies a delay operation to qubit zero with a duration equal to t...
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[1]; tdg q[1]; delay[59ns] q[1]; t q[0]; x q[1]; x q[0]; cz q[2], q[0]; ry(1.047197551) q[1]; barrier q; swap q[1], q[0]; delay[38dt] q[0]; // === CORE_TASK_START === // durationof_on_box_compound | durationof_timed_box_delay: Delay by durationof(timed box containi...
// durationof_on_box_compound | durationof_timed_box_delay: Delay by durationof(timed box containing a delay), then X. delay[durationof({ box { delay[22ns] q[0]; } })] q[0]; x q[0];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00025_th01_v3
timing
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[2]; cz q[0], q[2]; barrier q; rx(-2.053263771) q[2]; rx(-1.570796327) q[1]; rx(-0.7853981634) q[0]; rz(0) q[0]; swap q[0], q[2]; rx(3.141592654) q[0]; swap q[0], q[2]; ry(1.047197551) q[2]; rx(-3.095063875) q[2]; rx(0.2617993878) q[1]; cz q[0], q[1]; cx q[0], q[2];...
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[2]; cz q[0], q[2]; barrier q; rx(-2.053263771) q[2]; rx(-1.570796327) q[1]; rx(-0.7853981634) q[0]; rz(0) q[0]; swap q[0], q[2]; rx(3.141592654) q[0]; swap q[0], q[2]; ry(1.047197551) q[2]; rx(-3.095063875) q[2]; rx(0.2617993878) q[1]; cz q[0], q[1]; cx q[0], q[2];...
// basic_delay_units | two_qubits_independent_delays_then_2q: Delay two qubits independently, then apply a 2-qubit gate. delay[45ns] q[2]; delay[10ns] q[0]; cx q[2], q[0];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00026_th02_v4
timing
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[1]; s q[2]; rx(-1.570796327) q[1]; tdg q[0]; sdg q[1]; cz q[0], q[2]; y q[0]; y q[2]; delay[14dt] q[0]; rz(-1.300895772) q[1]; cz q[0], q[1]; delay[39dt] q[1]; rx(1.047197551) q[2]; rx(0.5235987756) q[2]; swap q[2], q[1]; rz(1.224605339) q[1]; delay[57ns] q[1]; ry(...
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[1]; s q[2]; rx(-1.570796327) q[1]; tdg q[0]; sdg q[1]; cz q[0], q[2]; y q[0]; y q[2]; delay[14dt] q[0]; rz(-1.300895772) q[1]; cz q[0], q[1]; delay[39dt] q[1]; rx(1.047197551) q[2]; rx(0.5235987756) q[2]; swap q[2], q[1]; rz(1.224605339) q[1]; delay[57ns] q[1]; ry(...
// dt_delay | dt_delay_then_2q_gate: Delay in dt on one qubit, then apply a 2-qubit gate (if available). h q[2]; delay[96dt] q[2]; cx q[2], q[0];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00027_th03_v2
timing
OPENQASM 3; include "stdgates.inc"; qubit[5] q; h q[3]; swap q[2], q[3]; rz(0.5235987756) q[4]; cx q[4], q[0]; y q[2]; s q[1]; sdg q[3]; ry(0.7438202549) q[0]; y q[3]; rz(1.047197551) q[4]; cx q[4], q[3]; ry(1.570796327) q[2]; rx(0.5235987756) q[4]; rx(-2.568197786) q[2]; cx q[4], q[1]; ry(-1.570796327) q[3]; // ==...
OPENQASM 3; include "stdgates.inc"; qubit[5] q; h q[3]; swap q[2], q[3]; rz(0.5235987756) q[4]; cx q[4], q[0]; y q[2]; s q[1]; sdg q[3]; ry(0.7438202549) q[0]; y q[3]; rz(1.047197551) q[4]; cx q[4], q[3]; ry(1.570796327) q[2]; rx(0.5235987756) q[4]; rx(-2.568197786) q[2]; cx q[4], q[1]; ry(-1.570796327) q[3]; // ==...
// duration_arithmetic | scaled_duration: Delay by c*a, then apply H. delay[5*5ns] q[0]; h q[0];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00028_th04_v3
timing
OPENQASM 3; include "stdgates.inc"; qubit[4] q; h q[2]; cx q[1], q[2]; swap q[2], q[3]; swap q[1], q[3]; cz q[0], q[3]; ry(0.7853981634) q[1]; cz q[2], q[1]; rx(1.28538026) q[1]; t q[2]; rx(0) q[3]; cz q[3], q[2]; ry(0.2617993878) q[3]; rx(1.570796327) q[1]; rz(0) q[3]; cx q[2], q[1]; ry(-0.7853981634) q[0]; ry(-0.1...
OPENQASM 3; include "stdgates.inc"; qubit[4] q; h q[2]; cx q[1], q[2]; swap q[2], q[3]; swap q[1], q[3]; cz q[0], q[3]; ry(0.7853981634) q[1]; cz q[2], q[1]; rx(1.28538026) q[1]; t q[2]; rx(0) q[3]; cz q[3], q[2]; ry(0.2617993878) q[3]; rx(1.570796327) q[1]; rz(0) q[3]; cx q[2], q[1]; ry(-0.7853981634) q[0]; ry(-0.1...
// mixed_units_duration | sequential_mixed_units: Apply two delays in different units sequentially, then RZ. delay[29ms] q[1]; delay[6us] q[1]; rz(0.392699) q[1];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00029_th05_v4
timing
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[0]; rz(-1.570796327) q[0]; ry(0) q[2]; ry(-0.7853981634) q[0]; tdg q[0]; rx(-1.570796327) q[1]; swap q[0], q[2]; cx q[1], q[2]; rz(-1.672020179) q[1]; cx q[2], q[0]; z q[1]; cx q[2], q[0]; cz q[2], q[1]; barrier q; rz(1.570796327) q[0]; swap q[0], q[1]; rx(1.047197...
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[0]; rz(-1.570796327) q[0]; ry(0) q[2]; ry(-0.7853981634) q[0]; tdg q[0]; rx(-1.570796327) q[1]; swap q[0], q[2]; cx q[1], q[2]; rz(-1.672020179) q[1]; cx q[2], q[0]; z q[1]; cx q[2], q[0]; cz q[2], q[1]; barrier q; rz(1.570796327) q[0]; swap q[0], q[1]; rx(1.047197...
// left_alignment_stretch | left_align_rx_then_double_stretch: Left-align: RX then use two stretch delays as remaining fill. stretch g; box[169ns] { rx(1.5708) q[1]; delay[g] q[1]; delay[g] q[1]; }
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00030_th06_v2
timing
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[0]; rz(0.7853981634) q[1]; ry(0.5235987756) q[2]; y q[1]; barrier q; tdg q[2]; cx q[1], q[2]; swap q[2], q[1]; swap q[0], q[2]; barrier q; y q[2]; x q[1]; h q[2]; cx q[0], q[1]; rx(-0.5217709516) q[1]; x q[1]; rz(3.141592654) q[1]; swap q[2], q[1]; rx(0.3926990817)...
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[0]; rz(0.7853981634) q[1]; ry(0.5235987756) q[2]; y q[1]; barrier q; tdg q[2]; cx q[1], q[2]; swap q[2], q[1]; swap q[0], q[2]; barrier q; y q[2]; x q[1]; h q[2]; cx q[0], q[1]; rx(-0.5217709516) q[1]; x q[1]; rz(3.141592654) q[1]; swap q[2], q[1]; rx(0.3926990817)...
// right_alignment_stretch | right_align_stretch_then_h_rz: Right-align: stretch, then H and RZ near the end. stretch g; box[221ns] { delay[g] q[2]; h q[2]; rz(0.785398) q[2]; }
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00031_th07_v3
timing
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[0]; y q[2]; sdg q[2]; rz(3.141592654) q[1]; ry(2.35619449) q[0]; rx(1.570796327) q[2]; delay[60ns] q[1]; rx(0.9945714281) q[0]; cx q[0], q[1]; y q[0]; rx(-0.4930395404) q[2]; delay[61ns] q[2]; ry(0.7853981634) q[1]; swap q[2], q[0]; barrier q; rx(-0.829098196) q[0]...
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[0]; y q[2]; sdg q[2]; rz(3.141592654) q[1]; ry(2.35619449) q[0]; rx(1.570796327) q[2]; delay[60ns] q[1]; rx(0.9945714281) q[0]; cx q[0], q[1]; y q[0]; rx(-0.4930395404) q[2]; delay[61ns] q[2]; ry(0.7853981634) q[1]; swap q[2], q[0]; barrier q; rx(-0.829098196) q[0]...
// center_alignment_stretch | center_align_2q_gate: Center-align a 2-qubit gate by stretching both qubits symmetrically. stretch g; box[205ns] { delay[g] q[1]; delay[g] q[0]; cx q[1], q[0]; delay[g] q[1]; delay[g] q[0]; }
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00032_th08_v4
timing
OPENQASM 3; include "stdgates.inc"; qubit[5] q; h q[2]; ry(0.2617993878) q[0]; rz(3.141592654) q[1]; sdg q[1]; t q[4]; cz q[0], q[1]; sdg q[4]; tdg q[4]; tdg q[1]; ry(0.2617993878) q[2]; sdg q[4]; // === CORE_TASK_START === // TODO(core task): This snippet applies a sequence of operations to qubit q[2] within a tim...
OPENQASM 3; include "stdgates.inc"; qubit[5] q; h q[2]; ry(0.2617993878) q[0]; rz(3.141592654) q[1]; sdg q[1]; t q[4]; cz q[0], q[1]; sdg q[4]; tdg q[4]; tdg q[1]; ry(0.2617993878) q[2]; sdg q[4]; // === CORE_TASK_START === // proportional_placement | fixed_plus_stretch_centering: Use a fixed delay plus symmetric s...
// proportional_placement | fixed_plus_stretch_centering: Use a fixed delay plus symmetric stretch delays around a gate. stretch g; box[258ns] { delay[48ns] q[2]; delay[g] q[2]; y q[2]; delay[g] q[2]; }
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00033_th09_v2
timing
OPENQASM 3; include "stdgates.inc"; qubit[5] q; h q[2]; ry(0.2617993878) q[0]; rz(3.141592654) q[1]; sdg q[1]; t q[4]; cz q[0], q[1]; sdg q[4]; tdg q[4]; tdg q[1]; ry(0.2617993878) q[2]; sdg q[4]; // === CORE_TASK_START === // TODO(core task): The snippet applies a delay operation to qubit one, with the delay durat...
OPENQASM 3; include "stdgates.inc"; qubit[5] q; h q[2]; ry(0.2617993878) q[0]; rz(3.141592654) q[1]; sdg q[1]; t q[4]; cz q[0], q[1]; sdg q[4]; tdg q[4]; tdg q[1]; ry(0.2617993878) q[2]; sdg q[4]; // === CORE_TASK_START === // durationof_single_gate | durationof_rz: Delay by durationof({rz}), then apply X. delay[du...
// durationof_single_gate | durationof_rz: Delay by durationof({rz}), then apply X. delay[durationof({ rz(1.0472) q[1]; })] q[1]; x q[1];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00034_th10_v3
timing
OPENQASM 3; include "stdgates.inc"; qubit[5] q; h q[1]; rx(-0.3407543195) q[3]; rx(-0.7853981634) q[3]; t q[2]; cx q[4], q[0]; cz q[0], q[3]; rx(0.2617993878) q[2]; z q[3]; rz(0) q[2]; swap q[2], q[4]; sdg q[1]; swap q[0], q[3]; rz(-1.570796327) q[3]; rz(2.35619449) q[3]; cx q[2], q[0]; t q[0]; // === CORE_TASK_STA...
OPENQASM 3; include "stdgates.inc"; qubit[5] q; h q[1]; rx(-0.3407543195) q[3]; rx(-0.7853981634) q[3]; t q[2]; cx q[4], q[0]; cz q[0], q[3]; rx(0.2617993878) q[2]; z q[3]; rz(0) q[2]; swap q[2], q[4]; sdg q[1]; swap q[0], q[3]; rz(-1.570796327) q[3]; rz(2.35619449) q[3]; cx q[2], q[0]; t q[0]; // === CORE_TASK_STA...
// durationof_subcircuit | durationof_three_rotations: Delay by durationof({RZ;RY;RX}), then apply H. delay[durationof({ rz(1.0472) q[4]; ry(0.785398) q[4]; rx(0.392699) q[4]; })] q[4]; h q[4];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00035_th11_v4
timing
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[1]; rx(-0.7853981634) q[2]; sdg q[1]; cx q[2], q[1]; rz(0.7853981634) q[2]; x q[0]; cz q[1], q[2]; y q[2]; rz(-1.570796327) q[0]; ry(0.6749152789) q[2]; barrier q; // === CORE_TASK_START === // TODO(core task): The snippet applies a dynamically calculated delay to...
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[1]; rx(-0.7853981634) q[2]; sdg q[1]; cx q[2], q[1]; rz(0.7853981634) q[2]; x q[0]; cz q[1], q[2]; y q[2]; rz(-1.570796327) q[0]; ry(0.6749152789) q[2]; barrier q; // === CORE_TASK_START === // dynamic_padding_safe | padding_with_rotations: Safe padding using rota...
// dynamic_padding_safe | padding_with_rotations: Safe padding using rotation-only blocks. delay[durationof({ rz(1.0472) q[2]; rx(0.785398) q[2]; }) - durationof({ rz(1.0472) q[2]; }) + 39ns] q[2]; y q[2];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00036_th12_v2
timing
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[2]; cz q[2], q[1]; cx q[2], q[1]; barrier q; barrier q; rx(0.2617993878) q[0]; delay[80ns] q[1]; rx(0.3926990817) q[1]; rz(0.2617993878) q[2]; swap q[0], q[1]; cx q[2], q[1]; cx q[1], q[0]; ry(-1.727457068) q[0]; barrier q; x q[1]; tdg q[1]; tdg q[0]; ry(0.39269908...
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[2]; cz q[2], q[1]; cx q[2], q[1]; barrier q; barrier q; rx(0.2617993878) q[0]; delay[80ns] q[1]; rx(0.3926990817) q[1]; rz(0.2617993878) q[2]; swap q[0], q[1]; cx q[2], q[1]; cx q[1], q[0]; ry(-1.727457068) q[0]; barrier q; x q[1]; tdg q[1]; tdg q[0]; ry(0.39269908...
// basic_box_boundary | box_2q_op_then_repeat: Put a 2-qubit op inside a box, then repeat outside. box { cx q[1], q[2]; } cx q[1], q[2];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00037_th13_v3
timing
OPENQASM 3; include "stdgates.inc"; qubit[4] q; h q[2]; barrier q; rz(-0.7853981634) q[0]; x q[1]; cz q[3], q[0]; h q[2]; rx(2.499193326) q[3]; rx(1.663191642) q[1]; rx(3.141592654) q[3]; ry(-1.570796327) q[0]; ry(0) q[3]; rx(1.570796327) q[1]; y q[0]; h q[2]; rx(0.3926990817) q[2]; x q[2]; rz(-1.933284902) q[2]; de...
OPENQASM 3; include "stdgates.inc"; qubit[4] q; h q[2]; barrier q; rz(-0.7853981634) q[0]; x q[1]; cz q[3], q[0]; h q[2]; rx(2.499193326) q[3]; rx(1.663191642) q[1]; rx(3.141592654) q[3]; ry(-1.570796327) q[0]; ry(0) q[3]; rx(1.570796327) q[1]; y q[0]; h q[2]; rx(0.3926990817) q[2]; x q[2]; rz(-1.933284902) q[2]; de...
// timed_box_known_duration | timed_box_parallel_delays_then_2q: Timed box with parallel known delays on two qubits, then a 2-qubit gate. stretch g; box[197ns] { delay[32ns] q[2]; delay[32ns] q[0]; delay[g] q[2]; delay[g] q[0]; delay[15ns] q[2]; delay[15ns] q[0]; } cz q[2], q[0];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00038_th14_v4
timing
OPENQASM 3; include "stdgates.inc"; qubit[4] q; h q[2]; rz(2.094395102) q[0]; rz(0.3926990817) q[0]; ry(2.094395102) q[1]; delay[9dt] q[2]; cz q[1], q[3]; ry(1.081854906) q[0]; ry(0.8015060017) q[2]; swap q[0], q[2]; sdg q[0]; cx q[0], q[3]; // === CORE_TASK_START === // TODO(core task): The snippet defines a stret...
OPENQASM 3; include "stdgates.inc"; qubit[4] q; h q[2]; rz(2.094395102) q[0]; rz(0.3926990817) q[0]; ry(2.094395102) q[1]; delay[9dt] q[2]; cz q[1], q[3]; ry(1.081854906) q[0]; ry(0.8015060017) q[2]; swap q[0], q[2]; sdg q[0]; cx q[0], q[3]; // === CORE_TASK_START === // box_with_stretch_fill | symmetric_stretch_ar...
// box_with_stretch_fill | symmetric_stretch_around_rz: In a timed box: stretch, RZ, stretch. stretch g; box[202ns] { delay[g] q[2]; rz(1.0472) q[2]; delay[g] q[2]; }
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00039_th15_v2
timing
OPENQASM 3; include "stdgates.inc"; qubit[4] q; h q[2]; barrier q; cx q[0], q[2]; cx q[2], q[0]; rx(1.047197551) q[1]; swap q[0], q[3]; delay[48dt] q[3]; z q[2]; delay[73dt] q[3]; t q[3]; rz(3.141592654) q[3]; t q[3]; cx q[3], q[1]; delay[39ns] q[2]; delay[20ns] q[1]; rz(2.605382457) q[1]; delay[26ns] q[1]; cx q[2],...
OPENQASM 3; include "stdgates.inc"; qubit[4] q; h q[2]; barrier q; cx q[0], q[2]; cx q[2], q[0]; rx(1.047197551) q[1]; swap q[0], q[3]; delay[48dt] q[3]; z q[2]; delay[73dt] q[3]; t q[3]; rz(3.141592654) q[3]; t q[3]; cx q[3], q[1]; delay[39ns] q[2]; delay[20ns] q[1]; rz(2.605382457) q[1]; delay[26ns] q[1]; cx q[2],...
// barrier_ordering | barrier_before_cx: Place barrier before a 2-qubit gate to separate preparation and entangling. h q[2]; x q[0]; barrier q; cx q[2], q[0];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00040_th16_v3
timing
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[0]; rx(-2.089744289) q[0]; swap q[2], q[1]; swap q[1], q[2]; s q[0]; delay[63ns] q[1]; tdg q[1]; ry(0.2617993878) q[1]; ry(0.7853981634) q[1]; swap q[0], q[1]; ry(-2.813576401) q[1]; delay[45ns] q[1]; ry(-1.221764946) q[2]; x q[0]; cz q[1], q[2]; rx(0) q[2]; ry(0.5...
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[0]; rx(-2.089744289) q[0]; swap q[2], q[1]; swap q[1], q[2]; s q[0]; delay[63ns] q[1]; tdg q[1]; ry(0.2617993878) q[1]; ry(0.7853981634) q[1]; swap q[0], q[1]; ry(-2.813576401) q[1]; delay[45ns] q[1]; ry(-1.221764946) q[2]; x q[0]; cz q[1], q[2]; rx(0) q[2]; ry(0.5...
// hahn_echo_midpoint | double_echo: Apply two consecutive echo boxes (repeat twice). h q[0]; stretch g; box[293ns] { delay[g] q[0]; x q[0]; delay[g] q[0]; } stretch g2; box[293ns] { delay[g2] q[0]; x q[0]; delay[g2] q[0]; }
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00041_th17_v4
timing
OPENQASM 3; include "stdgates.inc"; qubit[4] q; h q[1]; h q[2]; delay[75dt] q[3]; cz q[3], q[0]; cz q[0], q[2]; rz(0.2617993878) q[1]; tdg q[0]; swap q[0], q[3]; rx(0) q[1]; swap q[1], q[0]; h q[3]; barrier q; cz q[3], q[1]; delay[5ns] q[3]; t q[3]; ry(2.229760174) q[0]; z q[2]; swap q[2], q[1]; x q[0]; cx q[2], q[0...
OPENQASM 3; include "stdgates.inc"; qubit[4] q; h q[1]; h q[2]; delay[75dt] q[3]; cz q[3], q[0]; cz q[0], q[2]; rz(0.2617993878) q[1]; tdg q[0]; swap q[0], q[3]; rx(0) q[1]; swap q[1], q[0]; h q[3]; barrier q; cz q[3], q[1]; delay[5ns] q[3]; t q[3]; ry(2.229760174) q[0]; z q[2]; swap q[2], q[1]; x q[0]; cx q[2], q[0...
// center_align_halfdiff_known | three_qubit_center_alignment: Align centers for multiple qubits using known-duration delays. delay[186ns] q[0]; delay[8ns] q[2]; delay[170ns] q[2]; delay[53ns] q[1]; delay[80ns] q[1]; x q[0]; x q[2]; x q[1];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00042_th18_v2
timing
OPENQASM 3; include "stdgates.inc"; qubit[5] q; h q[1]; rz(1.243296822) q[3]; barrier q; cx q[0], q[2]; barrier q; delay[64dt] q[2]; delay[2ns] q[3]; cz q[1], q[2]; rz(0) q[1]; t q[1]; cx q[2], q[1]; barrier q; rx(-2.630225093) q[0]; cx q[3], q[0]; rx(0.04746870698) q[3]; swap q[1], q[3]; delay[34ns] q[4]; rz(2.1676...
OPENQASM 3; include "stdgates.inc"; qubit[5] q; h q[1]; rz(1.243296822) q[3]; barrier q; cx q[0], q[2]; barrier q; delay[64dt] q[2]; delay[2ns] q[3]; cz q[1], q[2]; rz(0) q[1]; t q[1]; cx q[2], q[1]; barrier q; rx(-2.630225093) q[0]; cx q[3], q[0]; rx(0.04746870698) q[3]; swap q[1], q[3]; delay[34ns] q[4]; rz(2.1676...
// multi_qubit_delay_semantics | global_delay_between_gates: Put a global delay between preparation and operation. h q[2]; delay[158ns] q; x q[2];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00043_th19_v3
timing
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[1]; tdg q[2]; cx q[0], q[2]; delay[32ns] q[0]; x q[0]; ry(3.141592654) q[0]; swap q[0], q[2]; rx(0.3926990817) q[2]; ry(0.7853981634) q[0]; swap q[2], q[1]; swap q[0], q[2]; cz q[2], q[1]; // === CORE_TASK_START === // TODO(core task): The snippet involves a singl...
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[1]; tdg q[2]; cx q[0], q[2]; delay[32ns] q[0]; x q[0]; ry(3.141592654) q[0]; swap q[0], q[2]; rx(0.3926990817) q[2]; ry(0.7853981634) q[0]; swap q[2], q[1]; swap q[0], q[2]; cz q[2], q[1]; // === CORE_TASK_START === // nop_sync_in_box | nop_only_box: Timed box wit...
// nop_sync_in_box | nop_only_box: Timed box with only nop, then apply a gate. box[211ns] { nop q[0]; } h q[0];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00044_th20_v4
timing
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[0]; rz(-0.7853981634) q[1]; cx q[2], q[1]; ry(1.570796327) q[1]; t q[1]; swap q[1], q[0]; cx q[0], q[1]; y q[0]; cz q[2], q[0]; rz(2.35619449) q[2]; rz(0.9550131259) q[2]; cx q[2], q[1]; // === CORE_TASK_START === // TODO(core task): The snippet involves a duratio...
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[0]; rz(-0.7853981634) q[1]; cx q[2], q[1]; ry(1.570796327) q[1]; t q[1]; swap q[1], q[0]; cx q[0], q[1]; y q[0]; cz q[2], q[0]; rz(2.35619449) q[2]; rz(0.9550131259) q[2]; cx q[2], q[1]; // === CORE_TASK_START === // duration_update | duration_noop_subtract_zero: ...
// duration_update | duration_noop_subtract_zero: Demonstrate duration reassignment with a no-op subtract of 0. duration d = 18ns; d = d - 0ns; delay[d] q[2]; x q[2];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00045_th21_v2
timing
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[1]; cz q[0], q[2]; cz q[2], q[0]; ry(2.35619449) q[1]; delay[57ns] q[1]; h q[1]; t q[2]; barrier q; s q[2]; ry(0.3926990817) q[2]; h q[1]; s q[0]; swap q[0], q[2]; ry(2.35619449) q[2]; // === CORE_TASK_START === // TODO(core task): The snippet applies a Hadamard g...
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[1]; cz q[0], q[2]; cz q[2], q[0]; ry(2.35619449) q[1]; delay[57ns] q[1]; h q[1]; t q[2]; barrier q; s q[2]; ry(0.3926990817) q[2]; h q[1]; s q[0]; swap q[0], q[2]; ry(2.35619449) q[2]; // === CORE_TASK_START === // explicit_delay_as_structure | delay_before_entang...
// explicit_delay_as_structure | delay_before_entangling: Insert a delay before a 2-qubit entangling gate. h q[2]; delay[109ns] q[2]; x q[1]; cx q[2], q[1];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00046_th22_v3
timing
OPENQASM 3; include "stdgates.inc"; qubit[5] q; h q[3]; rx(1.570796327) q[4]; s q[4]; swap q[4], q[0]; x q[2]; cx q[4], q[3]; swap q[0], q[1]; rz(0) q[3]; delay[7dt] q[4]; rz(2.659217489) q[4]; cz q[2], q[0]; t q[3]; t q[4]; cx q[3], q[1]; ry(2.094395102) q[1]; swap q[4], q[1]; delay[60dt] q[4]; y q[1]; ry(1.0471975...
OPENQASM 3; include "stdgates.inc"; qubit[5] q; h q[3]; rx(1.570796327) q[4]; s q[4]; swap q[4], q[0]; x q[2]; cx q[4], q[3]; swap q[0], q[1]; rz(0) q[3]; delay[7dt] q[4]; rz(2.659217489) q[4]; cz q[2], q[0]; t q[3]; t q[4]; cx q[3], q[1]; ry(2.094395102) q[1]; swap q[4], q[1]; delay[60dt] q[4]; y q[1]; ry(1.0471975...
// delay_zero_ordering | delay_zero_between_2q_gates: Insert delay[0] between two identical 2-qubit gates. cx q[1], q[3]; delay[0ns] q[1]; cx q[1], q[3];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00047_th23_v4
timing
OPENQASM 3; include "stdgates.inc"; qubit[4] q; h q[3]; t q[1]; ry(1.047197551) q[2]; rz(0.1085061449) q[1]; s q[2]; tdg q[0]; delay[76dt] q[3]; cz q[0], q[3]; ry(2.854225525) q[0]; cx q[0], q[1]; ry(1.570796327) q[2]; // === CORE_TASK_START === // TODO(core task): The snippet applies a nested timing structure to q...
OPENQASM 3; include "stdgates.inc"; qubit[4] q; h q[3]; t q[1]; ry(1.047197551) q[2]; rz(0.1085061449) q[1]; s q[2]; tdg q[0]; delay[76dt] q[3]; cz q[0], q[3]; ry(2.854225525) q[0]; cx q[0], q[1]; ry(1.570796327) q[2]; // === CORE_TASK_START === // nested_box | nested_box_with_exact_outer_delay: Timed outer box inc...
// nested_box | nested_box_with_exact_outer_delay: Timed outer box includes an exact outer-duration delay (redundant but valid). box[168ns] { box[49ns] { delay[49ns] q[3]; } delay[168ns] q[3]; } rz(0.392699) q[3];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00048_th24_v2
timing
OPENQASM 3; include "stdgates.inc"; qubit[4] q; h q[3]; cx q[0], q[1]; cz q[1], q[0]; rx(1.963518359) q[0]; swap q[3], q[0]; barrier q; x q[0]; rx(0.3926990817) q[3]; sdg q[3]; rz(-0.1613622702) q[2]; tdg q[0]; rz(0) q[3]; y q[2]; t q[3]; rz(0.2617993878) q[1]; // === CORE_TASK_START === // TODO(core task): The sni...
OPENQASM 3; include "stdgates.inc"; qubit[4] q; h q[3]; cx q[0], q[1]; cz q[1], q[0]; rx(1.963518359) q[0]; swap q[3], q[0]; barrier q; x q[0]; rx(0.3926990817) q[3]; sdg q[3]; rz(-0.1613622702) q[2]; tdg q[0]; rz(0) q[3]; y q[2]; t q[3]; rz(0.2617993878) q[1]; // === CORE_TASK_START === // multi_stretch_solve_syst...
// multi_stretch_solve_system | two_equations_with_fixed_offset: Two boxes constrain a,b with an additional fixed delay offset. stretch a; stretch b; box[134ns] { delay[55ns] q[0]; delay[a] q[0]; delay[b] q[0]; } box[232ns] { delay[55ns] q[0]; delay[a] q[0]; delay[2*b] q[0]; } h q[0];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00049_th25_v3
timing
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[0]; rz(-0.2634282498) q[0]; delay[28ns] q[0]; rx(0.09085992222) q[0]; swap q[2], q[1]; t q[2]; ry(0.2617993878) q[1]; rx(-0.7853981634) q[2]; x q[1]; swap q[0], q[1]; sdg q[0]; y q[1]; delay[70dt] q[2]; barrier q; z q[2]; cz q[1], q[0]; y q[1]; rz(0.5235987756) q[1...
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[0]; rz(-0.2634282498) q[0]; delay[28ns] q[0]; rx(0.09085992222) q[0]; swap q[2], q[1]; t q[2]; ry(0.2617993878) q[1]; rx(-0.7853981634) q[2]; x q[1]; swap q[0], q[1]; sdg q[0]; y q[1]; delay[70dt] q[2]; barrier q; z q[2]; cz q[1], q[0]; y q[1]; rz(0.5235987756) q[1...
// durationof_on_box_compound | durationof_box_two_qubits: Delay by durationof(a compound box with two qubits), then CZ. delay[durationof({ box { delay[49ns] q[2]; delay[49ns] q[2]; } })] q[2]; cz q[2], q[2];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00050_th01_v4
timing
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[2]; h q[2]; swap q[1], q[0]; y q[1]; rz(2.600912874) q[1]; s q[2]; delay[21ns] q[2]; rz(-1.977088977) q[0]; sdg q[1]; swap q[1], q[0]; s q[0]; h q[1]; rz(0.03114184438) q[2]; h q[1]; swap q[1], q[2]; s q[2]; rx(0.7853981634) q[0]; ry(-0.7853981634) q[1]; h q[2]; z ...
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[2]; h q[2]; swap q[1], q[0]; y q[1]; rz(2.600912874) q[1]; s q[2]; delay[21ns] q[2]; rz(-1.977088977) q[0]; sdg q[1]; swap q[1], q[0]; s q[0]; h q[1]; rz(0.03114184438) q[2]; h q[1]; swap q[1], q[2]; s q[2]; rx(0.7853981634) q[0]; ry(-0.7853981634) q[1]; h q[2]; z ...
// basic_delay_units | interleaved_delays_with_involutions: Interleave delays and gates on the same qubit. h q[0]; delay[14ns] q[0]; x q[0]; delay[44ns] q[0]; h q[0];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00051_th02_v2
timing
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[2]; cz q[1], q[2]; x q[1]; swap q[2], q[1]; delay[15ns] q[1]; sdg q[0]; cz q[0], q[2]; cz q[0], q[2]; barrier q; ry(1.873209695) q[2]; cx q[0], q[2]; t q[1]; ry(1.570796327) q[2]; rx(0.2617993878) q[2]; rx(0.7853981634) q[0]; rx(-2.997510597) q[1]; tdg q[2]; ry(-1....
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[2]; cz q[1], q[2]; x q[1]; swap q[2], q[1]; delay[15ns] q[1]; sdg q[0]; cz q[0], q[2]; cz q[0], q[2]; barrier q; ry(1.873209695) q[2]; cx q[0], q[2]; t q[1]; ry(1.570796327) q[2]; rx(0.2617993878) q[2]; rx(0.7853981634) q[0]; rx(-2.997510597) q[1]; tdg q[2]; ry(-1....
// dt_delay | two_dt_delays_then_h: Apply two dt delays back-to-back, then apply H. h q[0]; delay[171dt] q[0]; delay[14dt] q[0]; h q[0];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00052_th03_v3
timing
OPENQASM 3; include "stdgates.inc"; qubit[4] q; h q[0]; delay[38dt] q[3]; ry(0.4056529524) q[3]; delay[21ns] q[2]; rz(-1.830120881) q[1]; ry(0.5235987756) q[2]; delay[19ns] q[0]; y q[3]; rx(0.1596873304) q[3]; barrier q; ry(-2.19181133) q[2]; cx q[0], q[2]; tdg q[3]; cz q[3], q[2]; y q[0]; cx q[3], q[2]; y q[0]; rz(...
OPENQASM 3; include "stdgates.inc"; qubit[4] q; h q[0]; delay[38dt] q[3]; ry(0.4056529524) q[3]; delay[21ns] q[2]; rz(-1.830120881) q[1]; ry(0.5235987756) q[2]; delay[19ns] q[0]; y q[3]; rx(0.1596873304) q[3]; barrier q; ry(-2.19181133) q[2]; cx q[0], q[2]; tdg q[3]; cz q[3], q[2]; y q[0]; cx q[3], q[2]; y q[0]; rz(...
// duration_arithmetic | affine_combo: Delay by a+2*b, then apply RZ. delay[17ns + 2*9ns] q[0]; rz(1.0472) q[0];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00053_th04_v4
timing
OPENQASM 3; include "stdgates.inc"; qubit[5] q; h q[2]; rz(2.918379348) q[3]; swap q[4], q[0]; delay[67ns] q[3]; t q[3]; z q[3]; rx(-1.570796327) q[0]; barrier q; x q[2]; cx q[0], q[4]; ry(3.065443221) q[3]; h q[2]; barrier q; swap q[2], q[3]; cx q[4], q[1]; // === CORE_TASK_START === // TODO(core task): The snippe...
OPENQASM 3; include "stdgates.inc"; qubit[5] q; h q[2]; rz(2.918379348) q[3]; swap q[4], q[0]; delay[67ns] q[3]; t q[3]; z q[3]; rx(-1.570796327) q[0]; barrier q; x q[2]; cx q[0], q[4]; ry(3.065443221) q[3]; h q[2]; barrier q; swap q[2], q[3]; cx q[4], q[1]; // === CORE_TASK_START === // mixed_units_duration | mixe...
// mixed_units_duration | mixed_units_affine: Delay by a*u1 + 2*b*u2, then RX. delay[39ns + 2*8ns] q[1]; rx(0.785398) q[1];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00054_th05_v2
timing
OPENQASM 3; include "stdgates.inc"; qubit[5] q; h q[4]; cz q[1], q[3]; swap q[2], q[4]; cz q[2], q[1]; h q[0]; cz q[0], q[3]; ry(0.5235987756) q[2]; ry(-0.8485364215) q[2]; rx(1.360006829) q[3]; rx(-1.570796327) q[0]; delay[22ns] q[1]; h q[1]; tdg q[2]; t q[0]; // === CORE_TASK_START === // TODO(core task): The sni...
OPENQASM 3; include "stdgates.inc"; qubit[5] q; h q[4]; cz q[1], q[3]; swap q[2], q[4]; cz q[2], q[1]; h q[0]; cz q[0], q[3]; ry(0.5235987756) q[2]; ry(-0.8485364215) q[2]; rx(1.360006829) q[3]; rx(-1.570796327) q[0]; delay[22ns] q[1]; h q[1]; tdg q[2]; t q[0]; // === CORE_TASK_START === // left_alignment_stretch |...
// left_alignment_stretch | left_align_h_rz_then_stretch: Left-align: do H and RZ, then fill the rest with stretch. stretch g; box[83ns] { h q[3]; rz(1.0472) q[3]; delay[g] q[3]; }
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00055_th06_v3
timing
OPENQASM 3; include "stdgates.inc"; qubit[4] q; h q[0]; y q[2]; swap q[1], q[0]; t q[0]; cz q[3], q[1]; rz(2.35619449) q[0]; cx q[0], q[3]; cz q[1], q[3]; cz q[1], q[2]; ry(0.5235987756) q[0]; ry(0.5235987756) q[1]; t q[2]; cx q[2], q[0]; rx(-1.603026543) q[3]; cz q[1], q[0]; barrier q; rz(2.094395102) q[0]; // ===...
OPENQASM 3; include "stdgates.inc"; qubit[4] q; h q[0]; y q[2]; swap q[1], q[0]; t q[0]; cz q[3], q[1]; rz(2.35619449) q[0]; cx q[0], q[3]; cz q[1], q[3]; cz q[1], q[2]; ry(0.5235987756) q[0]; ry(0.5235987756) q[1]; t q[2]; cx q[2], q[0]; rx(-1.603026543) q[3]; cz q[1], q[0]; barrier q; rz(2.094395102) q[0]; // ===...
// right_alignment_stretch | right_align_parallel_stretch_then_2q: Right-align: stretch both qubits, then apply a 2-qubit gate at the end. stretch g; box[93ns] { delay[g] q[3]; delay[g] q[2]; cz q[3], q[2]; }
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00056_th07_v4
timing
OPENQASM 3; include "stdgates.inc"; qubit[4] q; h q[3]; ry(2.943496016) q[0]; x q[3]; rz(-0.7853981634) q[2]; cx q[3], q[1]; cx q[3], q[2]; barrier q; delay[72dt] q[2]; tdg q[2]; rz(-1.942935208) q[2]; sdg q[3]; cz q[1], q[2]; tdg q[3]; x q[0]; swap q[1], q[2]; rx(1.570796327) q[2]; z q[3]; rx(0.3926990817) q[1]; cz...
OPENQASM 3; include "stdgates.inc"; qubit[4] q; h q[3]; ry(2.943496016) q[0]; x q[3]; rz(-0.7853981634) q[2]; cx q[3], q[1]; cx q[3], q[2]; barrier q; delay[72dt] q[2]; tdg q[2]; rz(-1.942935208) q[2]; sdg q[3]; cz q[1], q[2]; tdg q[3]; x q[0]; swap q[1], q[2]; rx(1.570796327) q[2]; z q[3]; rx(0.3926990817) q[1]; cz...
// center_alignment_stretch | center_align_rz: Center-align an RZ gate by symmetric stretch delays. stretch g; box[226ns] { delay[g] q[1]; rz(1.0472) q[1]; delay[g] q[1]; }
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00057_th08_v2
timing
OPENQASM 3; include "stdgates.inc"; qubit[5] q; h q[2]; rx(2.094395102) q[4]; t q[2]; cz q[0], q[2]; s q[0]; barrier q; barrier q; barrier q; barrier q; rz(1.047197551) q[0]; x q[2]; // === CORE_TASK_START === // TODO(core task): The snippet defines a stretchable duration named g and applies a sequence of operation...
OPENQASM 3; include "stdgates.inc"; qubit[5] q; h q[2]; rx(2.094395102) q[4]; t q[2]; cz q[0], q[2]; s q[0]; barrier q; barrier q; barrier q; barrier q; rz(1.047197551) q[0]; x q[2]; // === CORE_TASK_START === // proportional_placement | ratio_2_to_1: Place a gate after 2 parts stretch, then leave 1 part stretch. s...
// proportional_placement | ratio_2_to_1: Place a gate after 2 parts stretch, then leave 1 part stretch. stretch g; box[323ns] { delay[2*g] q[2]; h q[2]; delay[g] q[2]; }
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00058_th09_v3
timing
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[0]; delay[68dt] q[2]; rx(0.7921533569) q[1]; ry(-1.570796327) q[0]; sdg q[1]; swap q[0], q[1]; cz q[0], q[2]; y q[0]; swap q[0], q[2]; delay[47ns] q[2]; rx(-1.570796327) q[1]; ry(2.35619449) q[2]; barrier q; z q[0]; barrier q; ry(-0.7853981634) q[1]; barrier q; del...
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[0]; delay[68dt] q[2]; rx(0.7921533569) q[1]; ry(-1.570796327) q[0]; sdg q[1]; swap q[0], q[1]; cz q[0], q[2]; y q[0]; swap q[0], q[2]; delay[47ns] q[2]; rx(-1.570796327) q[1]; ry(2.35619449) q[2]; barrier q; z q[0]; barrier q; ry(-0.7853981634) q[1]; barrier q; del...
// durationof_single_gate | durationof_cx: Delay by durationof({cx}) on one qubit, then apply CX. delay[durationof({ cx q[1], q[0]; })] q[1]; cx q[1], q[0];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00059_th10_v4
timing
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[0]; h q[1]; cz q[2], q[0]; cx q[0], q[1]; cx q[2], q[0]; cx q[1], q[0]; y q[1]; y q[2]; sdg q[1]; rx(0.2617993878) q[0]; barrier q; rx(-0.7853981634) q[2]; cx q[2], q[1]; sdg q[1]; rx(-0.7853981634) q[0]; s q[2]; cx q[1], q[0]; z q[1]; ry(-3.025805917) q[1]; barrie...
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[0]; h q[1]; cz q[2], q[0]; cx q[0], q[1]; cx q[2], q[0]; cx q[1], q[0]; y q[1]; y q[2]; sdg q[1]; rx(0.2617993878) q[0]; barrier q; rx(-0.7853981634) q[2]; cx q[2], q[1]; sdg q[1]; rx(-0.7853981634) q[0]; s q[2]; cx q[1], q[0]; z q[1]; ry(-3.025805917) q[1]; barrie...
// durationof_subcircuit | durationof_xyz_chain: Delay by durationof({X;Y;Z}), then apply X. delay[durationof({ x q[0]; y q[0]; z q[0]; })] q[0]; x q[0];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00060_th11_v2
timing
OPENQASM 3; include "stdgates.inc"; qubit[5] q; h q[2]; swap q[1], q[2]; s q[3]; h q[3]; cz q[2], q[3]; cx q[4], q[1]; s q[0]; cx q[0], q[4]; tdg q[4]; barrier q; barrier q; cx q[3], q[2]; t q[0]; rx(2.094395102) q[1]; cz q[0], q[1]; rz(2.094395102) q[2]; rx(2.094395102) q[1]; ry(3.141592654) q[0]; rz(1.570796327) q...
OPENQASM 3; include "stdgates.inc"; qubit[5] q; h q[2]; swap q[1], q[2]; s q[3]; h q[3]; cz q[2], q[3]; cx q[4], q[1]; s q[0]; cx q[0], q[4]; tdg q[4]; barrier q; barrier q; cx q[3], q[2]; t q[0]; rx(2.094395102) q[1]; cz q[0], q[1]; rz(2.094395102) q[2]; rx(2.094395102) q[1]; ry(3.141592654) q[0]; rz(1.570796327) q...
// dynamic_padding_safe | padding_from_full_minus_prefix_len3: Safe padding: durationof(full)-durationof(prefix)+pad (3 vs 2 ops). delay[durationof({ x q[4]; y q[4]; z q[4]; }) - durationof({ x q[4]; y q[4]; }) + 14ns] q[4]; h q[4];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00061_th12_v3
timing
OPENQASM 3; include "stdgates.inc"; qubit[4] q; h q[0]; rz(3.141592654) q[2]; h q[1]; swap q[0], q[2]; tdg q[1]; cz q[0], q[1]; ry(2.516386713) q[0]; sdg q[3]; cx q[1], q[2]; delay[33dt] q[3]; swap q[2], q[1]; swap q[2], q[1]; cz q[3], q[1]; y q[2]; y q[3]; y q[1]; swap q[0], q[1]; swap q[1], q[2]; barrier q; rz(1.0...
OPENQASM 3; include "stdgates.inc"; qubit[4] q; h q[0]; rz(3.141592654) q[2]; h q[1]; swap q[0], q[2]; tdg q[1]; cz q[0], q[1]; ry(2.516386713) q[0]; sdg q[3]; cx q[1], q[2]; delay[33dt] q[3]; swap q[2], q[1]; swap q[2], q[1]; cz q[3], q[1]; y q[2]; y q[3]; y q[1]; swap q[0], q[1]; swap q[1], q[2]; barrier q; rz(1.0...
// basic_box_boundary | box_param_chain_then_h: Put a small rotation chain inside a box, then H outside. box { rz(0.785398) q[3]; ry(1.0472) q[3]; } h q[3];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00062_th13_v4
timing
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[2]; ry(0.5235987756) q[1]; ry(0.5235987756) q[1]; rz(1.570796327) q[2]; cx q[0], q[1]; z q[2]; swap q[1], q[0]; swap q[2], q[0]; y q[0]; cx q[2], q[0]; rx(1.570796327) q[0]; barrier q; sdg q[1]; tdg q[1]; rz(0.3926990817) q[2]; cz q[1], q[2]; rz(0.3926990817) q[2];...
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[2]; ry(0.5235987756) q[1]; ry(0.5235987756) q[1]; rz(1.570796327) q[2]; cx q[0], q[1]; z q[2]; swap q[1], q[0]; swap q[2], q[0]; y q[0]; cx q[2], q[0]; rx(1.570796327) q[0]; barrier q; sdg q[1]; tdg q[1]; rz(0.3926990817) q[2]; cz q[1], q[2]; rz(0.3926990817) q[2];...
// timed_box_known_duration | timed_box_delay_then_gate: Timed box with an exact delay, followed by a gate. box[223ns] { delay[223ns] q[1]; } rx(0.392699) q[1];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00063_th14_v2
timing
OPENQASM 3; include "stdgates.inc"; qubit[4] q; h q[3]; s q[1]; delay[23ns] q[0]; rx(2.094395102) q[0]; rx(-0.7853981634) q[2]; h q[2]; sdg q[0]; rz(-0.05308146782) q[2]; rz(0.3393863292) q[2]; delay[72dt] q[3]; swap q[1], q[3]; delay[54ns] q[2]; y q[2]; rx(1.570796327) q[1]; swap q[1], q[2]; ry(0.4804738378) q[3]; ...
OPENQASM 3; include "stdgates.inc"; qubit[4] q; h q[3]; s q[1]; delay[23ns] q[0]; rx(2.094395102) q[0]; rx(-0.7853981634) q[2]; h q[2]; sdg q[0]; rz(-0.05308146782) q[2]; rz(0.3393863292) q[2]; delay[72dt] q[3]; swap q[1], q[3]; delay[54ns] q[2]; y q[2]; rx(1.570796327) q[1]; swap q[1], q[2]; ry(0.4804738378) q[3]; ...
// box_with_stretch_fill | gate_then_stretch_then_gate: In a timed box: gate, stretch fill, gate. stretch g; box[262ns] { h q[0]; delay[g] q[0]; h q[0]; }
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00064_th15_v3
timing
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[0]; barrier q; t q[1]; ry(0.1153775459) q[2]; rz(-3.049439754) q[2]; barrier q; barrier q; ry(0.9078880273) q[1]; delay[64dt] q[2]; rx(3.141592654) q[0]; swap q[1], q[2]; cz q[2], q[0]; rx(1.570796327) q[1]; h q[1]; // === CORE_TASK_START === // TODO(core task): T...
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[0]; barrier q; t q[1]; ry(0.1153775459) q[2]; rz(-3.049439754) q[2]; barrier q; barrier q; ry(0.9078880273) q[1]; delay[64dt] q[2]; rx(3.141592654) q[0]; swap q[1], q[2]; cz q[2], q[0]; rx(1.570796327) q[1]; h q[1]; // === CORE_TASK_START === // barrier_ordering |...
// barrier_ordering | barrier_between_two_rz: Use barrier between identical rotations (structure preservation). rz(0.785398) q[0]; barrier q; rz(0.785398) q[0];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00065_th16_v4
timing
OPENQASM 3; include "stdgates.inc"; qubit[5] q; h q[1]; rz(0.3926990817) q[4]; swap q[1], q[0]; ry(-1.570796327) q[2]; tdg q[0]; h q[2]; t q[1]; rz(3.141592654) q[2]; tdg q[1]; rz(-0.7853981634) q[4]; rz(1.047197551) q[3]; ry(-1.570796327) q[1]; h q[1]; cx q[0], q[4]; cx q[0], q[1]; rz(2.078959494) q[2]; rz(0.392699...
OPENQASM 3; include "stdgates.inc"; qubit[5] q; h q[1]; rz(0.3926990817) q[4]; swap q[1], q[0]; ry(-1.570796327) q[2]; tdg q[0]; h q[2]; t q[1]; rz(3.141592654) q[2]; tdg q[1]; rz(-0.7853981634) q[4]; rz(1.047197551) q[3]; ry(-1.570796327) q[1]; h q[1]; cx q[0], q[4]; cx q[0], q[1]; rz(2.078959494) q[2]; rz(0.392699...
// hahn_echo_midpoint | echo_with_rx_pi: Echo using RX(pi) at midpoint (explicit rotation form). h q[0]; stretch g; box[183ns] { delay[g] q[0]; rx(3.14159) q[0]; delay[g] q[0]; }
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00066_th17_v2
timing
OPENQASM 3; include "stdgates.inc"; qubit[5] q; h q[3]; swap q[0], q[3]; cz q[1], q[0]; rz(0.7853981634) q[4]; swap q[0], q[3]; rz(0.3926990817) q[1]; ry(3.141592654) q[2]; swap q[0], q[4]; cx q[4], q[2]; ry(1.463929425) q[4]; cx q[4], q[3]; cx q[2], q[0]; cz q[1], q[0]; z q[2]; cx q[1], q[2]; rz(3.141592654) q[1]; ...
OPENQASM 3; include "stdgates.inc"; qubit[5] q; h q[3]; swap q[0], q[3]; cz q[1], q[0]; rz(0.7853981634) q[4]; swap q[0], q[3]; rz(0.3926990817) q[1]; ry(3.141592654) q[2]; swap q[0], q[4]; cx q[4], q[2]; ry(1.463929425) q[4]; cx q[4], q[3]; cx q[2], q[0]; cz q[1], q[0]; z q[2]; cx q[1], q[2]; rz(3.141592654) q[1]; ...
// center_align_halfdiff_known | center_align_then_cz: Align by lead delay then apply CZ. delay[45ns] q[3]; delay[52ns] q[3]; delay[142ns] q[1]; cz q[1], q[3];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00067_th18_v3
timing
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[1]; swap q[1], q[2]; y q[1]; t q[1]; rz(0.5235987756) q[0]; t q[1]; rx(-1.570796327) q[0]; cx q[0], q[1]; sdg q[1]; rz(-2.451986167) q[2]; swap q[0], q[1]; swap q[0], q[2]; rz(-0.7853981634) q[1]; cx q[1], q[2]; ry(1.478939875) q[2]; delay[51dt] q[2]; swap q[2], q[...
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[1]; swap q[1], q[2]; y q[1]; t q[1]; rz(0.5235987756) q[0]; t q[1]; rx(-1.570796327) q[0]; cx q[0], q[1]; sdg q[1]; rz(-2.451986167) q[2]; swap q[0], q[1]; swap q[0], q[2]; rz(-0.7853981634) q[1]; cx q[1], q[2]; ry(1.478939875) q[2]; delay[51dt] q[2]; swap q[2], q[...
// multi_qubit_delay_semantics | global_delay_then_cx: Global delay then apply a 2-qubit gate. delay[41ns] q[1]; delay[130ns] q; cx q[0], q[1];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00068_th19_v4
timing
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[1]; ry(-0.1596042949) q[0]; swap q[2], q[0]; h q[0]; h q[0]; barrier q; cz q[0], q[2]; z q[1]; rx(1.570796327) q[1]; s q[2]; ry(0) q[0]; // === CORE_TASK_START === // TODO(core task): The snippet applies a timed delay operation to the second qubit for a duration o...
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[1]; ry(-0.1596042949) q[0]; swap q[2], q[0]; h q[0]; h q[0]; barrier q; cz q[0], q[2]; z q[1]; rx(1.570796327) q[1]; s q[2]; ry(0) q[0]; // === CORE_TASK_START === // nop_sync_in_box | fallback_delay_only_box: Timed box with known delay only (nop not required). bo...
// nop_sync_in_box | fallback_delay_only_box: Timed box with known delay only (nop not required). box[139ns] { delay[139ns] q[1]; } x q[1];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00069_th20_v2
timing
OPENQASM 3; include "stdgates.inc"; qubit[4] q; h q[3]; h q[3]; barrier q; cz q[2], q[0]; cx q[2], q[3]; x q[0]; rx(0) q[0]; swap q[1], q[3]; z q[2]; barrier q; t q[2]; cx q[2], q[0]; cx q[1], q[3]; rz(3.141592654) q[1]; swap q[1], q[0]; barrier q; ry(1.047197551) q[2]; x q[2]; x q[1]; delay[53dt] q[0]; y q[0]; x q[...
OPENQASM 3; include "stdgates.inc"; qubit[4] q; h q[3]; h q[3]; barrier q; cz q[2], q[0]; cx q[2], q[3]; x q[0]; rx(0) q[0]; swap q[1], q[3]; z q[2]; barrier q; t q[2]; cx q[2], q[0]; cx q[1], q[3]; rz(3.141592654) q[1]; swap q[1], q[0]; barrier q; ry(1.047197551) q[2]; x q[2]; x q[1]; delay[53dt] q[0]; y q[0]; x q[...
// duration_update | duration_increment: Increment a duration variable and use it for a second delay. duration d = 54ns; delay[d] q[0]; d = d + 61ns; delay[d] q[0]; h q[0];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00070_th21_v3
timing
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[1]; rz(1.570796327) q[2]; rx(1.570796327) q[2]; ry(0.5235987756) q[2]; rz(0.7853981634) q[2]; tdg q[1]; rx(0.08591119831) q[0]; y q[1]; rz(1.570796327) q[1]; swap q[1], q[2]; rx(0.2617993878) q[0]; s q[0]; h q[0]; cz q[0], q[2]; rx(-1.110198537) q[2]; rx(0) q[0]; c...
OPENQASM 3; include "stdgates.inc"; qubit[3] q; h q[1]; rz(1.570796327) q[2]; rx(1.570796327) q[2]; ry(0.5235987756) q[2]; rz(0.7853981634) q[2]; tdg q[1]; rx(0.08591119831) q[0]; y q[1]; rz(1.570796327) q[1]; swap q[1], q[2]; rx(0.2617993878) q[0]; s q[0]; h q[0]; cz q[0], q[2]; rx(-1.110198537) q[2]; rx(0) q[0]; c...
// explicit_delay_as_structure | global_delay_as_separator: Use a global delay as a separator between circuit phases. delay[97ns] q; rz(0.392699) q[1];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
timing_train/timing_task_00071_th22_v4
timing
OPENQASM 3; include "stdgates.inc"; qubit[4] q; h q[3]; tdg q[3]; cx q[3], q[0]; x q[1]; ry(-0.7853981634) q[1]; rx(-0.4222964409) q[3]; delay[7ns] q[1]; rx(-1.570796327) q[2]; ry(1.570796327) q[3]; ry(0.2995081498) q[1]; ry(2.35619449) q[1]; cx q[1], q[0]; swap q[0], q[1]; ry(1.40376466) q[3]; cz q[2], q[0]; cx q[1...
OPENQASM 3; include "stdgates.inc"; qubit[4] q; h q[3]; tdg q[3]; cx q[3], q[0]; x q[1]; ry(-0.7853981634) q[1]; rx(-0.4222964409) q[3]; delay[7ns] q[1]; rx(-1.570796327) q[2]; ry(1.570796327) q[3]; ry(0.2995081498) q[1]; ry(2.35619449) q[1]; cx q[1], q[0]; swap q[0], q[1]; ry(1.40376466) q[3]; cz q[2], q[0]; cx q[1...
// delay_zero_ordering | delay_zero_between_rotations: Use delay[0] between two rotations to force a boundary. rz(0.785398) q[0]; delay[0ns] q[0]; rz(0.785398) q[0];
from scripts.evaluator import evaluate_qasm_completion def check(returned_code, golden_code, domain=None): """Return True when returned_code has the correct QASM timeline/distribution.""" return evaluate_qasm_completion( golden_code=golden_code, returned_code=returned_code, domain=doma...
End of preview. Expand in Data Studio

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

QASM-Eval

QASM-Eval is an OpenQASM 3 dataset for training and evaluating language models on hardware-facing quantum programming tasks. It focuses on capabilities that matter in near-term quantum workflows, including timing-aware programming, classical control, pulse-level operations, and mixed workflows that combine these elements in a single program.

This Hugging Face dataset release contains the benchmark data itself, a lightweight evaluation entry point, and the scripts needed for local checking:

  • data/
  • scripts/
  • run_test.py

For the full project repository, documentation, and broader codebase, see the GitHub repo: AnonymousUser-01/QASM-Eval. Two models fine-tuned on QASM-Eval are also available on Hugging Face:

Dataset Summary

Each example is an OpenQASM 3 code-completion task. The prompt contains a full QASM program with one missing core region marked by a TODO-style description. The model is expected to generate only the missing block between the markers.

The dataset covers four domains:

  • timing: delays, durations, and schedule-sensitive behavior
  • classical: measurement, registers, conditionals, and classical control
  • pulse: frames, waveforms, defcal, and pulse-level calibration logic
  • complex: mixed tasks combining quantum, timing, pulse, and classical behavior

Splits

split records composition
train 4,000 1,000 timing, 1,000 classical, 1,000 pulse, 1,000 complex
test 100 25 timing, 25 classical, 25 pulse, 25 complex

Files are provided in both JSONL and Parquet format:

  • data/train.jsonl
  • data/test.jsonl
  • data/train.parquet
  • data/test.parquet

Data Fields

Each record contains the following fields:

field description
task_id Stable task identifier
domain One of timing, classical, pulse, or complex
prompt OpenQASM 3 program with the target core block replaced by a natural-language TODO
completion Reference answer for the missing core block only
canonical_solution Full reference OpenQASM 3 program
test Minimal evaluation snippet showing how the completion is checked

The central prompt structure looks like:

// === CORE_TASK_START ===

// TODO(core task): natural-language description of the missing QASM behavior

// === CORE_TASK_END ===

Models should output only the code that belongs between these two markers.

Quick Start:

1. Evaluate an LLM on QASM-Eval

Use run_test.py for end-to-end model benchmarking on the released test split.

The script is configured directly at the top of the file rather than through command-line arguments.

Important configuration fields include:

  • RUN_MODE: choose "random_sample" or "all"
  • NUM_RANDOM_SAMPLES: total number of randomly selected test tasks when using random mode
  • PASS_AT_K: number of model samples generated per task, and the maximum k reported in pass@k
  • LLM_CHOICE: model name
  • LLM_PROVIDER: backend provider such as nebius, openai, nscale, or huggingface
  • LLM_KEY: API key for the chosen provider
  • LLM_TEMPERATURE: generation temperature
  • LLM_MAX_TOKENS: max response length

The script reads data/test.jsonl, queries the model repeatedly for each selected task, evaluates every generated answer, and writes run artifacts into test_runs/.

To launch an evaluation run:

python3 run_test.py

The output includes a detailed report with the overall pass@k metric and pass rates for each task category. Per-sample error types is also available, the scripts in ./scripts contain the full simulator implementations and the associated evaluation logic.

2. Use QASM-Eval as a training dataset

Load the released JSONL or Parquet files directly for supervised fine-tuning, analysis, or prompt construction. Typical field usage:

  • prompt: model input
  • completion: target core block only
  • canonical_solution: full reference program

You can also load the Parquet files if that better fits your training stack.

How To Load Separately

Using the Hugging Face datasets library:

from datasets import load_dataset

dataset = load_dataset("AnonymousORG01/QASM-Eval")
train_data = dataset["train"]
test_data = dataset["test"]

print(train_data[0].keys())
print(train_data[0]["domain"])
print(train_data[0]["prompt"][:300])

If you prefer to work with the local files directly:

import json

with open("data/train.jsonl", "r", encoding="utf-8") as f:
    first_record = json.loads(next(f))

print(first_record["task_id"])
print(first_record["completion"])

Citation

This project is currently maintained in anonymous form for review purposes. A finalized citation will be added after the review process.

Downloads last month
25