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

Qiskit / qiskit / 10164682771
88%

Build:
DEFAULT BRANCH: main
Ran 30 Jul 2024 03:16PM UTC
Jobs 1
Files 857
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

30 Jul 2024 01:50PM UTC coverage: 89.781% (+0.001%) from 89.78%
10164682771

push

github

web-flow
Recreate full dag instead of inplace substitution in BasisTranslator (#12195)

* Recreate full dag instead of inplace substitution in BasisTranslator

This commit tweaks the internal logic of the basis translator transpiler
pass to do a full dag recreation instead of inplace modification. If
only a few operations were to be substituted it would probably be more
efficient to do an inplace modification, but in general the basis
translator ends up replacing far more operations than not. In such cases
just iterating over the dag and rebuilding it is more efficient because
the overhead of `apply_operation_back()` is minimal compared to
`substitute_node_with_dag()` (although it's higher than
`subtitute_node(.., inplace=True)`).

* Return boolean together with dag in 'apply_translation' to maintain original 'flow_blocks' logic and fix drawer test.

* Remove print

---------

Co-authored-by: Elena Peña Tapia <epenatap@gmail.com>

32 of 32 new or added lines in 1 file covered. (100.0%)

9 existing lines in 2 files now uncovered.

66981 of 74605 relevant lines covered (89.78%)

390762.71 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
3
92.98
0.75% crates/qasm2/src/lex.rs
6
97.61
-0.46% crates/qasm2/src/parse.rs
Jobs
ID Job ID Ran Files Coverage
1 10164682771.1 30 Jul 2024 03:16PM UTC 857
89.78
GitHub Action Run
Source Files on build 10164682771
  • Tree
  • List 857
  • Changed 48
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 37b334fb on github
  • Prev Build on gh-readonly-queue/main/pr-12774-239a669ab72527f2b6aec62eb8f1886dd493f14f (#10163237635)
  • Next Build on main (#10165229615)
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