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

Qiskit / qiskit / 10294991479 / 1
90%
main: 88%

Build:
Build:
LAST BUILD BRANCH: stable/2.3
DEFAULT BRANCH: main
Ran 08 Aug 2024 02:57AM UTC
Files 855
Run time 30s
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 02:37AM UTC coverage: 89.954% (-0.008%) from 89.962%
10294991479.1

push

github

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

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.

(cherry picked from commit fa5510c3a)

Co-authored-by: Matthew Treinish <mtreinish@kortar.org>

66739 of 74192 relevant lines covered (89.95%)

229291.46 hits per line

Source Files on job 10294991479.1
  • Tree
  • List 0
  • Changed 45
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 10294991479
  • 3e88060a on github
  • Prev Job for on gh-readonly-queue/stable/1.2/pr-12921-f1034e9c014a1ba705f0298c4c61102d0111b5cc (#10223000631.1)
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