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

Qiskit / qiskit / 9785044203
88%

Build:
DEFAULT BRANCH: main
Ran 03 Jul 2024 09:49PM UTC
Jobs 1
Files 848
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

03 Jul 2024 08:56PM UTC coverage: 89.844% (-0.001%) from 89.845%
9785044203

push

github

web-flow
Optimize DAGCircuit.collect_1q_runs() filter function (#12719)

In the recently merged #12650 a new rust function was added for the
filter function of the collect_1q_runs() method's internal filter
function. As part of this we need to do exclude any non-DAGOpNode dag
nodes passed to the filter function. This was previously implemented
using the pyo3 extract() method so that if the pyobject can be coerced
into a DAGOpNode for later use we continue but if it errors we know the
input object is not a DAGOpNode and return false. However, as we don't
need to return the error to python we should be using downcast instead
of extract (as per the pyo3 performance guide [1]) to avoid the error
conversion cost. This was an oversight in #12650 and I only used
extract() out of habit.

[1] https://pyo3.rs/v0.22.0/performance#extract-versus-downcast

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

6 existing lines in 2 files now uncovered.

65133 of 72496 relevant lines covered (89.84%)

294607.01 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
88.35
-0.36% qiskit/transpiler/passes/synthesis/unitary_synthesis.py
4
92.88
0.25% crates/qasm2/src/lex.rs
Jobs
ID Job ID Ran Files Coverage
1 9785044203.1 03 Jul 2024 09:49PM UTC 848
89.84
GitHub Action Run
Source Files on build 9785044203
  • Tree
  • List 848
  • Changed 41
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 2c3ddf1e on github
  • Prev Build on main (#9783422262)
  • Next Build on main (#9792489436)
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