You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[test][AST-Quake] Migrate CHECK lines to !cc.measure_handle
Mechanical migration of AST-Quake lit CHECKs from the legacy
`!quake.measure` / `!cc.stdvec<!quake.measure>` shape to the
spec-mandated `!cc.measure_handle` / `!cc.stdvec<!cc.measure_handle>`
shape produced by the bridge after PR 3b Commit 1 (mz / mx / my emit
handles directly, deferring discrimination to bool-conversion sites).
Affects 37 tests across measurement, control-flow, vector, tuple,
ctor, indirect_callable, separate_compilation, qalloc_state, and
cudaq_run scenarios. CHECKs that previously matched the bool-fold
synthesized for `auto x = mz(qview)` (i1 byte buffer + discriminate
+ cast + store) are dropped where the consumer is absent: the new
expand-measurements behavior synthesizes the bool buffer only when a
discriminate consumer is present (PR 3a), so unused vector
measurements now produce just the per-element handle ops.
Adjacent fixups:
- test/AST-Quake/cudaq_run.cpp: drop the stale
`--lower-cc-measure-handle` cudaq-opt pass from the RUN line. Under
Option C (PR NVIDIA#4404) the !cc.measure_handle conversion is folded
into ConvertToQIRAPI's TypeConverter; the standalone pass was
prototype-only and no longer exists.
- test/AST-Quake/base_profile-1.cpp -> test/AST-Quake/qir_profiles.cpp:
rename for aptness (file already exercises BASE, ADAPT, and FULL
QIR profiles, not just the base profile). While here, remove six
stale `read_result__body` ADAPT CHECKs: the legacy bridge always
discriminated `auto x = mz(q)`, but the spec API does not, so unused
handles produce no `read_result__body`. The mz / record_output pairs
remain.
Source code (the C++ kernels themselves) is untouched; this is a
pure CHECK-line migration. AST-Quake suite returns to 109/109 pass
(plus 2 pre-existing XFAIL).
Spec: cudaq-spec/proposals/measure_handle.bs.
Made-with: Cursor
0 commit comments