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

Qiskit / qiskit / 17069935806
88%

Build:
DEFAULT BRANCH: main
Ran 19 Aug 2025 01:41PM UTC
Jobs 1
Files 841
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

19 Aug 2025 12:07PM UTC coverage: 88.264% (-0.01%) from 88.277%
17069935806

push

github

web-flow
Add Python free path to CheckMap pass (#14885)

* Add Python free path to CheckMap pass

The CheckMap transpiler pass only requires Python in the presence of
control flow operations to recurse through the blocks. Otherwise Python
isn't required and there is also a potentially slightly more efficient
execution path without the need for Python. This commit adds a pure rust
function that performs the CheckMap functionality when control flow isn't
present and the Python entrypoint uses this if the dag has no control flow.
This also gives us an entry point for the C transpiler to run check map
if needed.

* Handle the _FakeTarget

In the case the transpiler is invoked with just a coupling map and no
gate constraints a _FakeTarget is created which overloads the accessor
methods for the methods like `build_coupling_map` but don't actually
store any data. The idea behind the class was to provide a compatibility
layer between the legacy user interface and the pass interfaces which
have normalized on using a target. However, this is a Python-centric
view and the _FakeTarget can't be represented in Rust. This PR which
moves more of the logic into Rust wasn't able to recognize any details
in the fake target. This commit handles it explicitly by building a
dummy target to populate a full target in Rust that the pass can
actually use.

* Box is a control flow op too

* Fix lint

* Remove lifetime parameter from recurse()

* Remove qargs property

* Remove unused import

51 of 51 new or added lines in 4 files covered. (100.0%)

22 existing lines in 4 files now uncovered.

88103 of 99818 relevant lines covered (88.26%)

504828.46 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
93.63
-0.25% crates/qasm2/src/expr.rs
6
97.56
-0.47% crates/qasm2/src/parse.rs
7
92.01
-0.77% crates/qasm2/src/lex.rs
8
74.33
-0.33% crates/circuit/src/parameter/symbol_expr.rs
Jobs
ID Job ID Ran Files Coverage
1 17069935806.1 19 Aug 2025 01:41PM UTC 841
88.26
GitHub Action Run
Source Files on build 17069935806
  • Tree
  • List 841
  • Changed 9
  • Source Changed 4
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #17069935806
  • 90b00920 on github
  • Prev Build on gh-readonly-queue/main/pr-14576-510a5784e58c37dce60805c57c1e4e48865b4490 (#17068865735)
  • Next Build on main (#17074112127)
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