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

Qiskit / qiskit / 13813281684
88%

Build:
DEFAULT BRANCH: main
Ran 12 Mar 2025 02:24PM UTC
Jobs 1
Files 788
Run time 4min
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 01:27PM UTC coverage: 88.12% (-0.01%) from 88.134%
13813281684

push

github

web-flow
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()

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

9 existing lines in 2 files now uncovered.

72664 of 82460 relevant lines covered (88.12%)

497344.61 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
3
91.27
0.98% crates/circuit/src/operations.rs
6
91.98
-0.25% crates/qasm2/src/lex.rs
Jobs
ID Job ID Ran Files Coverage
1 13813281684.1 12 Mar 2025 02:24PM UTC 788
88.12
GitHub Action Run
Source Files on build 13813281684
  • Tree
  • List 788
  • Changed 4
  • Source Changed 1
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #13813281684
  • abb0cf9d on github
  • Prev Build on main (#13796441242)
  • Next Build on main (#13816498497)
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

© 2025 Coveralls, Inc