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

Qiskit / qiskit / 10115263041
90%
main: 88%

Build:
Build:
LAST BUILD BRANCH: lightcone-fix
DEFAULT BRANCH: main
Ran 26 Jul 2024 05:55PM 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

26 Jul 2024 05:29PM UTC coverage: 89.744% (+0.001%) from 89.743%
10115263041

push

github

web-flow
Add a default optimization level to generate_preset_pass_manager (#12150)

* Add a default optimization level to generate_preset_pass_manager

This commit adds a default value to the generate_preset_pass_manager's
optimization_level argument. If it's not specified optimization level 2
will be used. After #12148 optimization level 2 is a better fit for an
optimal tradeoff between heuristic effort and runtime that makes it
well suited as a default optimization level.

* Update transpile()'s default opt level to match

This commit updates the transpile() function's optimization_level argument
default value to match generate_preset_pass_manager's new default to use 2
instead of 1. This is arguably a breaking API change, but since the
semantics are equivalent with two minor edge cases with implicit behavior
that were a side effect of the level 1 preset pass manager's construction
(which are documented in the release notes) we're ok making it in this
case. Some tests which we're relying on the implicit behavior of
optimization level 1 are updated to explicitly set the optimization
level argument which will retain this behavior.

* Update more tests expecting optimization level 1

* * Set optimization level to 1 in test_approximation_degree.

* Replace use of transpile with specific pass in  HLS tests.

* Set optimization_level=1 in layout-dependent tests.

* Expand upgrade note explanation on benefits of level 2

* Apply Elena's reno suggestions

---------

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

8 of 8 new or added lines in 2 files covered. (100.0%)

20 existing lines in 2 files now uncovered.

66780 of 74412 relevant lines covered (89.74%)

425067.24 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
93.38
1.02% crates/qasm2/src/lex.rs
18
96.69
-1.39% crates/qasm2/src/parse.rs
Jobs
ID Job ID Ran Files Coverage
1 10115263041.1 26 Jul 2024 05:55PM UTC 856
89.74
GitHub Action Run
Source Files on build 10115263041
  • Tree
  • List 856
  • Changed 51
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • c8c53cc6 on github
  • Prev Build on gh-readonly-queue/main/pr-12752-edf0b53a01b708f3ead6f1bdc50becac28bf59f1 (#10114110823)
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