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

Qiskit / qiskit / 18887901267
88%
main: 88%

Build:
Build:
LAST BUILD BRANCH: gh-readonly-queue/main/pr-15601-24de6c114eea7e297d22979970df925430ee2d6d
DEFAULT BRANCH: main
Ran 28 Oct 2025 08:51PM UTC
Jobs 1
Files 867
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

28 Oct 2025 07:30PM UTC coverage: 88.428% (+0.02%) from 88.408%
18887901267

push

github

web-flow
Fix reuse of `ConsolidateBlocks` instances (#15258) (#15266)

* Fix reuse of `ConsolidateBlocks` instances

The `_qubit_map` state added to `ConsolidateBlocks` in #15083 (cb103d95)
was attempting to get round an awkward internal `PassManager` use to
pass the mapping into recursive calls.  Unfortunately, the state was not
cleared on exit to the pass, so re-use of the pass object would be
invalid, such as by calling the `PassManager.run` method on the result
of `generate_preset_pass_manager` more than once on circuits with
different sizes.

Rather than trying to plaster over the poor use of state, this commit
instead moves the runtime logic to be in the `PropertySet`, so re-use
troubles are limited to single executions.  It's still technically
possible for the `PropertySet` to become polluted if `ConsolidateBlocks`
throws an internal exception that is forcibly suppressed such that the
pipeline continues, but this is completely non-standard, would require
significant effort to achieve, and most likely there are large numbers
of transpiler passes that are not completely exception-safe anyway.

* Add test of `PassManager.run` over a list

On some platforms this will be multiprocessing, but it doesn't hurt to
try it for the platforms that aren't.

* Document use of property-set key

(cherry picked from commit 4019fd9d9)

Co-authored-by: Jake Lishman <jake.lishman@ibm.com>

8 of 8 new or added lines in 1 file covered. (100.0%)

8 existing lines in 2 files now uncovered.

92398 of 104490 relevant lines covered (88.43%)

543223.22 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
3
73.02
0.04% crates/circuit/src/parameter/symbol_expr.rs
5
92.27
0.26% crates/qasm2/src/lex.rs
Jobs
ID Job ID Ran Files Coverage
1 18887901267.1 28 Oct 2025 08:51PM UTC 867
88.43
GitHub Action Run
Source Files on build 18887901267
  • Tree
  • List 867
  • Changed 5
  • Source Changed 1
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #18887901267
  • e0237efc on github
  • Prev Build on gh-readonly-queue/stable/2.2/pr-15256-caf287c9d3a1d42f7b73cfc992b55423fbcdbb41 (#18852078630)
  • Next Build on stable/2.2 (#18941246851)
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