Skip to content

Fix bug where cleanup code was cleaned up#4037

Merged
atgeller merged 4 commits intoNVIDIA:mainfrom
atgeller:cleanup_bug
Feb 25, 2026
Merged

Fix bug where cleanup code was cleaned up#4037
atgeller merged 4 commits intoNVIDIA:mainfrom
atgeller:cleanup_bug

Conversation

@atgeller
Copy link
Collaborator

@atgeller atgeller commented Feb 24, 2026

Description

Looks like, during cleanup, the pybind bound function cudaq-runtime.delete_cache_execution_engine is deleted (and thus set to None) before it is called when cleaning up some decorators. I just added a check to not perform clean up in this case.

Signed-off-by: Adam Geller <adgeller@nvidia.com>
@atgeller atgeller requested a review from 1tnguyen February 24, 2026 19:32
Copy link
Collaborator

@1tnguyen 1tnguyen left a comment

Choose a reason for hiding this comment

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

👍

Signed-off-by: Adam Geller <adgeller@nvidia.com>
@github-actions
Copy link

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

1 similar comment
@github-actions
Copy link

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

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.

5 participants