Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose user-defined callables into Python #2054

Merged
merged 17 commits into from
Dec 13, 2024
Merged

Conversation

swernli
Copy link
Collaborator

@swernli swernli commented Dec 6, 2024

This change adds new interop capabilities for the qsharp Python module. Any user-defined global callables with types supported by interop will automatically be surfaced into the qsharp.code module and available for invocation or import directly in Python.

This change adds new interop capabilities for the qsharp Python module. Any user-defined global callables with types supported by interop will automatically be surfaced into the `qsharp.env` module and available for invocation or import directly in Python.
pip/tests/test_qsharp.py Fixed Show fixed Hide fixed
pip/tests/test_qsharp.py Fixed Show fixed Hide fixed
pip/tests/test_qsharp.py Fixed Show fixed Hide fixed
pip/tests/test_qsharp.py Fixed Show fixed Hide fixed
pip/tests/test_qsharp.py Fixed Show fixed Hide fixed
pip/tests/test_qsharp.py Outdated Show resolved Hide resolved
pip/src/interpreter.rs Outdated Show resolved Hide resolved
pip/tests/test_qsharp.py Fixed Show fixed Hide fixed
pip/tests/test_qsharp.py Dismissed Show dismissed Hide dismissed
pip/tests/test_qsharp.py Dismissed Show dismissed Hide dismissed
pip/tests/test_qsharp.py Dismissed Show dismissed Hide dismissed
pip/tests/test_qsharp.py Fixed Show fixed Hide fixed
pip/qsharp/_qsharp.py Outdated Show resolved Hide resolved
pip/qsharp/_qsharp.py Outdated Show resolved Hide resolved
pip/qsharp/env/__init__.py Outdated Show resolved Hide resolved
pip/tests/test_qsharp.py Outdated Show resolved Hide resolved
pip/src/interpreter.rs Outdated Show resolved Hide resolved
pip/tests/test_qsharp.py Fixed Show fixed Hide fixed
pip/tests/test_qsharp.py Fixed Show fixed Hide fixed
pip/tests/test_qsharp.py Fixed Show fixed Hide fixed
pip/tests/test_qsharp.py Dismissed Show dismissed Hide dismissed
Copy link
Member

@minestarks minestarks left a comment

Choose a reason for hiding this comment

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

Posting another batch of comments, but I need to finish going through the compiler folder. Python side looks good

pip/src/interpreter.rs Show resolved Hide resolved
pip/qsharp/env/__init__.py Outdated Show resolved Hide resolved
pip/qsharp/__init__.py Outdated Show resolved Hide resolved
compiler/qsc_hir/src/global.rs Show resolved Hide resolved
compiler/qsc/src/interpret.rs Outdated Show resolved Hide resolved
pip/tests/test_qsharp.py Dismissed Show dismissed Hide dismissed
pip/tests/test_qsharp.py Dismissed Show dismissed Hide dismissed
pip/tests/test_qsharp.py Dismissed Show dismissed Hide dismissed
pip/tests/test_qsharp.py Dismissed Show dismissed Hide dismissed
pip/tests/test_qsharp.py Dismissed Show dismissed Hide dismissed
pip/qsharp/_qsharp.py Outdated Show resolved Hide resolved
pip/src/interpreter.rs Outdated Show resolved Hide resolved
Copy link
Member

@minestarks minestarks left a comment

Choose a reason for hiding this comment

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

Ok, I left a lot of comments on the design, approved presuming we'll reach a resolution on those. I think it came together really cleverly - thank you!

@swernli swernli enabled auto-merge December 13, 2024 00:14
@swernli swernli added this pull request to the merge queue Dec 13, 2024
Merged via the queue into main with commit f6e8acf Dec 13, 2024
18 checks passed
@swernli swernli deleted the swernli/python-interop branch December 13, 2024 00:39
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