Repository navigation
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.