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

Qiskit / qiskit / 21004495479
88%
main: 88%

Build:
Build:
LAST BUILD BRANCH: add-pauli-lindblad-map-generators-15228
DEFAULT BRANCH: main
Ran 14 Jan 2026 06:32PM UTC
Jobs 1
Files 885
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

14 Jan 2026 05:58PM UTC coverage: 88.312% (-0.008%) from 88.32%
21004495479

push

github

web-flow
Refactor DAGCircuit to use Qubit/Clbit instead of ShareableQubit/ShareableClbit (#15496)

* Refactor DAGCircuit to use Qubit/Clbit instead of ShareableQubit/ShareableClbit

- Modified DAGCircuit::from_circuit and from_circuit_data to accept
  Qubit/Clbit indices instead of ShareableQubit/ShareableClbit
- Updated converters::circuit_to_dag to map shareable bits to local bits
- Modified DAGCircuit::compose to use local bit indices internally
- Updated DAGCircuit::py_compose to handle bit mapping from Python
- Updated C extension (dag.rs) to convert to local bit indices
- Updated disjoint_layout pass to use local bit indices

This improves efficiency and API simplicity for C and Rust callers
as suggested in issue #13456.

Fixes #13456

* Replace ShareableQubit/Clbit with Qubit/Clbit in DAGCircuit functions

- Modified DAGCircuit::from_circuit and from_circuit_data to accept Vec<Qubit>/Vec<Clbit>
- Modified DAGCircuit::compose to accept Qubit/Clbit indices
- Fixed index mapping in dag_compose C binding
- Fixed index mapping in disjoint_layout compose calls

Fixes #15316

* Simplify qk_dag_compose by directly converting u32 to Qubit/Clbit
Removed redundant conversion through ShareableQubit/Clbit as suggested in review.

* Address review feedback: simplify PyValueError usage, apply formatting, and optimize identity_qubit_map
- Simplified PyValueError usage by importing directly instead of qualifying the type
- Applied cargo fmt to modified files as requested
- Optimized identity_qubit_map creation to avoid unnecessary allocation when custom mapping is provided
- Note: identity_clbit_map optimization not applied as the map is used for iteration at line 8130

* Remove identity_clbit_map and generate clbit map inline

- Eliminated redundant identity_clbit_map variable
- Generate identity mapping directly in clbit_map match instead of cloning
- Simplified build_var_mapper by removing is_empty check

As suggested in review.

* Fix formatting in dag.rs

* Fix cli... (continued)

129 of 151 new or added lines in 4 files covered. (85.43%)

9 existing lines in 3 files now uncovered.

96966 of 109799 relevant lines covered (88.31%)

1203560.77 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
6
92.37
-3.78% crates/circuit/src/converters.rs
16
85.16
-0.14% crates/circuit/src/dag_circuit.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
82.3
0.0% crates/circuit/src/parameter/parameter_expression.rs
1
93.82
-0.24% crates/qasm2/src/expr.rs
7
91.52
-1.03% crates/qasm2/src/lex.rs
Jobs
ID Job ID Ran Files Coverage
1 21004495479.1 14 Jan 2026 06:32PM UTC 885
88.31
GitHub Action Run
Source Files on build 21004495479
  • Tree
  • List 885
  • Changed 9
  • Source Changed 4
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #21004495479
  • 5030ec1a on github
  • Prev Build on gh-readonly-queue/main/pr-15565-f056fd08e8e74682a4740a698439b4edca25f278 (#20998225799)
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