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

Qiskit / qiskit / 11051610630
89%
main: 88%

Build:
Build:
LAST BUILD BRANCH: substitute_pi4_rotations
DEFAULT BRANCH: main
Ran 26 Sep 2024 12:12PM UTC
Jobs 1
Files 886
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

26 Sep 2024 11:49AM UTC coverage: 88.795% (+0.06%) from 88.735%
11051610630

push

github

web-flow
Fully port BarrierBeforeFinalMeasurements to rust (#13220)

* Fully port BarrierBeforeFinalMeasurements to rust

This commit migrates the BarrierBeforeFinalMeasurements transpiler pass
to operate fully in Rust. The full path of the transpiler pass now never
leaves Rust until it has finished modifying the DAGCircuit. The one
exception is when the `label` is not set then we still call
`MergeAdjacentBarriers` in the python code of the pass.

This is the first step in the improvement of the performance of this
pass. We can easily leverage multhreading to potentially parallelize the
analysis portion of this pass that searches for the final operations and
returns the set of indices. But this is blocked on #13219 which prevents
us from accessing the PackedInstructions stored in the DAGCircuit in a
multithreaded context.

This commit also fixes an issue related to shared references in
the disjoint_utils module around barrier labels. The combine_barriers()
function was incorrectly mutating the label by reference which wouldn't
persist in the DAG, and this was causing failures after the barrier was
originally generated in Rust with this pass now.

Fixes #12253

* Remove unused imports

90 of 93 new or added lines in 6 files covered. (96.77%)

26 existing lines in 4 files now uncovered.

73909 of 83236 relevant lines covered (88.79%)

361853.77 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
96.83
-0.79% qiskit/transpiler/passes/layout/disjoint_utils.py
2
97.33
crates/accelerate/src/barrier_before_final_measurement.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
91.45
-0.06% crates/accelerate/src/two_qubit_decompose.rs
2
92.23
0.5% crates/qasm2/src/lex.rs
6
97.61
0.46% crates/qasm2/src/parse.rs
17
87.84
0.8% crates/circuit/src/dag_circuit.rs
Jobs
ID Job ID Ran Files Coverage
1 11051610630.1 26 Sep 2024 12:12PM UTC 886
88.79
GitHub Action Run
Source Files on build 11051610630
  • Tree
  • List 886
  • Changed 63
  • Source Changed 0
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • a0c3026b on github
  • Prev Build on gh-readonly-queue/main/pr-13224-a3015f76e04a4b8771342eddae5aaa68c046414d (#11051321121)
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