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

Qiskit / qiskit / 35216270451
88%
main: 88%

Build:
Build:
LAST BUILD BRANCH: patch-lcov-errors
DEFAULT BRANCH: main
Ran 17 Sep 2026 12:05PM UTC
Jobs 1
Files 966
Run time 4min
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

17 Sep 2026 11:32AM UTC coverage: 87.883% (+0.01%) from 87.872%
35216270451

push

github

web-flow
Add non-allocating instruction views to C API (#16798)

* Add non-allocating instruction views to C API

The previous `qk_circuit_get_instruction` method (and its DAG
equivalent) always allocates and requires freeing, which can be a
significant cost when iterating through circuits.  We store all the data
in _some_ form cleanly in Rust, so can expose the pointers directly.
It's more efficient, but C has to jump through a couple more hoops to
access it safely, since it's either not in C-idiomatic forms (the
`name`) or isn't fully specified in the compile-time API (`params`).

In order to offset the `params` field, we have to introduce a function
(`qk_param_type_width`) to retrieve the size of `Param` at library load
time, since we only expose it as an opaque/indirect struct and it may
change between library versions.  I considered introducing a mechanism
to get _all_ the type widths of the opaque object as a static array of
lengths, but the additional build-system tooling and linting needed to
do this automatically without forgetting things is complex and isn't
immediately necessary.

* Avoid casts in `cmp` output

* Add explicit visibility markers

* Rename to `qk_param_stride`

* Fix typo

Co-authored-by: Raynel Sanchez <87539502+raynelfss@users.noreply.github.com>

* Add instruction view to C docs

---------

Co-authored-by: Raynel Sanchez <87539502+raynelfss@users.noreply.github.com>

76 of 76 new or added lines in 4 files covered. (100.0%)

3 existing lines in 2 files now uncovered.

118457 of 134790 relevant lines covered (87.88%)

971188.05 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
92.54
0.51% crates/qasm2/src/lex.rs
1
90.3
0.0% crates/circuit/src/parameter/parameter_expression.rs
Jobs
ID Job ID Ran Files Coverage
1 35216270451.1 17 Sep 2026 12:05PM UTC 966
87.88
GitHub Action Run
Source Files on build 35216270451
  • Tree
  • List 966
  • Changed 9
  • Source Changed 6
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #35216270451
  • 74b8c5b9 on github
  • Prev Build on gh-readonly-queue/main/pr-16973-81a84ff9d04eafb0e3ffa5e4d572b639c18e5cce (#35088509584)
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