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

Qiskit / qiskit / 34324235787
88%
main: 88%

Build:
Build:
LAST BUILD BRANCH: patch-lcov-errors
DEFAULT BRANCH: main
Ran 09 Sep 2026 08:03AM UTC
Jobs 1
Files 963
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

09 Sep 2026 07:30AM UTC coverage: 87.869% (-0.02%) from 87.885%
34324235787

push

github

web-flow
Split `PyDAGCircuit` and `DAGCircuit` (#16471)

* Split `DAGCircuit` and `PyDAGCircuit`
The following commit splits the representations of `DAGCircuit` into:
- `DAGCircuit` representing the rust-native implementation of the `DAG` excluding its metadata.
- `PyDAGCircuit` the version that gets exposed to Python.

`PyDAGCircuit` does not implement `Deref<DAGCircuit>` due to future plans requiring us to implement a reference counted `Circuit` for the Python version of the DAG.

* Update usages of `DAGCircuit` to work with the split.

* Fix: Name not being preserved in `DAGCircuit::from_circuit`

* FIx: Try to preserve metadata when possible
The following commits make sure we preserve the metadata of the `DAGCircuit` in passes where the instance is copied. This includes:
- `CommutativeOptimization`
- `ConvertToPauliRotations`
- `DisjointLayout`
- `ElidePermutations`
- `LitinskiTransformation`
- `Split2QUnitaries`
- `TwoQubitPeepholeOptimization`
- `BasisTranslator`
- `SabreLayout`
- `SabreRouting`
- `UnitarySynthesis`

* Refactor: Make `DAGCircuit::name` Python exclusive.
This commit moves the `name` attribute to exist only within `PyDAGCircuit` since it is Python exclusive metadata.
This commit also adds constructors with metadata from other `PyDAGCircuit` instances and a `DAGCircuit` from rust:
- `from_dagcircuit` which also accepts optional `metadata` and `name`.
- `from_dagcircuit_with_cloned_metadata` which accepts a reference to the `PyDAGCircuit` and copies over the attributes for the user.
The transpiler passes that don't perform transformations in place have been updated to use this model.

* Docs: Add docstrings to view methods.

* Docs: Add upgrade release note

* Lint: Re-add removed whitespace.

* Fix: Re-arrange changes to reduce diff footprit

* Fix: Move auxiliary methods back to `DAGCircuit`
Some auxiliary methods would need to immutably or mutably obtain the dag and therefore should only remain as auxiliary methods to the `DAGCircuit` ins... (continued)

1086 of 1245 new or added lines in 65 files covered. (87.23%)

40 existing lines in 8 files now uncovered.

117307 of 133502 relevant lines covered (87.87%)

978170.72 hits per line

Uncovered Changes

Lines Coverage ∆ File
121
85.87
-0.12% crates/circuit/src/dag_circuit.rs
6
87.32
-0.48% crates/cext/src/dag.rs
6
75.4
-0.06% crates/transpiler/src/passes/optimize_1q_gates_decomposition.rs
6
87.37
-2.85% crates/transpiler/src/passes/schedule_analysis/asap_schedule_analysis.rs
5
55.29
-1.5% crates/transpiler/src/angle_bound_registry.rs
4
68.42
-6.58% crates/transpiler/src/passes/filter_op_nodes.rs
3
72.44
-1.37% crates/transpiler/src/passes/basis_translator/compose_transforms.rs
3
89.46
-0.49% crates/transpiler/src/passes/disjoint_layout.rs
1
93.06
0.0% crates/circuit/src/converters.rs
1
72.0
0.32% crates/transpiler/src/passes/apply_layout.rs
1
92.97
-0.58% crates/transpiler/src/passes/commutation_analysis.rs
1
95.83
-0.94% crates/transpiler/src/passes/schedule_analysis/alap_schedule_analysis.rs
1
87.97
0.11% crates/transpiler/src/passes/unitary_synthesis/mod.rs

Coverage Regressions

Lines Coverage ∆ File
18
96.21
-0.95% crates/qasm2/src/parse.rs
9
85.87
-0.12% crates/circuit/src/dag_circuit.rs
5
92.03
-0.26% crates/qasm2/src/lex.rs
4
81.7
-0.1% crates/circuit/src/parameter/symbol_expr.rs
1
87.32
-0.48% crates/cext/src/dag.rs
1
55.29
-1.5% crates/transpiler/src/angle_bound_registry.rs
1
75.4
-0.06% crates/transpiler/src/passes/optimize_1q_gates_decomposition.rs
1
86.05
0.0% crates/transpiler/src/passes/unroll_3q_or_more.rs
Jobs
ID Job ID Ran Files Coverage
1 34324235787.1 09 Sep 2026 08:03AM UTC 963
87.87
GitHub Action Run
Source Files on build 34324235787
  • Tree
  • List 963
  • Changed 68
  • Source Changed 65
  • Coverage Changed 41
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #34324235787
  • 9eb802b6 on github
  • Prev Build on gh-readonly-queue/main/pr-16772-275744eef890c23f37113cf6617066b135676a1d (#34282255490)
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