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

Qiskit / qiskit / 7469929160
88%

Build:
DEFAULT BRANCH: main
Ran 10 Jan 2024 03:42AM UTC
Jobs 1
Files 991
Run time 1min
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

10 Jan 2024 02:28AM UTC coverage: 87.549% (-0.02%) from 87.573%
7469929160

push

github

web-flow
Fix quadratic construction time of `QuantumCircuit` (#11517)

* Fix quadratic construction time of `QuantumCircuit`

The current implementation of `CircuitData.add_qubit` (ditto `clbit`)
has linear time complexity because it reconstructs the list on each
addition, while the `CircuitData.qubits` getter silently clones the
list on return.  This was intended to avoid inadvertant Python-space
modifications from getting the Rust components out of sync, but in
practice, this cost being hidden in a standard attribute access makes it
very easy to introduce accidental quadratic dependencies.

In this case, `QuantumCircuit(num_qubits)` and subsequent
`qc.append(..., qc.qubits)` calls were accidentally quadratic in
`num_qubits` due to repeated accesses of `QuantumCircuit.qubits`.

* Restore explicit Python token

* Strengthen warnings

59802 of 68307 relevant lines covered (87.55%)

202966.11 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7469929160.1 10 Jan 2024 03:41AM UTC 0
87.55
GitHub Action Run
Source Files on build 7469929160
Detailed source file information is not available for this build.
  • Back to Repo
  • cb4762f7 on github
  • Prev Build on gh-readonly-queue/main/pr-11524-2d04bad46a46aa3c28a8955f2c86d7741a8bd92c (#7466972488)
  • Next Build on main (#7476756860)
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