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

Qiskit / qiskit-ibm-runtime / 38712388204
91%
main: 91%

Build:
Build:
LAST BUILD BRANCH: docal
DEFAULT BRANCH: main
Ran 15 Oct 2026 09:26AM UTC
Jobs 11
Files 331
Run time 1min
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

15 Oct 2026 09:21AM UTC coverage: 91.09% (-0.001%) from 91.091%
38712388204

push

github

web-flow
Fix FoldRzz pass to respect target (#3489)

<!--
⚠️ The pull request title should be short detailed and understandable
for all.
⚠️ Also, please add a release note file using towncrier if the change
needs to
  be documented in the release notes.
⚠️ If your pull request fixes an open issue, please link to the issue.

✅ I have added the tests to cover my changes.
✅ I have updated the documentation accordingly.
✅ I have read the CONTRIBUTING document.
-->

### Summary

The `FoldRZZ` pass and by extension the `rzz_wrapper()` function were
previously incorrectly appending a global phase gate to the circuits
they output. No IBM backend (both current and historical) supports a
`GlobalPhaseGate` in the ISA and as a target aware pass used for gate
translation it was invalid to inject the gate not supported by the
target. Running this pass in any compilation targeting an IBM backend
results in an invalid compilation that could not be run on IBM hardware.
Adding a `GlobalPhase` gate was presumably done to track the global
phase adjustment needed by the angle wrapping, however there is a
simpler way this could have been accomplished by just adjust the
`global_phase` attribute of the output circuit. This commit makes this
adjustment to all the places in the `FoldRZZ` path that were previously
using `GlobalPhaseGate` and changes it to adjust the global phase
directly, avoiding inserting invalid gates into the circuit (and also
speeding up the pass).

At the same time this commit updates the `rzz_wrapper()` function, which
is registered in the default `WrapAngleRegistry` to avoid needlessly
instantiating the `FoldRZZ` pass class. The function is solely calling
static methods defined on the class that don't require an instance of
the pass. We can just call the method on the class and avoid the
overhead of create and destroying an object on every call. This is
technically an unrelated change and can be split out into a separate PR
if desired, but since it was a small c... (continued)

6 of 10 new or added lines in 2 files covered. (60.0%)

8649 of 9495 relevant lines covered (91.09%)

9.95 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
88.11
-0.08% qiskit_ibm_runtime/utils/backend_converter.py
Jobs
ID Job ID Ran Files Coverage
1 unit-tests_python3.12-macos-latest - 38712388204.1 15 Oct 2026 09:26AM UTC 331
91.08
GitHub Action Run
2 unit-tests_python3.11-windows-latest - 38712388204.2 15 Oct 2026 09:28AM UTC 331
89.4
GitHub Action Run
3 unit-tests_python3.12-windows-latest - 38712388204.3 15 Oct 2026 09:30AM UTC 331
89.4
GitHub Action Run
4 unit-tests_python3.11-ubuntu-latest - 38712388204.4 15 Oct 2026 09:26AM UTC 331
91.08
GitHub Action Run
5 unit-tests_python3.10-ubuntu-latest - 38712388204.5 15 Oct 2026 09:27AM UTC 331
91.08
GitHub Action Run
6 unit-tests_python3.13-windows-latest - 38712388204.6 15 Oct 2026 09:28AM UTC 331
89.4
GitHub Action Run
7 unit-tests_python3.11-macos-latest - 38712388204.7 15 Oct 2026 09:27AM UTC 331
91.08
GitHub Action Run
8 unit-tests_python3.13-ubuntu-latest - 38712388204.8 15 Oct 2026 09:27AM UTC 331
91.08
GitHub Action Run
9 unit-tests_python3.13-macos-latest - 38712388204.9 15 Oct 2026 09:26AM UTC 331
91.08
GitHub Action Run
10 unit-tests_python3.10-windows-latest - 38712388204.10 15 Oct 2026 09:29AM UTC 331
89.4
GitHub Action Run
11 unit-tests_python3.12-ubuntu-latest - 38712388204.11 15 Oct 2026 09:27AM UTC 331
91.08
GitHub Action Run
Source Files on build 38712388204
  • Tree
  • List 331
  • Changed 2
  • Source Changed 2
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #38712388204
  • d0631bf7 on github
  • Prev Build on gh-readonly-queue/main/pr-3484-ed924c1dbb7da3020aa05444a17333096042b804 (#38606838609)
  • Delete
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