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

Qiskit / qiskit / 11052352075
88%

Build:
DEFAULT BRANCH: main
Ran 26 Sep 2024 01:08PM 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.786% (+0.05%) from 88.735%
11052352075

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%)

33 existing lines in 3 files now uncovered.

73902 of 83236 relevant lines covered (88.79%)

359939.16 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
4
91.98
0.25% crates/qasm2/src/lex.rs
12
97.15
0.0% crates/qasm2/src/parse.rs
17
87.84
0.8% crates/circuit/src/dag_circuit.rs
Jobs
ID Job ID Ran Files Coverage
1 11052352075.1 26 Sep 2024 01:08PM UTC 886
88.79
GitHub Action Run
Source Files on build 11052352075
  • Tree
  • List 886
  • Changed 63
  • Source Changed 0
  • Coverage Changed 8
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)
  • Next Build on main (#11060955806)
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