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

Qiskit / qiskit / 15170459616
88%
main: 88%

Build:
Build:
LAST BUILD BRANCH: rust_qpy
DEFAULT BRANCH: main
Ran 21 May 2025 07:24PM UTC
Jobs 1
Files 789
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

21 May 2025 07:03PM UTC coverage: 88.113% (-0.02%) from 88.134%
15170459616

push

github

web-flow
Fix ConsolidateBlocks pass for collecting non-CX KAK gate (#14417) (#14424)

A bug was introduced into the ConsolidateBlocks pass in #13884 around
how the KAK gate name was passed to rust from the Python pass. The
consolidate blocks internal logic around whether to consolidate a pass
or not is based on the estimate from the selected decomposer of whether
the estimated number of gates used to synthesis the unitary would exceed
the number of basis gates in the block. To do this the pass counts the
gate with the synthesis target name in the block. However, in the case
of the decomposer being the TwoQubitBasisDecomposer the name being
used for this look wasn't the name of the gate, but instead was an
internal sentinel value string "USER_GATE" which is used to handle
arbitrary user gate definitions in the decomposer. This led to the
consolidate blocks pass missing opportunities for consolidation. This
commit fixes the oversight so that the name we use for making this
determination is the actual basis gate name and the pass functions
correctly.

Fixes #14413

(cherry picked from commit 4e9231df9)

Co-authored-by: Matthew Treinish <mtreinish@kortar.org>

4 of 5 new or added lines in 1 file covered. (80.0%)

22 existing lines in 2 files now uncovered.

72923 of 82761 relevant lines covered (88.11%)

356912.58 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
96.61
-1.54% qiskit/transpiler/passes/optimization/consolidate_blocks.py

Uncovered Existing Lines

Lines Coverage ∆ File
4
92.98
0.25% crates/qasm2/src/lex.rs
18
96.68
-1.39% crates/qasm2/src/parse.rs
Jobs
ID Job ID Ran Files Coverage
1 15170459616.1 21 May 2025 07:24PM UTC 789
88.11
GitHub Action Run
Source Files on build 15170459616
  • Tree
  • List 789
  • Changed 3
  • Source Changed 1
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #15170459616
  • d2d3cf79 on github
  • Prev Build on gh-readonly-queue/stable/2.0/pr-14420-95ea48f6828c8bd305cf0ae1d503020be7dd48cd (#15165191146)
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