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

Qiskit / qiskit / 19668330148
88%
main: 88%

Build:
Build:
LAST BUILD BRANCH: EA/qiskit-bot
DEFAULT BRANCH: main
Ran 25 Nov 2025 12:21PM UTC
Jobs 1
Files 875
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

25 Nov 2025 11:41AM UTC coverage: 88.223% (-0.002%) from 88.225%
19668330148

push

github

web-flow
Add `qk_circuit_to_dag` and `qk_dag_to_circuit` to the C API (#15247)

* Add qk_circuit_to_dag and qk_dag_to_circuit

This commit adds dag to circuit and circuit to dag converters
to the C API. The C API function signatures follow those of the
corresponding Python functions.

* Normalize error message

* Fix c testing

Moved the testing functions to the proper place following their rename
in the C API itself.

* Apply suggestion from @jakelishman

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

* Apply suggestion from @jakelishman

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

* Apply suggestion from @jakelishman

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

* Address review comments

* Remove copy_operations
* Fix usage of `unsafe`
* Add Rust test to `circuit_to_dag`
* Update documentation

* Fix miri failure

Free the DAGCircuit created by qk_circuit_to_dag

* Fix cargo fmt --check

* Address review comments

* Compare instruction counts in the dag/circuit converters tests
* Update function documentation

* Address review comments

* Remove support for qubit_order and clbit_order in `qk_circuit_to_dag`
* Minor documentation tweaks

* Align with code example indent convention in the file

* Apply cargo fmt

* Add comment on ownership of inputs

---------

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

12 of 12 new or added lines in 2 files covered. (100.0%)

19 existing lines in 3 files now uncovered.

94333 of 106926 relevant lines covered (88.22%)

1200833.87 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
73.19
0.29% crates/circuit/src/parameter/symbol_expr.rs
6
91.77
0.0% crates/qasm2/src/lex.rs
12
97.09
-0.94% crates/qasm2/src/parse.rs
Jobs
ID Job ID Ran Files Coverage
1 19668330148.1 25 Nov 2025 12:21PM UTC 875
88.22
GitHub Action Run
Source Files on build 19668330148
  • Tree
  • List 875
  • Changed 6
  • Source Changed 2
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #19668330148
  • 25349eb8 on github
  • Prev Build on gh-readonly-queue/main/pr-15297-ea01d9985a0d9da1eeaaed3caace3fe11389e4f7 (#19664632883)
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

© 2025 Coveralls, Inc