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

Qiskit / qiskit / 16994167638
88%
main: 88%

Build:
Build:
LAST BUILD BRANCH: substitute_pi4_rotations
DEFAULT BRANCH: main
Ran 15 Aug 2025 04:52PM UTC
Jobs 1
Files 839
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

15 Aug 2025 04:12PM UTC coverage: 88.297% (+0.02%) from 88.28%
16994167638

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`.

2 of 4 new or added lines in 3 files covered. (50.0%)

6 existing lines in 3 files now uncovered.

87916 of 99568 relevant lines covered (88.3%)

510210.16 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
93.33
0.0% qiskit/transpiler/passes/layout/sabre_layout.py
1
92.11
1.32% qiskit/transpiler/passes/routing/basic_swap.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
83.39
0.0% crates/circuit/src/parameter/parameter_expression.rs
1
74.74
0.29% crates/circuit/src/parameter/symbol_expr.rs
4
92.01
0.0% crates/qasm2/src/lex.rs
Jobs
ID Job ID Ran Files Coverage
1 16994167638.1 15 Aug 2025 04:52PM UTC 839
88.3
GitHub Action Run
Source Files on build 16994167638
  • Tree
  • List 839
  • Changed 8
  • Source Changed 4
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #16994167638
  • dfcc5c6c on github
  • Prev Build on gh-readonly-queue/main/pr-14763-30e5545283604d5ceb1f74286524d14eec558f79 (#16988215613)
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