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

Qiskit / qiskit / 16943471314
88%

Build:
DEFAULT BRANCH: main
Ran 13 Aug 2025 05:12PM UTC
Jobs 1
Files 837
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

13 Aug 2025 04:02PM UTC coverage: 88.266% (+0.006%) from 88.26%
16943471314

push

github

web-flow
Add structural equality check for `DAGCircuit` (#14762)

* Add structural equality check for `DAGCircuit`

The current implementation of equality (the Python-facing
`DAGCircuit.__eq__`) is a semantic-equality checker.  This is typically
what users care about.  Transpiler-pass authors, however, need to care
about determinism in the order of modifications of a DAG, including
normally internal details such as the precise set of `NodeIndex`es that
are populated, or the order the edges are traversed for any given node.

This commit adds a new method, `DAGCircuit::structurally_equal`, which
checks the node and edge lists of the graph structure for exact equality
(slightly indirectly, since `petgraph` doesn't let us access the
internal details of the `StableGraph` struct directly), to help verify
whether two DAGs have gone through the same order of modifications.

* Improve documentation

Co-authored-by: Matthew Treinish <mtreinish@kortar.org>

* Update crates/circuit/src/dag_circuit.rs

Co-authored-by: Matthew Treinish <mtreinish@kortar.org>

---------

Co-authored-by: Matthew Treinish <mtreinish@kortar.org>

99 of 127 new or added lines in 3 files covered. (77.95%)

5 existing lines in 3 files now uncovered.

87229 of 98825 relevant lines covered (88.27%)

521260.51 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
28
85.19
-0.19% crates/circuit/src/dag_circuit.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
83.39
0.0% crates/circuit/src/parameter/parameter_expression.rs
1
74.74
-0.04% crates/circuit/src/parameter/symbol_expr.rs
3
92.53
0.52% crates/qasm2/src/lex.rs
Jobs
ID Job ID Ran Files Coverage
1 16943471314.1 13 Aug 2025 05:12PM UTC 837
88.27
GitHub Action Run
Source Files on build 16943471314
  • Tree
  • List 837
  • Changed 7
  • Source Changed 3
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #16943471314
  • aeb15b82 on github
  • Prev Build on gh-readonly-queue/main/pr-14236-ff9a3b65eca7592db2e72f3e68bd5227385092bc (#16941091775)
  • Next Build on main (#16944327987)
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