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

Qiskit / qiskit / 28572788344
88%

Build:
DEFAULT BRANCH: main
Ran 02 Jul 2026 07:59AM 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 06:57AM UTC coverage: 87.638% (-0.02%) from 87.656%
28572788344

push

github

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

* 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)

112787 of 128697 relevant lines covered (87.64%)

999030.01 hits per line

Coverage Regressions

Lines Coverage ∆ File
12
96.68
-0.95% crates/qasm2/src/parse.rs
8
74.8
-0.33% crates/circuit/src/parameter/symbol_expr.rs
4
91.52
-0.51% crates/qasm2/src/lex.rs
1
93.88
-0.24% crates/qasm2/src/expr.rs
Jobs
ID Job ID Ran Files Coverage
1 28572788344.1 02 Jul 2026 07:58AM UTC 950
87.64
GitHub Action Run
Source Files on build 28572788344
  • 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 #28572788344
  • df307952 on github
  • Prev Build on gh-readonly-queue/main/pr-16514-c6bb9e1135c5c08c1431205bf3992aee53f28bdc (#28568330224)
  • Next Build on main (#28575391554)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc