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

Qiskit / qiskit / 26644652977
88%

Build:
DEFAULT BRANCH: main
Ran 29 May 2026 03:29PM UTC
Jobs 1
Files 944
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

29 May 2026 02:16PM UTC coverage: 87.537% (+0.005%) from 87.532%
26644652977

push

github

web-flow
Use TwoQubitPeepholeOptimization in preset pass managers (#16136)

* Use TwoQubitPeepholeOptimization in preset pass managers

Following on from #13419 which added a new optimization pass
TwoQubitPeepholeOptimization which was designed to replace the
pair of ConsolidateBlocks and UnitarySynthesis for the optimization
stage after we have a physical circuit. That PR however did not update
the preset pass managers to concentrate the review on just adding the
new pass. This continues off from there by updating the preset pass
managers to use the new pass in optimization levels 2 and 3 replacing
those levels' optimization stage's previous usage of ConsolidateBlocks
and UnitarySynthesis to achieve the same goal. This should result in
both a runtime performance and transpilation quality improvement as the
new pass is both faster and should produce better fidelity circuits
than the previous peephole optimization.

The tests updates that are made in this PR are because the peephole
optimization is changing the transpilation output of various test
circuits. These were all verified to be valid outputs and in all cases
a "better" output than before. Specifically, for the tests updated
these were the changes in output and why they occurred:

* The two tests in
  test.python.circuit.test_scheduled_circuit.TestScheduledCircuit were
  the single CX gate in the output circuit was flipped from (0, 1) to
  (1, 0) because in the target the error rate for the (0, 1) direction
  was higher than the extra error cost of 3 sx gates (the rz gates have
  0 error).
* In test_unroll_only_if_not_gates_in_basis from
  test.python.transpiler.test_preset_passmanagers.TestPresetPassManager
  we no longer run ConsolidateBlocks in the optimization loop so we no
  longer need to add the 2 executions from the init and translation
  stages. The test is updated to count the new peephole pass which is
  the intent of the count check, to check the pass in the optimization
  loop.
* In test_2q... (continued)

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

7 existing lines in 2 files now uncovered.

108476 of 123920 relevant lines covered (87.54%)

963672.55 hits per line

Coverage Regressions

Lines Coverage ∆ File
4
92.29
-0.26% crates/qasm2/src/lex.rs
3
74.25
-0.12% crates/circuit/src/parameter/symbol_expr.rs
Jobs
ID Job ID Ran Files Coverage
1 26644652977.1 29 May 2026 03:29PM UTC 944
87.54
GitHub Action Run
Source Files on build 26644652977
  • Tree
  • List 944
  • Changed 7
  • Source Changed 1
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26644652977
  • 458d0f2a on github
  • Prev Build on gh-readonly-queue/main/pr-16312-09ae673910689e791b070c2c11d31b2fef7069cf (#26638341177)
  • Next Build on main (#26646699243)
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