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

Qiskit / qiskit / 9784710891
90%
main: 88%

Build:
Build:
LAST BUILD BRANCH: gh-readonly-queue/main/pr-15290-cc8fe7838c3f27205c9b9a40d78c8bcd434d49fb
DEFAULT BRANCH: main
Ran 03 Jul 2024 09:18PM 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.846% (+0.001%) from 89.845%
9784710891

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%)

5 existing lines in 2 files now uncovered.

65135 of 72496 relevant lines covered (89.85%)

294751.16 hits per line

Jobs
ID Job ID Ran Files Coverage
1 9784710891.1 03 Jul 2024 09:18PM UTC 0
89.85
GitHub Action Run
Source Files on build 9784710891
Detailed source file information is not available for this build.
  • Back to Repo
  • 2c3ddf1e on github
  • Prev Build on main (#9783422262)
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