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

Qiskit / qiskit / 31534121907
88%
main: 88%

Build:
Build:
LAST BUILD BRANCH: mergify/bp/stable/2.5/pr-16234
DEFAULT BRANCH: main
Ran 11 Aug 2026 09:14PM UTC
Jobs 1
Files 950
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

11 Aug 2026 08:40PM UTC coverage: 87.746% (+0.01%) from 87.733%
31534121907

Pull #16744

github

mergify[bot]
dagcircuit: transfer DAG-level variables in `substitute_node_with_dag` (#15542)

* dagcircuit: transfer DAG-level variables in substitute_node_with_dag (fixes #15509)\n\n- Add input/captured/declared vars and stretches from replacement DAG\n- Add tests verifying input vars and captured/declared vars transfer\n- Add release note entry

* Apply Black formatting to test file

* Update test_dagcircuit.py

* Fix variable transfer to skip already-present variables

Previously, substitute_node_with_dag() would try to add all variables
from the replacement DAG, including those already present in the target
DAG. This violated the constraint that a DAG cannot have both input and
captured variables simultaneously when the same variable object appears
in both contexts.

Now check if each variable is already present before adding it, matching
the behavior of compose() with inline_captures=False.

* addressing review comments

* fixing failing check for node variable substitution in dagcircuit. The check was failing because the node variable substitution was not being applied correctly in the dagcircuit code. This commit fixes that issue by ensuring that the node variable substitution is applied correctly when checking for node variables in the dagcircuit code.

* adressing review comments

* reno

(cherry picked from commit f671c03bb)
Pull Request #16744: dagcircuit: transfer DAG-level variables in `substitute_node_with_dag` (backport #15542)

16 of 20 new or added lines in 1 file covered. (80.0%)

6 existing lines in 2 files now uncovered.

113004 of 128786 relevant lines covered (87.75%)

997814.57 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
85.95
0.19% crates/circuit/src/dag_circuit.rs

Coverage Regressions

Lines Coverage ∆ File
4
92.54
0.51% crates/qasm2/src/lex.rs
2
76.4
-0.08% crates/circuit/src/parameter/symbol_expr.rs
Jobs
ID Job ID Ran Files Coverage
1 31534121907.1 11 Aug 2026 09:14PM UTC 950
87.75
GitHub Action Run
Source Files on build 31534121907
  • Tree
  • List 950
  • Changed 4
  • Source Changed 1
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #31534121907
  • Pull Request #16744
  • PR Base - stable/2.5 (#31514880825)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc