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

Qiskit / qiskit / 13817569079
88%
main: 88%

Build:
Build:
LAST BUILD BRANCH: substitute_pi4_rotations
DEFAULT BRANCH: main
Ran 12 Mar 2025 05:41PM UTC
Jobs 1
Files 788
Run time 48min
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

12 Mar 2025 04:49PM UTC coverage: 88.12% (-0.004%) from 88.124%
13817569079

push

github

web-flow
Fix string and standard gate mismatch in commutation checker (backport #13991) (#14004)

* Fix string and standard gate mismatch in commutation checker (#13991)

* Fix string and standard gate mismatch in commutation checker

This commit reworks the internals of the CommutationChecker to not rely
on operation name except for where we do a lookup by name in the
commutation library provided (which is the only key available to support
custom gates). This fixes the case where a custom gate that overloads
the standard gate name, previously the code would assume it to be a
standard gate and internally panic when it wasn't. When working with
standard gates (or standard instructions) we don't need to rely on
string matching because we can rely on the rust data model to do the
heavy lifting for us. This commit moves all the explicit handling of
standard gates to use the StandardGate type directly and makes this
logic more robust.

This also removes are usage of the once_cell library in
qiskit-accelerate because it was used to create a lazy static hashsets
of strings which are no longer needed because static lookup tables replace
this when we stopped using string comparisons.

Fixes #13988

* Rename is_commutation_skipped() is_parameterized()

(cherry picked from commit abb0cf9db)

# Conflicts:
#	crates/accelerate/src/commutation_checker.rs

* Update commutation_checker.rs

---------

Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
Co-authored-by: Elena Peña Tapia <57907331+ElePT@users.noreply.github.com>

47 of 91 new or added lines in 1 file covered. (51.65%)

8 existing lines in 3 files now uncovered.

72643 of 82436 relevant lines covered (88.12%)

499533.71 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
44
89.98
-7.14% crates/accelerate/src/commutation_checker.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
94.23
-0.23% crates/qasm2/src/expr.rs
3
91.27
0.98% crates/circuit/src/operations.rs
4
92.98
0.5% crates/qasm2/src/lex.rs
Jobs
ID Job ID Ran Files Coverage
1 13817569079.1 12 Mar 2025 05:41PM UTC 788
88.12
GitHub Action Run
Source Files on build 13817569079
  • Tree
  • List 788
  • Changed 5
  • Source Changed 1
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #13817569079
  • 3cb7e81a on github
  • Prev Build on stable/2.0 (#13794763546)
  • Next Build on stable/2.0 (#13821191064)
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