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

Qiskit / qiskit / 17941583232
88%
main: 88%

Build:
Build:
LAST BUILD BRANCH: split-py-dag
DEFAULT BRANCH: main
Ran 23 Sep 2025 10:05AM UTC
Jobs 1
Files 866
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

23 Sep 2025 09:26AM UTC coverage: 88.396% (+0.003%) from 88.393%
17941583232

push

github

web-flow
Fix edge-order non-determinism when adding DAG nodes (backport #15040) (#15057)

* Fix edge-order non-determinism when adding DAG nodes (#15040)

All of `DAGCircuit::push_back`, `DAGCircuit::push_front` and
`DAGCircuitBuilder::push_back` had non-determinisms in the precise order
that edges were added.  The two `DAGCircuit` methods had diverged, so
exhibited _different_ behaviour.  Most of the effects were limited to
nodes with multiple classical in edges, though `DAGCircuit::push_back`
did have some problems with high-degree quantum nodes (like barriers) as
well.

This commit unifies the code handled the two `DAGCircuit` methods to try
and prevent divergences (especially since `apply_operation_front` is
currently little used and little tested).  As a side effect, this fixed
a bug in `apply_operation_front` around handling multiple references to
the same clbit or var in classical expressions that was fixed in
`apply_operation_back` some time prior.

(cherry picked from commit 25c3206f0)

# Conflicts:
#	crates/circuit/src/dag_circuit.rs

* Fix merge conflict

---------

Co-authored-by: Jake Lishman <jake.lishman@ibm.com>
Co-authored-by: Matthew Treinish <mtreinish@kortar.org>

34 of 34 new or added lines in 1 file covered. (100.0%)

13 existing lines in 3 files now uncovered.

92252 of 104362 relevant lines covered (88.4%)

559979.51 hits per line

Coverage Regressions

Lines Coverage ∆ File
6
97.56
-0.47% crates/qasm2/src/parse.rs
4
92.78
1.03% crates/qasm2/src/lex.rs
3
72.74
-0.08% crates/circuit/src/parameter/symbol_expr.rs
Jobs
ID Job ID Ran Files Coverage
1 17941583232.1 23 Sep 2025 10:05AM UTC 866
88.4
GitHub Action Run
Source Files on build 17941583232
  • Tree
  • List 866
  • Changed 5
  • Source Changed 1
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #17941583232
  • 33fef5fc on github
  • Prev Build on gh-readonly-queue/stable/2.2/pr-15053-bdd32f85f96b62709ae3cbfd279db3a363f7fffb (#17936890152)
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