open-standards/wai/quantum-conformance/accept/accept.json
Transaction Science e1f3b6faa0 wai-quantum circuit2: the number range decided on the literal's digits in both readers
A third review upheld six findings.

- std's f64 parse stops adding exponent digits once the exponent reaches
  0x10000, so a literal whose exponent offsets about 655,000 zeros was judged
  wrong both ways: exactly 1 refused, 10^309 accepted. The Rust reader now
  decides the range rule on the digits, as the referee does: the significant
  digits and the decimal exponent, with saturating exponent arithmetic, against
  the 309 digits of 2^1024 − 2^970. The limit is one constant, RANGE_LIMIT, and
  a test derives it in decimal from 2^1024 and 2^970 and checks it against
  std's parse where that parse is exact.
- The referee passed a zero-padded exponent of over 4300 digits to int(),
  which Python refuses; it now converts only the significant exponent digits.
- quantum-sim §8, the CHANGELOG and SPEC §5 now list both directions of the
  range change: numbers at or above the limit that earlier builds let through
  are refused, numbers below it that some builds refused are accepted. §2 says
  the rule is decided on the digits, at any length.
- The corpus README and the wasip2 job comment were stale.

The corpus holds both long literals and the padded exponent: an accept file
(exactly 1 and exactly 10, written long) and a reject file (10^309).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-09 18:50:35 -04:00

177 lines
5.1 KiB
JSON

{
"v1_members_reordered.wqc": {
"capability": "wai.quantum.circuit",
"n_qubits": 2,
"n_ops": 2,
"circuit_hash": "894d9a9582b19f27b8d08d06938357237fc00f7f30bf4bfc2be0c04fa5e47a4e",
"measure": null
},
"v1_whitespace.wqc": {
"capability": "wai.quantum.circuit",
"n_qubits": 2,
"n_ops": 2,
"circuit_hash": "894d9a9582b19f27b8d08d06938357237fc00f7f30bf4bfc2be0c04fa5e47a4e",
"measure": null
},
"v1_further_members.wqc": {
"capability": "wai.quantum.circuit",
"n_qubits": 2,
"n_ops": 2,
"circuit_hash": "894d9a9582b19f27b8d08d06938357237fc00f7f30bf4bfc2be0c04fa5e47a4e",
"measure": null
},
"v1_escapes_and_characters.wqc": {
"capability": "wai.quantum.circuit",
"n_qubits": 2,
"n_ops": 2,
"circuit_hash": "894d9a9582b19f27b8d08d06938357237fc00f7f30bf4bfc2be0c04fa5e47a4e",
"measure": null
},
"v1_depth_127.wqc": {
"capability": "wai.quantum.circuit",
"n_qubits": 2,
"n_ops": 2,
"circuit_hash": "894d9a9582b19f27b8d08d06938357237fc00f7f30bf4bfc2be0c04fa5e47a4e",
"measure": null
},
"v1_numbers_largest_finite.wqc": {
"capability": "wai.quantum.circuit",
"n_qubits": 2,
"n_ops": 2,
"circuit_hash": "894d9a9582b19f27b8d08d06938357237fc00f7f30bf4bfc2be0c04fa5e47a4e",
"measure": null
},
"v1_numbers_long_literals.wqc": {
"capability": "wai.quantum.circuit",
"n_qubits": 2,
"n_ops": 2,
"circuit_hash": "894d9a9582b19f27b8d08d06938357237fc00f7f30bf4bfc2be0c04fa5e47a4e",
"measure": null
},
"v1_numbers_toward_zero.wqc": {
"capability": "wai.quantum.circuit",
"n_qubits": 2,
"n_ops": 2,
"circuit_hash": "894d9a9582b19f27b8d08d06938357237fc00f7f30bf4bfc2be0c04fa5e47a4e",
"measure": null
},
"v1_n_qubits_255.wqc": {
"capability": "wai.quantum.circuit",
"n_qubits": 255,
"n_ops": 2,
"circuit_hash": "eaa87747d510e6d6cff04212fbcecf37aa22fa6fed8fe716ea3110092e6045e0",
"measure": null
},
"v1_measure_lax.wqc": {
"capability": "wai.quantum.circuit",
"n_qubits": 2,
"n_ops": 2,
"circuit_hash": "894d9a9582b19f27b8d08d06938357237fc00f7f30bf4bfc2be0c04fa5e47a4e",
"measure": {
"seed": 1,
"shots": 10
}
},
"v1_measure_missing_shots.wqc": {
"capability": "wai.quantum.circuit",
"n_qubits": 2,
"n_ops": 2,
"circuit_hash": "894d9a9582b19f27b8d08d06938357237fc00f7f30bf4bfc2be0c04fa5e47a4e",
"measure": {
"seed": 1,
"shots": 0
}
},
"v1_measure_u64_max.wqc": {
"capability": "wai.quantum.circuit",
"n_qubits": 2,
"n_ops": 2,
"circuit_hash": "894d9a9582b19f27b8d08d06938357237fc00f7f30bf4bfc2be0c04fa5e47a4e",
"measure": {
"seed": 18446744073709551615,
"shots": 18446744073709551615
}
},
"v1_measure_not_u64.wqc": {
"capability": "wai.quantum.circuit",
"n_qubits": 2,
"n_ops": 2,
"circuit_hash": "894d9a9582b19f27b8d08d06938357237fc00f7f30bf4bfc2be0c04fa5e47a4e",
"measure": {
"seed": 0,
"shots": 0
}
},
"v1_measure_other_types.wqc": {
"capability": "wai.quantum.circuit",
"n_qubits": 2,
"n_ops": 2,
"circuit_hash": "894d9a9582b19f27b8d08d06938357237fc00f7f30bf4bfc2be0c04fa5e47a4e",
"measure": {
"seed": 0,
"shots": 0
}
},
"v1_measure_not_object.wqc": {
"capability": "wai.quantum.circuit",
"n_qubits": 2,
"n_ops": 2,
"circuit_hash": "894d9a9582b19f27b8d08d06938357237fc00f7f30bf4bfc2be0c04fa5e47a4e",
"measure": {
"seed": 0,
"shots": 0
}
},
"v1_oplog_trailing_bytes.wqc": {
"capability": "wai.quantum.circuit",
"n_qubits": 2,
"n_ops": 2,
"circuit_hash": "894d9a9582b19f27b8d08d06938357237fc00f7f30bf4bfc2be0c04fa5e47a4e",
"measure": null
},
"v1_param_on_h.wqc": {
"capability": "wai.quantum.circuit",
"n_qubits": 2,
"n_ops": 2,
"circuit_hash": "2eed24488205bf419b886feed0947cc63a21813f62f3a7a697b5785adcc72b08",
"measure": null
},
"v1_repeated_control.wqc": {
"capability": "wai.quantum.circuit",
"n_qubits": 2,
"n_ops": 2,
"circuit_hash": "3aaa7132a1cc0f068c8f009f4e8d6137a825f6d22c2e5a32255a4a38c547755b",
"measure": null
},
"v1_unknown_sections.wqc": {
"capability": "wai.quantum.circuit",
"n_qubits": 2,
"n_ops": 2,
"circuit_hash": "894d9a9582b19f27b8d08d06938357237fc00f7f30bf4bfc2be0c04fa5e47a4e",
"measure": null
},
"v2_unknown_sections.wqc": {
"capability": "wai.quantum.circuit2",
"n_qubits": 2,
"n_ops": 2,
"circuit_hash": "6f6199943059fc4d90554d7c33f1ac69723603f5128962a6e3cac9c765484d2b",
"measure": null
},
"v2_n_qubits_255.wqc": {
"capability": "wai.quantum.circuit2",
"n_qubits": 255,
"n_ops": 2,
"circuit_hash": "225f13952c14c6375adf7cc85080b1dd34af8f5378e1dac737517e0212d74c32",
"measure": null
},
"v2_measure_u64_max.wqc": {
"capability": "wai.quantum.circuit2",
"n_qubits": 2,
"n_ops": 2,
"circuit_hash": "6f6199943059fc4d90554d7c33f1ac69723603f5128962a6e3cac9c765484d2b",
"measure": {
"seed": 18446744073709551615,
"shots": 18446744073709551615
}
}
}