Skip to content

Bump CUDA-Q commit ( DO NOT MERGE) - #955

Draft
lmondada wants to merge 3 commits into
mainfrom
lm/dont-merge-hike-cudaq
Draft

lmondada wants to merge 3 commits into
mainfrom
lm/dont-merge-hike-cudaq

Conversation

@lmondada

@lmondada lmondada commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

I don't expect to have to make any further changes to cudaq-qec, but I'll keep this open to monitor for unexpected breaks.

bmhowe23 and others added 2 commits November 24, 2026 18:35
The nightly against CUDA-Q main fails four tests in
libs/qec/python/tests/test_code.py with

  AttributeError: module 'cudaq.mlir.dialects.cc' has no attribute
  'MeasureHandleType'

NVIDIA/cuda-quantum#5956 removed the !cc.measure_handle type in favor of
!quake.measure, which drops the cc.MeasureHandleType Python binding. The
check that a Python stabilizer_round kernel returns
list[cudaq.measure_handle] looked that binding up by name.

Use cc.MeasureHandleType when it exists and quake.MeasureType otherwise.
The pinned CUDA-Q exposes both and lowers measure_handle to the former,
so the old name has to be tried first. The shim is tagged
CUDAQ-COMPAT(cuda-quantum#5956) so it can be found and removed once the
pin moves past that PR.

The fix is here and not upstream because the removed name is an internal
MLIR binding and the removal is a deliberate cleanup.

Also drop the cc.StdvecType fallback from the same check. The rename to
cc.SequenceType (NVIDIA/cuda-quantum#5089) is in the pinned CUDA-Q and in
0.17.0, the oldest release the wheels allow.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Ben Howe <bhowe@nvidia.com>
Signed-off-by: Luca Mondada <luca@mondada.net>
Signed-off-by: Luca Mondada <luca@mondada.net>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants