-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 operation conversion methods to other crates. #12698
Expose operation conversion methods to other crates. #12698
Conversation
- Expose `operation_type_to_py`, `operation_type_and_data_to_py`, `convert_py_to_operation_type`, methods to other rust crates. - Expose `OperationTypeConstruct` struct to other crates.
One or more of the following people are relevant to this code:
|
Can you add some motivation? Is there something in the works that intends to use these methods? |
@jlapeyre, Here's one use case: This is the way we represent gates within the EquivalenceLibrary as we still need to check the parameters that are used within each |
Pull Request Test Coverage Report for Build 9747010175Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
…#12698) - Expose `operation_type_to_py`, `operation_type_and_data_to_py`, `convert_py_to_operation_type`, methods to other rust crates. - Expose `OperationTypeConstruct` struct to other crates.
Summary
After #12459 merged, a couple of conversion methods were introduced to be able to represent operations in Rust. These commits aim to expose these methods so that they can be used on other crates within
qiskit._accelerate
. One example of its use is for #12585.Details and comments
operation_type_to_py
,operation_type_and_data_to_py
,convert_py_to_operation_type
, methods to other rust crates.OperationTypeConstruct
struct to other crates.