• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Qiskit / qiskit / 13697562754
88%

Build:
DEFAULT BRANCH: main
Ran 06 Mar 2025 11:45AM UTC
Jobs 1
Files 789
Run time 267min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

06 Mar 2025 10:22AM UTC coverage: 88.189% (-0.3%) from 88.497%
13697562754

push

github

web-flow
Embed C API into Python extension (#13934)

* Embed C API into Python extension

This commit adds the C extension crate into the Python extension build.
This is done by adding the qiskit-cext crate as a dependency for
qiskit-pyext. Then the contents of cext are re-exported from pyext. This
enables linking against the _accelerate shared library object using the
C API. This facilitates writing compiled Python extensions that
interface with Qiskit directly via C. For example, building a
SparseObservable object in a compiled language via the C API and then
returning that to Python for use with the rest of Qiskit.

Co-authored-by: Matthew Treinish <mtreinish@kortar.org>

* Remove python space function

The path is trivial to get if you need it and we shouldn't commit to
this in the public api yet.

* Add feature gate for python function

* Add optional python header and and fix rename overrides prefixing

* Correct dependencies in Makefile

* Fix cbindgen config

* Add cfg feature guard for python dependent functionality

* Adjust python gil usage and document it

* Update crates/pyext/src/lib.rs

* Update crates/cext/src/sparse_observable.rs

Co-authored-by: Jake Lishman <jake@binhbar.com>

* Manual object rename

We should find a better solution,
maybe the Rust interface of cbindgen
allows for more options here.

* pyo3 as optional dependency in cext

but implicitly it still depends on it via qiskit-accelerate

---------

Co-authored-by: Julien Gacon <jules.gacon@googlemail.com>
Co-authored-by: Jake Lishman <jake.lishman@ibm.com>
Co-authored-by: Jake Lishman <jake@binhbar.com>

0 of 13 new or added lines in 1 file covered. (0.0%)

7 existing lines in 2 files now uncovered.

71847 of 81469 relevant lines covered (88.19%)

486331.23 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
13
0.0
crates/cext/src/sparse_observable.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
92.73
1.0% crates/qasm2/src/lex.rs
6
97.61
0.93% crates/qasm2/src/parse.rs
Jobs
ID Job ID Ran Files Coverage
1 13697562754.1 06 Mar 2025 11:45AM UTC 789
88.19
GitHub Action Run
Source Files on build 13697562754
  • Tree
  • List 789
  • Changed 4
  • Source Changed 2
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #13697562754
  • 519ce514 on github
  • Prev Build on main (#13697164186)
  • Next Build on main (#13698067235)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc