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

Qiskit / qiskit / 16994827085 / 1
88%
main: 88%

Build:
DEFAULT BRANCH: main
Ran 15 Aug 2025 05:28PM UTC
Files 839
Run time 39s
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

15 Aug 2025 04:12PM UTC coverage: 88.285% (+0.005%) from 88.28%
16994827085.1

push

github

web-flow
Fix composition of `final_layout` (#14919)

The previous implementation had it backwards.  There are two ways to
think about the `final_layout`, which is a `Layout` object mapping
"virtual" objects (qubits at the start of the circuit) to "physical"
indices (qubits at the end of the circuit):

- It is a "goes to" permutation that you would _prepend_ to the
  _unrouted_ circuit to have the same effect as routing.

- It is a "comes from" permutation that you would _append_ to the
  _routed_ circuit to undo the effects of routing.

If you have permutation `A` that is already applied, and you're newly
applying permutation `B`, then in the first interpretation, you want to
transform
    A and then (B and then circuit)
into
    (A and then B) and then circuit.

In the second interpretation, you instead want to turn
    (circuit then "undo B") then "undo A"
into
    circuit then ("undo B" then "undo A")

The composition "undo B then undo A" is the same as "undo (A then B)"
by standard inverse rules.

In both cases, the logic is implemented as `previous.compose(new)` in
terms of `Layout.compose`.

87904 of 99568 relevant lines covered (88.29%)

510200.52 hits per line

Source Files on job 16994827085.1
  • Tree
  • List 839
  • Changed 7
  • Source Changed 4
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 16994827085
  • dfcc5c6c on github
  • Prev Job for on main (#16988215613.1)
  • Next Job for on main (#16996292033.1)
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