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

Qiskit / qiskit / 16936597308
88%

Build:
DEFAULT BRANCH: main
Ran 13 Aug 2025 12:41PM UTC
Jobs 1
Files 837
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

13 Aug 2025 11:27AM UTC coverage: 88.239% (+0.6%) from 87.647%
16936597308

push

github

web-flow
Add standard commutation library generation to rust (#14830)

* Add standard commutation library generation to rust

This commit migrates the generation of the standard commutation library
to Rust. Previously the commutation library class was defined in rust
but our default library of commutations for standard gates without
parameters was defined as a Python dictionary. This dictionary was
actually auto generate by a script tools/build_standard_commutations.py.
This commit updates the script to generate a rust module building the
library object instead of a python module containing a dictionary.
The generated rust code compiles, but does not apply rustfmt or a
copyright header as one is automated and the other can be easily added
after generated. The Python code is then updated to export the rust
generated library instead of one generated in Python. Having this in
Rust will then enable us to use the standard library from C in addition
to Python.

One note is while we are no longer using the standard commutation python
dict it was left in place for backwards compatibility

Fixes #14813

* Apply suggestions from code review

Co-authored-by: Julien Gacon <gaconju@gmail.com>

---------

Co-authored-by: Julien Gacon <gaconju@gmail.com>

4688 of 4692 new or added lines in 3 files covered. (99.91%)

9 existing lines in 3 files now uncovered.

87079 of 98685 relevant lines covered (88.24%)

518851.69 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
4
88.44
-0.19% crates/transpiler/src/commutation_checker.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
92.24
-0.1% crates/transpiler/src/passes/unitary_synthesis.rs
2
92.01
0.77% crates/qasm2/src/lex.rs
6
96.62
0.47% crates/qasm2/src/parse.rs
Jobs
ID Job ID Ran Files Coverage
1 16936597308.1 13 Aug 2025 12:41PM UTC 837
88.24
GitHub Action Run
Source Files on build 16936597308
  • Tree
  • List 837
  • Changed 6
  • Source Changed 2
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #16936597308
  • 4633af02 on github
  • Prev Build on gh-readonly-queue/main/pr-14888-c8979f35667c7d3e145a3b6d742368e8bd178046 (#16934483819)
  • Next Build on main (#16938075983)
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