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

Qiskit / qiskit / 22965262791
88%

Build:
DEFAULT BRANCH: main
Ran 11 Mar 2026 06:11PM UTC
Jobs 1
Files 909
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

11 Mar 2026 04:52PM UTC coverage: 87.797% (-0.04%) from 87.832%
22965262791

push

github

web-flow
Add C/Python interop for `Target` and `DAGCircuit` (#15337)

* Add C/Python interop for `Target` and `DAGCircuit`

This adds the ability to retrieve a `QkDag *` from a Python
`DAGCircuit` and a `QkTarget *`from a `Target`.  For `DAGCircuit`, which
is directly the user-facing pyclass, this commit also includes a way of
passing ownership from a `QkDag *` to a Python object.  `QkTarget` does
not yet have a defined converted to full Python space, since that
involves constructing an additional wrapper object, whose structure
might change soon.

Similar functionality can be added to other objects that we expect C
extension modules to be able to return to Python space.  In some cases
(such as `QkTranspileLayout`), the Rust- and Python-space objects are
quite different, so there is no need to specify a converter until we
have unified them in both.  `CircuitData` is in an awkward spot because
while it _does_ have a perfect correspondence with a Python-space
object, that object is not the complete `QuantumCircuit`.

* Update crates/cext/src/dag.rs

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

* Remove unneeded reference conversion

* Update crates/cext/src/dag.rs

Co-authored-by: Julien Gacon <gaconju@gmail.com>

* Update crates/cext/src/transpiler/target.rs

Co-authored-by: Julien Gacon <gaconju@gmail.com>

* Update releasenotes/notes/c-dag-getter-00bce3ca7de3b19c.yaml

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

---------

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

0 of 51 new or added lines in 3 files covered. (0.0%)

17 existing lines in 3 files now uncovered.

101438 of 115537 relevant lines covered (87.8%)

1166250.26 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
9
86.96
-1.55% crates/cext/src/transpiler/target.rs
20
85.28
-3.14% crates/cext/src/dag.rs
22
0.0
crates/cext/src/py.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
93.82
-0.24% crates/qasm2/src/expr.rs
4
91.52
0.0% crates/qasm2/src/lex.rs
12
96.68
-0.47% crates/qasm2/src/parse.rs
Jobs
ID Job ID Ran Files Coverage
1 22965262791.1 11 Mar 2026 06:11PM UTC 909
87.8
GitHub Action Run
Source Files on build 22965262791
  • Tree
  • List 909
  • Changed 6
  • Source Changed 2
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #22965262791
  • cd82a9f2 on github
  • Prev Build on gh-readonly-queue/main/pr-15795-b53e135db12e0a2aefa5c26b7227b2c0070c9903 (#22964125097)
  • Next Build on main (#22969178746)
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

© 2026 Coveralls, Inc