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

Qiskit / qiskit / 6966472058
88%

Build:
DEFAULT BRANCH: main
Ran 23 Nov 2023 07:14AM UTC
Jobs 1
Files 1110
Run time 1min
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 Nov 2023 05:18AM UTC coverage: 86.44% (+0.01%) from 86.43%
6966472058

push

github

web-flow
Avoid routing 2q barriers in SabreSwap (#11295)

* Avoid routing 2q barriers in SabreSwap

This commit fixes an oversight in the sabre swap pass where a 2 qubit
barrier would have been treated like a 2 qubit gate and swaps could
potentially be inserted if the sabre algorithm thought it didn't have
connectivity for the qargs to the barrier. However as barrier is just
a compiler directive it is valid on all qubit pairs so this swap
insertion was unnecessary, it was still valid but just not an optimal
output. This commit fixes it by adding context to the sabre dag around
whether a given node is a directive (and valid on all qubits) or not.

* Update rust tests too

* Skip directives in extended set generation too

Co-authored-by: Kevin Hartman <kevin@hart.mn>

* Add release note

* Update test layout in test_layout_many_search_trials

This commit updates a layout in the:
`TestSabreLayout.test_layout_many_search_trials` test case which was
recently changed in #10323. The change in test ouput caused by #10323
is what triggered the investigation into this bugfix and now that
barriers are being treated correctly by sabre the layout doesn't change
in the test case anymore and this is reverting the test assertion to use
the original layout before #10323 was merged.

---------

Co-authored-by: Kevin Hartman <kevin@hart.mn>

36 of 36 new or added lines in 2 files covered. (100.0%)

14 existing lines in 3 files now uncovered.

66285 of 76683 relevant lines covered (86.44%)

248462.89 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
93.76
-0.24% crates/qasm2/src/expr.rs
1
91.16
0.51% crates/qasm2/src/lex.rs
12
97.13
0.46% crates/qasm2/src/parse.rs
Jobs
ID Job ID Ran Files Coverage
1 6966472058.1 23 Nov 2023 07:14AM UTC 1110
86.44
GitHub Action Run
Source Files on build 6966472058
  • Tree
  • List 1110
  • Changed 27
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 920fa57c on github
  • Prev Build on gh-readonly-queue/main/pr-11284-41b84b2b278cea2bb3472b137fc74da65e99fae5 (#6962696618)
  • Next Build on main (#6971580773)
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