Skip to content

[Context] Use _get_context_or_default in global APIs#3429

Merged
fedimser merged 3 commits into
mainfrom
fedimser/infer-context
Jul 17, 2026
Merged

[Context] Use _get_context_or_default in global APIs#3429
fedimser merged 3 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
@fedimser
fedimser added this pull request to the merge queue Jul 17, 2026
Merged via the queue into main with commit a619fea Jul 17, 2026
13 checks passed
@fedimser
fedimser deleted the fedimser/infer-context branch July 17, 2026 18:19
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.

3 participants