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

Qiskit / qiskit / 8927938987
90%
main: 88%

Build:
Build:
LAST BUILD BRANCH: unitary-synthesis
DEFAULT BRANCH: main
Ran 02 May 2024 05:42PM UTC
Jobs 1
Files 831
Run time 3min
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

02 May 2024 05:25PM UTC coverage: 89.605% (-0.005%) from 89.61%
8927938987

push

github

web-flow
Add star to linear pre-routing pass (#11387)

* Add Star to linear pre-routing pass

This commit adds a new transpiler pass StarPreRouting that adds a
dedicated transformation that finds a star graph connectivity subcircuit
and replaces it with a linear routing equivalent. This makes the circuit
easier for a routing pass to work with.

* Add missing doc imports

* Fix handling of 1q gates and swap tracking

This commit fixes two related issues. The first is that it fixed the
handling of 1q gates in the middle of a star sequence. The sequence
collection was correctly skipping the 1q gates, but when we reassembled
the circuit and applied the linear routing it would incorrectly build
the routing without the 1q gates. This would result in the 1q gates
being pushed after the star. At the same time the other related issue
was that the permutations caused by the swap insertions were not taken
into account for subsequent gates. This would result in gates being
placed on the wrong bits and incorrect results being returned.

* fixed/tested star-prerouting

* Apply suggestions from code review

* changed moved self.dag to a function parameter

* Removing the usage of FinalizeLayout in star prerouting tests

* format

---------

Co-authored-by: Sebastian Brandhofer <148463728+sbrandhsn@users.noreply.github.com>

175 of 180 new or added lines in 3 files covered. (97.22%)

24 existing lines in 2 files now uncovered.

62109 of 69314 relevant lines covered (89.61%)

228873.4 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
5
97.19
qiskit/transpiler/passes/routing/star_prerouting.py

Uncovered Existing Lines

Lines Coverage ∆ File
6
92.62
0.25% crates/qasm2/src/lex.rs
18
96.69
-1.39% crates/qasm2/src/parse.rs
Jobs
ID Job ID Ran Files Coverage
1 8927938987.1 02 May 2024 05:41PM UTC 831
89.61
GitHub Action Run
Source Files on build 8927938987
  • Tree
  • List 831
  • Changed 31
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • f34fb212 on github
  • Prev Build on main (#8927155093)
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