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

Qiskit / qiskit / 30561042140
88%

Build:
DEFAULT BRANCH: main
Ran 30 Jul 2026 04:53PM UTC
Jobs 1
Files 953
Run time 2min
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

30 Jul 2026 03:55PM UTC coverage: 87.584% (-0.003%) from 87.587%
30561042140

push

github

web-flow
Remove python dependency for running rust tests (#16662)

* Remove python dependency for running rust tests

Back during the development of 1.3/1.4/2.0 the state of the Qiskit data
model was different and we had more of a python dependency, including a
runtime dependency for the core data model. This meant that testing
various aspects of qiskit via rust would require that Python was
installed and usable from the rust test binary. Being able to use Python
from the rust tests was enabled in #13169.

However, this was never really well supported because of ABI mismatches
between the qiskit version installed in the python environment used for
testing and the qiskit version built for testing. Additionally, since
it's introduction in #13169 Qiskit's story for the use of Python has
moved on. We now support running qiskit without the Python interpreter
at all via the C API and the core data model has to support this mode of
operation. So anything we want to test via rust no longer will need
Python. We are still working on having a path that can build qiskit
without any symbols from python in the data model (see: #14240) but
that just means libpython needs to be present to run the tests, the
interpreter never needs to be invoked.

This commit basically undoes #13169 (and the follow on #13753) and makes
it clear that rust tests should not interact with the Python interpreter.
Moving forward we should consider building out more testing in rust to verify
functionality on the core library code both for faster testing but also
to ensure the core rust code is well tested independently of the public
C and Python interfaces. A few of the changes made to the
CONTRIBUTING.md go a bit beyond the scope of this PR, but I felt it was
important to update the testing docs for clarity as I was making the
split between Rust and Python tests more clear. I can split that out
into a separate PR if that is preferred, but it's only a couple of extra
sentences.

* Remove auto-initial... (continued)

113266 of 129323 relevant lines covered (87.58%)

997820.81 hits per line

Coverage Regressions

Lines Coverage ∆ File
8
74.89
-0.33% crates/circuit/src/parameter/symbol_expr.rs
5
91.0
-0.51% crates/qasm2/src/lex.rs
1
90.32
0.0% crates/circuit/src/parameter/parameter_expression.rs
Jobs
ID Job ID Ran Files Coverage
1 30561042140.1 30 Jul 2026 04:53PM UTC 953
87.58
GitHub Action Run
Source Files on build 30561042140
  • Tree
  • List 953
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #30561042140
  • 56147f83 on github
  • Prev Build on gh-readonly-queue/main/pr-16683-2595d8db5f8612eee32a5a53c08e83ed2280a921 (#30477398364)
  • Next Build on main (#30734548112)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc