open-standards/wai/quantum-conformance/accept
Repository files (latest commit first)
Filename Latest commit message Latest commit date
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
..
accept.json wai-quantum circuit2: the number range decided on the literal's digits in both readers 2026-10-09 18:50:35 -04:00
v1_depth_127.wqc
v1_escapes_and_characters.wqc
v1_further_members.wqc
v1_measure_lax.wqc
v1_measure_missing_shots.wqc
v1_measure_not_object.wqc
v1_measure_not_u64.wqc
v1_measure_other_types.wqc
v1_measure_u64_max.wqc
v1_members_reordered.wqc
v1_n_qubits_255.wqc
v1_numbers_largest_finite.wqc
v1_numbers_long_literals.wqc wai-quantum circuit2: the number range decided on the literal's digits in both readers 2026-10-09 18:50:35 -04:00
v1_numbers_toward_zero.wqc
v1_oplog_trailing_bytes.wqc
v1_param_on_h.wqc
v1_repeated_control.wqc
v1_unknown_sections.wqc
v1_whitespace.wqc
v2_measure_u64_max.wqc
v2_n_qubits_255.wqc
v2_unknown_sections.wqc