-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Add C API for SparseObservable #13445
Comments
There's a decent amount of comment in #13391 about how this could/should be done to make the clean Rust/Python split, and the C FFI would follow on from that. |
mtreinish
added a commit
to mtreinish/qiskit-core
that referenced
this issue
Mar 10, 2025
Building off the infrastructure for the sparse observable added in PR Qiskit#13445 this commit adds a C API for building QuantumCircuits.
mtreinish
added a commit
to mtreinish/qiskit-core
that referenced
this issue
Mar 10, 2025
Building off the infrastructure for the sparse observable added in PR Qiskit#13445 this commit adds a C API for building QuantumCircuits.
mtreinish
added a commit
to mtreinish/qiskit-core
that referenced
this issue
Mar 12, 2025
Building off the infrastructure for the sparse observable added in PR Qiskit#13445 this commit adds a C FFI for building Quantum Circuits. Right now there is a function to create an empty circuit with n qubits and m clbits and then a function to add standard gates to a circuit and then also get the op counts out of a circuit. This is a start of the functionality for a C API around interacting with circuits, later PRs will expand this so we can have a more fully featured C API in the future. Part of Qiskit#13276
1 task
mtreinish
added a commit
to mtreinish/qiskit-core
that referenced
this issue
Mar 12, 2025
Building off the infrastructure for the sparse observable added in PR Qiskit#13445 this commit adds a C FFI for building Quantum Circuits. Right now there is a function to create an empty circuit with n qubits and m clbits and then a function to add standard gates to a circuit and then also get the op counts out of a circuit. This is a start of the functionality for a C API around interacting with circuits, later PRs will expand this so we can have a more fully featured C API in the future. Part of Qiskit#13276
mtreinish
added a commit
to mtreinish/qiskit-core
that referenced
this issue
Mar 12, 2025
Building off the infrastructure for the sparse observable added in PR Qiskit#13445 this commit adds a C FFI for building Quantum Circuits. Right now there is a function to create an empty circuit with n qubits and m clbits and then a function to add standard gates to a circuit and then also get the op counts out of a circuit. This is a start of the functionality for a C API around interacting with circuits, later PRs will expand this so we can have a more fully featured C API in the future. Part of Qiskit#13276
mtreinish
added a commit
to mtreinish/qiskit-core
that referenced
this issue
Mar 15, 2025
Building off the infrastructure for the sparse observable added in PR Qiskit#13445 this commit adds a C FFI for building Quantum Circuits. Right now there is a function to create an empty circuit with n qubits and m clbits and then a function to add standard gates to a circuit and then also get the op counts out of a circuit. This is a start of the functionality for a C API around interacting with circuits, later PRs will expand this so we can have a more fully featured C API in the future. Part of Qiskit#13276
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What should we add?
The recently added
SparseObservable
class was added as a Rust native object in #12671 . To facilitate different use cases for generating and interacting with this new structure from compiled languages including other Python libraries' compiled extensions we should add a lower level C API around the structure. This will likely involve splitting the currentSparseObservable
structure into a pure rust struct and a wrapping python interface struct. Then we can add a new C FFI wrapper for it, likely should be put in a new cratec_ext
crate or something like that to define the C API to qiskit. This sparse observable interface will likely be a good way to PoC the packaging and structure for other C API's that have a longer on-ramp, mainly: #13276.The text was updated successfully, but these errors were encountered: