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

Qiskit / qiskit / 22686866880
88%

Build:
DEFAULT BRANCH: main
Ran 04 Mar 2026 08:33PM UTC
Jobs 1
Files 901
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

04 Mar 2026 07:36PM UTC coverage: 87.699% (-0.01%) from 87.713%
22686866880

push

github

web-flow
Add VF2PostLayout to the C Transpiler pipeline (#15151)

* Add VF2PostLayout to the C Transpiler pipeline

This commit adds the vf2 post layout transpiler pass to the rust
transpile() function used by qk_transpile() in C. This was not included
originally because there wasn't a path to running vf2postlayout from
rust before but since this has been added now we can run the pass as
part of the C transpilation.

One detail that was added as part of this the function for filling out a
post layout with idle physical qubits was missing from the vf2 post
implementation in rust since for the Python pass it was done Python side
still. This was added as a standalone function for rust since we need it
in rust, but the Python implementation still makes sense for the python
side.

* Use enum for layout source instead of boolean

* Remove reused vf2_config

* Fix lint

* Remove allocate_idle_qubits

After rebasing this and after simplifying the code this function is no
longer needed so we can remove it and rely on the pass code to return a
full layout.

* Fix: Add provisional arguments to C standalone stages
- Since the last time Matthew worked on this PR. All the standalone C API transpiler stages have been added, and they rely on the rust-side stages to function. Since this PR changes the arguments for certain stages. I have added provisional default values that may be removed in future iterations. These are based on the default settings of the transpiler.

* Fix: Add condition when running vf2
- An error in a previous implementation had the VF2 pass run only on optimization level 3 but had enabled configurations for 1 and 2. The confguration and run steps of the pass were moved outisde of this condition.
- VF2 is not used whenever we operate in optimization level 0, so another condition was added to only run the pass if the level is other than zero.

* Fix: Include idle qubits in vf2 mapping.
- The rust version of VF2Post forgets about the idle bits in the mappin... (continued)

72 of 81 new or added lines in 3 files covered. (88.89%)

34 existing lines in 5 files now uncovered.

100565 of 114671 relevant lines covered (87.7%)

1149552.51 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
9
93.19
-0.82% crates/transpiler/src/transpiler.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
55.91
0.59% crates/cext/src/transpiler/transpile_function.rs
1
96.02
-0.18% crates/transpiler/src/passes/unitary_synthesis/decomposers.rs
2
93.19
-0.82% crates/transpiler/src/transpiler.rs
6
92.03
-0.77% crates/qasm2/src/lex.rs
24
96.21
-1.9% crates/qasm2/src/parse.rs
Jobs
ID Job ID Ran Files Coverage
1 22686866880.1 04 Mar 2026 08:33PM UTC 901
87.7
GitHub Action Run
Source Files on build 22686866880
  • Tree
  • List 901
  • Changed 7
  • Source Changed 3
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #22686866880
  • 4c1fbfb3 on github
  • Prev Build on gh-readonly-queue/main/pr-15746-f31b52a55fd6720f0619537d71bdb37fa1c6f5d7 (#22670693117)
  • Next Build on main (#22689482378)
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