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

Qiskit / qiskit / 25038868248
88%
main: 88%

Build:
Build:
LAST BUILD BRANCH: revert-15783-basis_translator_dag
DEFAULT BRANCH: main
Ran 28 Apr 2026 07:27AM UTC
Jobs 1
Files 933
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

28 Apr 2026 07:04AM UTC coverage: 87.582% (+0.003%) from 87.579%
25038868248

push

github

web-flow
Add PEP 484 type hints to transpiler analysis and utility passes (#15832)

* docs: add PEP 484 type hints to transpiler analysis and utility passes

Add `from __future__ import annotations` and PEP 484 type annotations to all 9 analysis passes (CountOps, Depth, Size, Width, NumQubits, NumTensorFactors, CountOpsLongestPath, DAGLongestPath, ResourceEstimation) and 3 utility passes (DAGFixedPoint, FixedPoint, ContainsInstruction).

Changes include:

- Type-annotate __init__ parameters and run() method signatures with DAGCircuit, bool, str, and -> None return types

- Expand sparse docstrings with Args blocks where missing

- Fix copy-paste module docstring in contains_instruction.py (was incorrectly 'Check if a property reached a fixed point')

- Rename placeholder parameter '_' to 'dag' in ResourceEstimation.run() for clarity

* Refactor import statements in count_ops.py

* Refactor imports and update docstring formatting

* Refactor import statements and update docstring

* Refactor imports and update docstring formatting

* Refactor import statement for TYPE_CHECKING

* Apply suggestion from @Cryoris

Co-authored-by: Julien Gacon <gaconju@gmail.com>

* Refactor imports and docstring formatting

* Refactor import statements and docstring formatting

* Refactor imports and update docstring format

* Refactor import statements in width.py

* Update instruction_name type to Iterable in ContainsInstruction

* Update dag_fixed_point.py

* Refactor imports and docstrings in fixed_point.py

* Add copyright notice and docstring to count_ops.py

* Add docstring for counting operations in DAGCircuit

* Add type checking for DAGCircuit import

* Add copyright notice and docstring to depth.py

* Add copyright notice and docstring to num_qubits.py

* Import DAGCircuit for type checking

Add import statement for DAGCircuit in num_tensor_factors.py

* Update resource_estimation.py for type checking

* Add copyright notice and docstring to size.py

* Update width.py

... (continued)

43 of 43 new or added lines in 12 files covered. (100.0%)

14 existing lines in 3 files now uncovered.

105002 of 119890 relevant lines covered (87.58%)

979258.21 hits per line

Coverage Regressions

Lines Coverage ∆ File
6
97.63
0.0% crates/qasm2/src/parse.rs
4
73.88
-0.08% crates/circuit/src/parameter/symbol_expr.rs
4
92.29
0.26% crates/qasm2/src/lex.rs
Jobs
ID Job ID Ran Files Coverage
1 25038868248.1 28 Apr 2026 07:27AM UTC 933
87.58
GitHub Action Run
Source Files on build 25038868248
  • Tree
  • List 933
  • Changed 16
  • Source Changed 12
  • Coverage Changed 16
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25038868248
  • b0459842 on github
  • Prev Build on gh-readonly-queue/main/pr-16006-b02a3975cd657487f32ab508ee79d37ad1e123aa (#25038464137)
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