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

Qiskit / qiskit / 19140885680 / 1
88%
main: 88%

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

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)

93997 of 106602 relevant lines covered (88.18%)

1143124.0 hits per line

Source Files on job 19140885680.1
  • Tree
  • List 873
  • Changed 8
  • Source Changed 3
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 19140885680
  • 8eeb7957 on github
  • Prev Job for on main (#19098640856.1)
  • Next Job for on main (#19162491855.1)
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