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

Qiskit / qiskit / 7493140312
88%

Build:
DEFAULT BRANCH: main
Ran 11 Jan 2024 07:01PM UTC
Jobs 1
Files 928
Run time 6min
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

11 Jan 2024 05:48PM UTC coverage: 89.285% (-0.02%) from 89.302%
7493140312

push

github

web-flow
Fix quadratic dependency in `QuantumCircuit.add_bits` (#11546)

This is in the Python space component only.  When `add_bits` is called
many times, it constructs as temporary set of the union of all qubits
and clbits present in the circuit in order to calculate an intersection
with the input.  This causes the method to be linear in the number of
bits already present in the circuit, whereas it should be amortised
linear in the _to be added_.

This commit fixes the intersection to be a manual calculation that does
not construct three temporary set objects, removing the quadratic cost.

59506 of 66647 relevant lines covered (89.29%)

209565.07 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7493140312.1 11 Jan 2024 07:01PM UTC 0
89.29
GitHub Action Run
Source Files on build 7493140312
Detailed source file information is not available for this build.
  • Back to Repo
  • 5d5bfa99 on github
  • Prev Build on main (#7492003623)
  • Next Build on main (#7495874156)
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