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

Qiskit / qiskit / 27204478280
88%

Build:
DEFAULT BRANCH: main
Ran 09 Jun 2026 12:28PM UTC
Jobs 1
Files 946
Run time 3min
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

09 Jun 2026 11:32AM UTC coverage: 87.511% (-0.04%) from 87.546%
27204478280

push

github

web-flow
Parallelize unitary synthesis (#16275)

* Parallelize unitary synthesis

This commit parallelizes the UnitarySynthesis transpiler pass to perform
the synthesis in parallel. The DAG recreation still needs to be done
serially. When in parallel mode it will collect all the synthesis
results into a HashMap mapping the node indices of the unitary gates
to the synthesis output. The the dag is iterated over serially in
topological order to rebuild the dag and if the node is in the hashmap
it will insert the synthesis output instead of copying the original
node. The serial path runs the synthesis as it iterates over the dag
for recreation as before performing synthesis whenever it encounters a
unitary gate node. This speeds up the runtime of the pass as the
synthesis step is typically the bottleneck of the pass and not the dag
manipulation.

* Remove drain method and use into_data_iter

* Correctly handle failure to synthesize a 1q unitary

* Add release note

* Document the pass is multithreaded

* Add test with ParameterVector phase

* Add docstring for enum result variants

* Use a const for the parallel threshold value

* Add docstrings for private helper functions

* Document arguments to internal run_unitary_synthesis function

* Ensure we use parallel mode for tests

The parallel mode of the pass only runs if there are >50 nodes to
execute. This commit updates a couple of tests to test the pass
in parallel mode. One was specifically intended to test it in this mode
but was not using enough gates to trigger the parallelism.

* Update test/python/transpiler/test_unitary_synthesis.py

Co-authored-by: Shelly Garion <46566946+ShellyGarion@users.noreply.github.com>

---------

Co-authored-by: Shelly Garion <46566946+ShellyGarion@users.noreply.github.com>

339 of 424 new or added lines in 5 files covered. (79.95%)

11 existing lines in 4 files now uncovered.

110660 of 126453 relevant lines covered (87.51%)

954265.66 hits per line

Uncovered Changes

Lines Coverage ∆ File
81
87.75
-9.79% crates/transpiler/src/passes/unitary_synthesis/mod.rs
4
94.07
0.04% crates/transpiler/src/passes/split_2q_unitaries.rs

Coverage Regressions

Lines Coverage ∆ File
6
97.63
-0.47% crates/qasm2/src/parse.rs
3
92.29
0.26% crates/qasm2/src/lex.rs
1
91.03
0.0% crates/circuit/src/parameter/parameter_expression.rs
1
94.47
0.0% crates/transpiler/src/transpiler.rs
Jobs
ID Job ID Ran Files Coverage
1 27204478280.1 09 Jun 2026 12:28PM UTC 946
87.51
GitHub Action Run
Source Files on build 27204478280
  • Tree
  • List 946
  • Changed 11
  • Source Changed 7
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #27204478280
  • bac1f8c0 on github
  • Prev Build on gh-readonly-queue/main/pr-16394-73cbf738e90632833894cc4534c9d773c6e9e45a (#27195296113)
  • Next Build on main (#27221369166)
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