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

Qiskit / qiskit / 10294359021
88%

Build:
DEFAULT BRANCH: main
Ran 08 Aug 2024 01:52AM UTC
Jobs 1
Files 859
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

08 Aug 2024 12:18AM UTC coverage: 89.738% (+0.002%) from 89.736%
10294359021

push

github

web-flow
Fix short circuit detection for basis translator (#12899)

The BasisTranslator transpiler pass has a check at the very start that
is designed to return fast if there is nothing to translate; in
other words if the instructions in the circuit are already a subset of
instructions supported by the target. This avoid doing a lot of
unecessary work to determine this later during the operation of the
pass. However, this check was not correctly constructed because of a
type mismatch and would only ever get triggered if the input circuit was
empty. The source basis is collected as a `Set[Tuple[str, int]]` where
each tuple is the name and num of qubits for each operation in the
circuit. While the target basis is just a `Set[str]` for the names
supported on the target. This mismatch caused the subset check to never
return True unless it was empty thereby bypassing the intent of the
short circuit path. This commit fixes the logic by constructing a
temporary set of just the source names to evaluate whether we should
return early or not.

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

18 existing lines in 3 files now uncovered.

67320 of 75018 relevant lines covered (89.74%)

386335.59 hits per line

Jobs
ID Job ID Ran Files Coverage
1 10294359021.1 08 Aug 2024 01:52AM UTC 0
89.74
GitHub Action Run
Source Files on build 10294359021
Detailed source file information is not available for this build.
  • Back to Repo
  • fa5510c3 on github
  • Prev Build on main (#10294091027)
  • Next Build on main (#10294759406)
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