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

Qiskit / qiskit / 19140885680
88%

Build:
DEFAULT BRANCH: main
Ran 06 Nov 2025 04:11PM UTC
Jobs 1
Files 873
Run time 3min
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

06 Nov 2025 03:08PM UTC coverage: 88.176% (-0.04%) from 88.214%
19140885680

push

github

web-flow
Add DAG typed node support to C API. (#15206)

* Typed node interface for the DAG C API.

Adds the following supporting functions for working with nodes:

  * `qk_dag_num_op_nodes` => returns the number of operation nodes in the DAG.
  * `qk_dag_clbit_out_node` => given a clbit, returns the node index of its wire's output.
  * `qk_dag_clbit_in_node` => given a clbit, returns the node index of its wire's input.
  * `qk_dag_qubit_out_node` => given a qubit, returns the node index of its wire's output.
  * `qk_dag_qubit_in_node` => given a qubit, returns the node index of its wire's input.
  * `qk_dag_wire_node_value` => given a wire endpoint node index, returns the wrapped value (e.g. the qubit).
  * `qk_dag_op_node_num_qubits` => given an op node index, return the op's number of qubits.
  * `qk_dag_op_node_num_clbits` => given an op node index, return the op's number of clbits.
  * `qk_dag_op_node_num_params` => given an op node index, return the op's number of params.
  * `qk_dag_op_node_qubits` => given an op node index, return a pointer to the op's qubits.
  * `qk_dag_op_node_clbits` => given an op node index, return a pointer to the op's clbits.
  * `qk_dag_op_node_gate_op` => given an op node index of a gate operation, returns the op's `QkGate` and params.
  * `qk_dag_op_node_kind` => given an op node index, return the operation's kind.

Also adds a new `qk_dag_apply_gate` function to set the pattern we should use
for other DAG apply op functions. The function takes a `front` parameter to
distinguish between applying the op to the front of the circuit. It also takes
an `out_node` pointer parameter which is written with the value of the node
added to the graph on success. All iterators will yield indices from the DAG a
well (doesn't exist yet).

Generally, the approach to accessing node weights in the DAG is to call one of
the accessor functions with a pointer to the DAG and the index of the node you
want to access. Functions like `qk_dag_apply_gat... (continued)

119 of 166 new or added lines in 1 file covered. (71.69%)

25 existing lines in 4 files now uncovered.

93997 of 106602 relevant lines covered (88.18%)

1143124.0 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
47
76.21
-18.79% crates/cext/src/dag.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
92.57
-0.1% crates/transpiler/src/passes/unitary_synthesis.rs
3
91.77
0.26% crates/qasm2/src/lex.rs
9
72.98
-0.33% crates/circuit/src/parameter/symbol_expr.rs
12
97.09
-0.47% crates/qasm2/src/parse.rs
Jobs
ID Job ID Ran Files Coverage
1 19140885680.1 06 Nov 2025 04:11PM UTC 873
88.18
GitHub Action Run
Source Files on build 19140885680
  • Tree
  • List 873
  • Changed 8
  • Source Changed 3
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #19140885680
  • 8eeb7957 on github
  • Prev Build on gh-readonly-queue/main/pr-15286-56db921d1fb5494971dfebb76ea449f371df762f (#19098640856)
  • Next Build on main (#19162491855)
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