Skip to content

Conversation

@eliarbel
Copy link
Member

This commit adds qk_dag_successors and qk_dag_predecessors to retrieve the neighbors of a given DAG node.
The information is returned through a new output struct called QkDagNeighbors. The struct data is cleared using the new qk_dag_neighbors_clear function.

Closes #15189

This commit adds `qk_dag_successors` and `qk_dag_predecessors` to retrieve
the neighbors of a given DAG node.
The information is returned through a new output struct called `QkDagNeighbors`.
The struct data is cleared using the new `qk_dag_neighbors_clear` function.
@eliarbel eliarbel added this to the 2.3.0 milestone Nov 16, 2025
@eliarbel eliarbel added the Changelog: New Feature Include in the "Added" section of the changelog label Nov 16, 2025
@eliarbel eliarbel requested a review from a team as a code owner November 16, 2025 14:21
@eliarbel eliarbel added the C API Related to the C API label Nov 16, 2025
@qiskit-bot
Copy link
Collaborator

One or more of the following people are relevant to this code:

@coveralls
Copy link

Pull Request Test Coverage Report for Build 19407009803

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 50 of 51 (98.04%) changed or added relevant lines in 2 files are covered.
  • 15 unchanged lines in 3 files lost coverage.
  • Overall coverage increased (+0.005%) to 88.204%

Changes Missing Coverage Covered Lines Changed/Added Lines %
crates/cext/src/dag.rs 40 41 97.56%
Files with Coverage Reduction New Missed Lines %
crates/circuit/src/parameter/parameter_expression.rs 1 81.99%
crates/qasm2/src/lex.rs 6 92.03%
crates/circuit/src/parameter/symbol_expr.rs 8 72.9%
Totals Coverage Status
Change from base Build 19386973715: 0.005%
Covered Lines: 94287
Relevant Lines: 106897

💛 - Coveralls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C API Related to the C API Changelog: New Feature Include in the "Added" section of the changelog

Projects

Status: Ready

Development

Successfully merging this pull request may close these issues.

Add DAG successors and predecessors to the C API.

3 participants