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

Qiskit / qiskit / 20034337492
88%

Build:
DEFAULT BRANCH: main
Ran 08 Dec 2025 04:39PM UTC
Jobs 1
Files 880
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

08 Dec 2025 03:36PM UTC coverage: 88.332% (-0.02%) from 88.351%
20034337492

push

github

web-flow
Add substitute_node_with_dag to c api (#15374)

* Add substitute_node_with_dag to c api

This commit adds a new function qk_dag_substitute_node_with_dag to the C
api. This facilitates in place substitute from the new dag api. This is
fairly mechanical addition to the api as
`DAGCircuit::substitute_node_with_dag()` is already rust native. So
we only need to expose that inteface to C. The only difference between
the C and existing internal rust interface is that the qubit, clbit, and
var mapping arguments are not exposed to C. These options aren't
commonly used, and if the user needs to map the ordering they can do
that during replacement dag construction rather that at substitution
time.

Fixes #15190

* Panic instead of returning an exit code on failure modes

The failure modes for calling the inner rust method are all caused by
invalid input or aren't possible via the C API (come from python) so
there isn't a reason to have a subpar error experience dealing with
backtraces when it's not something recoverable.

* Run clang format

* Update documentation

---------

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

17 of 19 new or added lines in 1 file covered. (89.47%)

26 existing lines in 5 files now uncovered.

96118 of 108814 relevant lines covered (88.33%)

1206646.12 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
84.53
0.21% crates/cext/src/dag.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
82.3
0.0% crates/circuit/src/parameter/parameter_expression.rs
1
93.82
-0.24% crates/qasm2/src/expr.rs
3
72.86
-0.12% crates/circuit/src/parameter/symbol_expr.rs
3
92.29
0.26% crates/qasm2/src/lex.rs
18
96.15
-1.42% crates/qasm2/src/parse.rs
Jobs
ID Job ID Ran Files Coverage
1 20034337492.1 08 Dec 2025 04:39PM UTC 880
88.33
GitHub Action Run
Source Files on build 20034337492
  • Tree
  • List 880
  • Changed 8
  • Source Changed 2
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20034337492
  • 7a89efc8 on github
  • Prev Build on gh-readonly-queue/main/pr-15417-9ef5a83b209204b7ce78ebc286e4b0061e5327b6 (#20001332678)
  • Next Build on main (#20038271475)
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