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

Qiskit / qiskit / 25496719840
88%

Build:
DEFAULT BRANCH: main
Ran 07 May 2026 01:10PM UTC
Jobs 1
Files 938
Run time 3min
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

07 May 2026 12:18PM UTC coverage: 87.631% (+0.03%) from 87.598%
25496719840

push

github

web-flow
fix(library): clifford_6_4 template missing global_phase causes silent rejection (#15944)

* fix(library): clifford_6_4 template missing global_phase causes silent rejection

The SHSHSH template has gate unitary e^{i*pi/4}*I but lacked global_phase=-pi/4,
so Operator(clifford_6_4()) was not the identity matrix and TemplateOptimization
silently discarded the template on every run.

Set global_phase = -pi/4 so the full operator is exactly I.

Fixes #14538.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* docs: use RST hyperlinks for issue references in release notes

The :issue: role is not registered in this project's Sphinx config.
Use inline hyperlinks matching the existing convention in releasenotes/.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix(library): extend global_phase fix to rzx_xz, rzx_zz1, rzx_zz2, rzx_zz3 templates

The same missing global_phase bug present in clifford_6_4 also affected four
RZX templates. Each had gate content that implemented a non-trivial phase
times I, but lacked the compensating global_phase field, causing
TemplateOptimization to silently reject them.

Corrections:
  - rzx_xz:  global_phase = pi   (gate content e^{i*pi} * I)
  - rzx_zz1: global_phase = pi/2 (gate content e^{-i*pi/2} * I)
  - rzx_zz2: global_phase = pi   (gate content e^{i*pi} * I)
  - rzx_zz3: global_phase = pi   (gate content e^{i*pi} * I)

Also:
  - Strengthen test_templates.py identity check from equiv() to strict ==,
    making it a universal regression guard for all templates.
  - Replace test_template_optimization_accepts_clifford_6_4 with
    test_template_optimization_accepts_all_templates, covering every
    template in the library.
  - Move test_clifford_6_4_is_identity out of test_template_matching.py
    (now covered universally by test_templates.py).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* fix(library): add global_phase to five identity-only-up-to-phase templates

clifford_6_4, rzx_x... (continued)

6 of 6 new or added lines in 5 files covered. (100.0%)

3 existing lines in 2 files now uncovered.

106964 of 122062 relevant lines covered (87.63%)

964970.04 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
93.06
1.8% crates/qasm2/src/lex.rs
1
93.82
-0.24% crates/qasm2/src/expr.rs
Jobs
ID Job ID Ran Files Coverage
1 25496719840.1 07 May 2026 01:10PM UTC 938
87.63
GitHub Action Run
Source Files on build 25496719840
  • Tree
  • List 938
  • Changed 10
  • Source Changed 5
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25496719840
  • 4dbf157e on github
  • Prev Build on gh-readonly-queue/main/pr-15999-85125cb45744fa01e0ee370c0e6d4158921d1d27 (#25443939509)
  • Next Build on main (#25506018634)
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