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

Qiskit / qiskit / 16481061798
88%
main: 88%

Build:
Build:
LAST BUILD BRANCH: substitute_pi4_rotations
DEFAULT BRANCH: main
Ran 23 Jul 2025 08:55PM UTC
Jobs 1
Files 831
Run time 2min
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

23 Jul 2025 08:24PM UTC coverage: 87.759% (-0.002%) from 87.761%
16481061798

push

github

web-flow
Remove Python dependency from ElidePermutations (#14669)

* Remove Python dependency from ElidePermutations

The ElidePermutations pass previously required the py token when calling
the function. This was needed for two things, one is calling count_ops()
the other is handling permutation gates. The count ops call doesn't
actually need a python token. It was calling the wrong function, since
elide permutation doesn't deal with recursing into control flow it doesn't
recurse into blocks to detect if there are permutation gates. The py
token on the call it was making was to facilitate recursing into control
flow (which is defined in python). Instead this commit just updates the
usage to get the reference to the counts hashmap directly. The second
usage of handling permutation gates is still needed. That's because
permutation gate is an operation defined in Python so to access the
permutation from the gate we need python. If we are calling the pass
from C this means we can't encounter this branch because by definition
we can't have a permutation gate. So this moves the Python token usage to
inside the permutation gate branch with `Python::with_gil()` so the
path without a permutation gate doesn't require python.

This should enable exposing the pass as a standalone function (see: #14442)
but tihs is currently blocked on being able to run dag->circuit
conversion without python. Once that is implemented we can add a C API
for the standalone pass.

* Change condition on rust types instead of strings

* Simplifiy code

23 of 24 new or added lines in 1 file covered. (95.83%)

12 existing lines in 2 files now uncovered.

81497 of 92865 relevant lines covered (87.76%)

546215.52 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
94.92
0.0% crates/transpiler/src/passes/elide_permutations.rs

Uncovered Existing Lines

Lines Coverage ∆ File
6
73.73
-0.25% crates/circuit/src/symbol_expr.rs
6
91.75
-0.52% crates/qasm2/src/lex.rs
Jobs
ID Job ID Ran Files Coverage
1 16481061798.1 23 Jul 2025 08:55PM UTC 831
87.76
GitHub Action Run
Source Files on build 16481061798
  • Tree
  • List 831
  • Changed 4
  • Source Changed 1
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #16481061798
  • 1dc862b9 on github
  • Prev Build on gh-readonly-queue/main/pr-14700-e0a75a69ac06ea3de05e45143c9edf79270b31f9 (#16475277095)
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