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

Qiskit / qiskit / 28571573955
88%
main: 88%

Build:
Build:
LAST BUILD BRANCH: c-custom-gates
DEFAULT BRANCH: main
Ran 02 Jul 2026 07:27AM 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.642% (-0.01%) from 87.656%
28571573955

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)

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

28 existing lines in 5 files now uncovered.

112793 of 128697 relevant lines covered (87.64%)

994618.39 hits per line

Coverage Regressions

Lines Coverage ∆ File
18
96.68
-0.95% crates/qasm2/src/parse.rs
4
74.96
-0.16% crates/circuit/src/parameter/symbol_expr.rs
4
92.03
0.0% crates/qasm2/src/lex.rs
1
90.33
0.0% crates/circuit/src/parameter/parameter_expression.rs
1
93.88
-0.24% crates/qasm2/src/expr.rs
Jobs
ID Job ID Ran Files Coverage
1 28571573955.1 02 Jul 2026 07:27AM UTC 950
87.64
GitHub Action Run
Source Files on build 28571573955
  • Tree
  • List 950
  • Changed 6
  • Source Changed 1
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28571573955
  • df307952 on github
  • Prev Build on gh-readonly-queue/main/pr-16514-c6bb9e1135c5c08c1431205bf3992aee53f28bdc (#28568330224)
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