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

Qiskit / qiskit / 7492566045 / 1
89%
main: 88%

Build:
Build:
LAST BUILD BRANCH: protect-github-ref
DEFAULT BRANCH: main
Ran 11 Jan 2024 06:07PM UTC
Files 928
Run time 19s
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.302%. Remained the same
7492566045.1

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.

59517 of 66647 relevant lines covered (89.3%)

209143.26 hits per line

Source Files on job 7492566045.1
  • Tree
  • List 0
  • Changed 27
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 7492566045
  • 5d5bfa99 on github
  • Prev Job for on gh-readonly-queue/main/pr-11546-f06b9a47799b9c8f0f80c75ced747c0f990971a5 (#7492003623.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