Skip to content

Removing cuda-mlir-runtime dependency on nvqir.#4008

Merged
Renaud-K merged 1 commit intoNVIDIA:mainfrom
Renaud-K:nvqir-deps
Feb 19, 2026
Merged

Removing cuda-mlir-runtime dependency on nvqir.#4008
Renaud-K merged 1 commit intoNVIDIA:mainfrom
Renaud-K:nvqir-deps

Conversation

@Renaud-K
Copy link
Collaborator

@Renaud-K Renaud-K commented Feb 19, 2026

There was coupling between the compiler cuda-mlir-runtime and the resource count simulator nvqir because the compiler was trying to directly update the resource count of the simulator. With these changes the resource counts are passed as a return value of the compiler and the resource count simulator is updated in the QPU.

The KernelExecution has now an additional Resources field and certainly shows that it is being overloaded as a return value but this will have to be addressed by other refactors when compilation is broken up into different policies which can then have different return types.

nvqir was publicly linking* with cuda-common and other libraries and cuda-mlir-runtime was publicly linking nvqir. Removing the dependency on nvqir means that existing dependencies have to be made explicit. So cuda-mlir-runtime still depends on cudaq-common for resouce counts, device code registry and other utilities and the dependency between QPUs and nvqir is now apparent.

Signed-off-by: Renaud Kauffmann <rkauffmann@nvidia.com>
@Renaud-K Renaud-K requested a review from atgeller February 19, 2026 19:54
@Renaud-K Renaud-K requested a review from lmondada February 19, 2026 19:54
Copy link
Collaborator

@atgeller atgeller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks @Renaud-K!

github-actions bot pushed a commit that referenced this pull request Feb 19, 2026
@github-actions
Copy link

CUDA Quantum Docs Bot: A preview of the documentation can be found here.

@Renaud-K Renaud-K added this pull request to the merge queue Feb 19, 2026
Merged via the queue into NVIDIA:main with commit 8b99abb Feb 19, 2026
206 checks passed
@Renaud-K Renaud-K deleted the nvqir-deps branch February 19, 2026 23:43
github-actions bot pushed a commit that referenced this pull request Feb 19, 2026
@bettinaheim bettinaheim added the no release notes Don't list this PR in the release notes label Mar 11, 2026
@bettinaheim bettinaheim added this to the release 0.14.0 milestone Mar 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no release notes Don't list this PR in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants