Skip to content

[Context] Use _get_context_or_default in global APIs#3429

Open
fedimser wants to merge 2 commits into
mainfrom
fedimser/infer-context
Open

[Context] Use _get_context_or_default in global APIs#3429
fedimser wants to merge 2 commits into
mainfrom
fedimser/infer-context

Conversation

@fedimser

@fedimser fedimser commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

This is needed when user uses global API on Callable coming from non-default context.

For example, QRE uses logical_counts on a callable that might be coming from non-default context:

logical_counts(entry_expr, *args)

Comment thread source/qdk_package/tests/test_context.py Dismissed
@fedimser fedimser marked this pull request as ready for review July 8, 2026 22:45
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