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

Qiskit / qiskit / 10144623619
90%
main: 88%

Build:
Build:
LAST BUILD BRANCH: add-pauli-lindblad-map-generators-15228
DEFAULT BRANCH: main
Ran 29 Jul 2024 01:14PM UTC
Jobs 1
Files 856
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

29 Jul 2024 12:50PM UTC coverage: 89.751% (+0.02%) from 89.733%
10144623619

push

github

web-flow
Add config option to leverage all cores for sabre (#12780)

* Add config option to leverage all cores for sabre

By default when running sabre in parallel we use a fixed number of
threads (depending on optimization level). This was a tradeoff made for
having deterministic results across multiple systems with a fixed seed
set. However when running qiskit on systems with a lot of CPUs
available we're leaving potential performance on the table by not using
all the available cores. This new flag lets users opt-in to running
sabre with n trials for n CPUs to potentially get better output results
from the transpiler, with minimal to no runtime overhead, at the cost of
the results not necessarily being reproducible when run on a different
computer.

* Apply suggestions from code review

Co-authored-by: Elena Peña Tapia <57907331+ElePT@users.noreply.github.com>

* Rework logic to use the default if larger than CPU_COUNT

This commit refactors the logic added in the previous commit to a single
helper function. This reduces the code duplication and makes it easier
to work with. While doing this the logic has been updated so that when
the flag is set and the default number of trials is larger than the
CPU_COUNT we use the default. This means the logic when the flag is set
is to run `max(default_trials, CPU_COUNT)` which should better match
user expectations around the flag.

---------

Co-authored-by: Elena Peña Tapia <57907331+ElePT@users.noreply.github.com>

19 of 22 new or added lines in 2 files covered. (86.36%)

12 existing lines in 3 files now uncovered.

66831 of 74463 relevant lines covered (89.75%)

395720.99 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
87.88
-0.66% qiskit/user_config.py
2
96.68
-0.44% qiskit/transpiler/preset_passmanagers/builtin_plugins.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
96.68
-0.44% qiskit/transpiler/preset_passmanagers/builtin_plugins.py
5
92.62
0.51% crates/qasm2/src/lex.rs
6
97.61
0.92% crates/qasm2/src/parse.rs
Jobs
ID Job ID Ran Files Coverage
1 10144623619.1 29 Jul 2024 01:14PM UTC 856
89.75
GitHub Action Run
Source Files on build 10144623619
  • Tree
  • List 856
  • Changed 47
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • f8ac2ad2 on github
  • Prev Build on gh-readonly-queue/main/pr-12660-0c03808cd177c857a3458df7e58ca9e800185577 (#10142516399)
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