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

Qiskit / qiskit / 28574097334
88%
main: 88%

Build:
Build:
LAST BUILD BRANCH: gh-readonly-queue/stable/2.5/pr-16566-050f9097bdcbe7fff0305455b0e439581515d5a2
DEFAULT BRANCH: main
Ran 02 Jul 2026 08:19AM UTC
Jobs 1
Files 950
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

02 Jul 2026 07:47AM UTC coverage: 87.639% (+0.004%) from 87.635%
28574097334

push

github

web-flow
Fix `Initialize.gates_to_uncompute` for integer inputs  (#16492) (#16519)

* fix: Initialize.gates_to_uncompute preserves num_qubits for integer-bitmap inputs

Initialize.gates_to_uncompute() was rebuilding the uncomputation circuit
via Isometry(self.params, 0, 0). For amplitude-vector inputs this works
correctly, but for integer-bitmap inputs (e.g. Initialize(1, num_qubits=2))
self.params only contains the stored integer, so Isometry sees a length-1
vector and returns a 0-qubit circuit.

The fix delegates to self._stateprep.definition.inverse(), which is the
same StatePreparation path already used for the forward direction and
correctly handles all documented input forms including integer-bitmap.

Fixes #16413

* address review: move test to test_initializer.py and simplify release note

* address review: simplify test and fix release note link

Per @Cryoris's review on PR #16492:
- Removed the redundant amplitude-vector comparison in the regression
  test; that input form is already covered elsewhere.
- Removed unnecessary local import of Statevector, which is already
  imported at module level.
- Fixed the release note to use the proper issue-link RST syntax.

* fix: remove extra blank line (black formatting)

(cherry picked from commit df3079520)

Co-authored-by: Lojy Elkady <elkadylojain@gmail.com>

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

6 existing lines in 2 files now uncovered.

112778 of 128684 relevant lines covered (87.64%)

999130.42 hits per line

Coverage Regressions

Lines Coverage ∆ File
4
74.18
-0.12% crates/circuit/src/parameter/symbol_expr.rs
2
92.29
0.51% crates/qasm2/src/lex.rs
Jobs
ID Job ID Ran Files Coverage
1 28574097334.1 02 Jul 2026 08:18AM UTC 950
87.64
GitHub Action Run
Source Files on build 28574097334
  • Tree
  • List 950
  • Changed 5
  • Source Changed 1
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28574097334
  • c8de61d7 on github
  • Prev Build on gh-readonly-queue/stable/2.5/pr-16477-c24a8d5507db6379614ea5f6d7a6c99b6907a5b3 (#28573848747)
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