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

Qiskit / qiskit / 15079260336
88%

Build:
DEFAULT BRANCH: main
Ran 17 May 2025 12:08AM UTC
Jobs 1
Files 811
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

16 May 2025 11:01PM UTC coverage: 88.281% (-0.04%) from 88.321%
15079260336

push

github

web-flow
Revert "Port star_preroute to rust" (#14381)

* Revert "Port star_preroute to rust"

This commit reverts the move of star prerouting to run in Rust. At the
time of this commit it was before the majority of the transpiler
infrastructure was ported to rust. At that time the pass was ported we
had a few one off passes that were ported to rust and we had to manage
the Python rust boundary carefully. The pattern was typically to define
custom rust data types that provided an alternate view of the
DAGCircuit and the target for compilation that was built out of the
Python space dag and target. The star prerouting pass was ported to
Rust and leveraged the existing infrastructure used by SabreSwap and
SabreLayout as the function of the pass on a DAG was very similar to
Sabre (finding where to insert swaps and rebuilding the dag where
swaps are needed). At the time this was a pragmatic choice to
accelerate the pass and not need to wait for the needed infrastructure
to be written in Rust. However in practice the performance gains the
Rust porting of the algorithm provided were not as large as was
originally hoped and now the code of the pass is tied directly to
the current implementation of sabre. As the sabre interface layer is
being re-written in #14317 this is proving to be a blocker for that
effort. This commit reverts the current rust implementation to unblock
the sabre refactoring effort.

It's still definitely worth porting this pass to Rust but we now have
sufficient infrastructure in Rust to write full transpiler passes
without Python. We should follow up this PR and rewrite the star
prerouting pass so that full pass operates completely in rust and
directly leverages the native data structures that exist in Rust now
instead of the hybrid approach that ties the is tightly coupled to the
internals of the sabre pass.

This reverts commit b23c54523.

* Add back reverted alt text for plot in docs

49 of 50 new or added lines in 1 file covered. (98.0%)

39 existing lines in 5 files now uncovered.

78314 of 88710 relevant lines covered (88.28%)

427365.9 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
97.77
3.9% qiskit/transpiler/passes/routing/star_prerouting.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
75.58
0.27% crates/circuit/src/symbol_expr.rs
1
94.23
-0.23% crates/qasm2/src/expr.rs
1
94.85
0.0% crates/transpiler/src/passes/unitary_synthesis.rs
6
91.73
-0.5% crates/qasm2/src/lex.rs
30
95.76
-2.31% crates/qasm2/src/parse.rs
Jobs
ID Job ID Ran Files Coverage
1 15079260336.1 17 May 2025 12:08AM UTC 811
88.28
GitHub Action Run
Source Files on build 15079260336
  • Tree
  • List 811
  • Changed 8
  • Source Changed 3
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #15079260336
  • d4df68bc on github
  • Prev Build on gh-readonly-queue/main/pr-14392-3f97420ffdcd56dd62e908d6e60805dafa72df9d (#15077946299)
  • Next Build on main (#15094029635)
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