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

Qiskit / qiskit / 22964185506
88%
main: 88%

Build:
Build:
LAST BUILD BRANCH: qpy_avoid_panic
DEFAULT BRANCH: main
Ran 11 Mar 2026 05:28PM 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.8% (-0.03%) from 87.832%
22964185506

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%)

6 existing lines in 4 files now uncovered.

101442 of 115537 relevant lines covered (87.8%)

1167018.47 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
86.99
0.0% crates/circuit/src/parameter/parameter_expression.rs
1
93.82
-0.24% crates/qasm2/src/expr.rs
2
92.29
0.77% crates/qasm2/src/lex.rs
2
96.72
-0.51% crates/transpiler/src/passes/unitary_synthesis/mod.rs
Jobs
ID Job ID Ran Files Coverage
1 22964185506.1 11 Mar 2026 05:28PM UTC 909
87.8
GitHub Action Run
Source Files on build 22964185506
  • Tree
  • List 909
  • Changed 8
  • Source Changed 2
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #22964185506
  • cd82a9f2 on github
  • Prev Build on gh-readonly-queue/main/pr-15795-b53e135db12e0a2aefa5c26b7227b2c0070c9903 (#22964125097)
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