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

Qiskit / qiskit / 17041136902
88%
main: 88%

Build:
Build:
LAST BUILD BRANCH: substitute_pi4_rotations
DEFAULT BRANCH: main
Ran 18 Aug 2025 01:23PM UTC
Jobs 1
Files 827
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

18 Aug 2025 12:20PM UTC coverage: 87.727% (-0.02%) from 87.744%
17041136902

push

github

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

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

Co-authored-by: Jake Lishman <jake.lishman@ibm.com>

3 of 5 new or added lines in 4 files covered. (60.0%)

21 existing lines in 4 files now uncovered.

80006 of 91199 relevant lines covered (87.73%)

512755.97 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
94.44
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
93.67
-0.24% crates/qasm2/src/expr.rs
4
73.82
-0.17% crates/circuit/src/symbol_expr.rs
4
92.01
-0.77% crates/qasm2/src/lex.rs
12
96.62
-0.94% crates/qasm2/src/parse.rs
Jobs
ID Job ID Ran Files Coverage
1 17041136902.1 18 Aug 2025 01:23PM UTC 827
87.73
GitHub Action Run
Source Files on build 17041136902
  • Tree
  • List 827
  • Changed 8
  • Source Changed 4
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #17041136902
  • 5a2a9c4e on github
  • Prev Build on gh-readonly-queue/stable/2.1/pr-14882-d5ea21ea832a331db77eccbadf63b6f8742fa7f6 (#17036916157)
  • Next Build on stable/2.1 (#17068190916)
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