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

Qiskit / qiskit / 15279236676
88%

Build:
DEFAULT BRANCH: main
Ran 27 May 2025 04:04PM UTC
Jobs 1
Files 810
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

27 May 2025 02:55PM UTC coverage: 88.328% (+0.02%) from 88.313%
15279236676

push

github

web-flow
Pre-allocate bits storage in CircuitData::new (#14463)

* Pre-allocate bits storage in CircuitData::new

When calling `CircuitData::new()` if the qubits or clbits arguments are
passed in as Some we know how large the allocation for the
ObjectRegistry and BitLocations objects are going to be. Right now we
don't preallocate this space and rely on the internal `HashMap`s and
`Vec`s to grow as we populate the mappings. This ends up being wasted
time as we reallocate the underlying storage. For very wide circuits
with a large number of qubits or clbits the extra allocation time can
be quite substantial relative to the other operations `new()` performs.
This commit fixes this issue by calling the `with_capacity()` methods if
qubits or clbits is set to preallocate the ObjectRegistry and
BitLocations.

* Simplify code

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

6 existing lines in 4 files now uncovered.

78476 of 88846 relevant lines covered (88.33%)

466628.59 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
94.23
-0.23% crates/qasm2/src/expr.rs
1
94.85
0.0% crates/transpiler/src/passes/unitary_synthesis.rs
2
75.07
-0.09% crates/circuit/src/symbol_expr.rs
2
92.98
1.0% crates/qasm2/src/lex.rs
Jobs
ID Job ID Ran Files Coverage
1 15279236676.1 27 May 2025 04:04PM UTC 810
88.33
GitHub Action Run
Source Files on build 15279236676
  • Tree
  • List 810
  • Changed 6
  • Source Changed 1
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #15279236676
  • 17f667b1 on github
  • Prev Build on main (#15270191611)
  • Next Build on main (#15280810625)
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

© 2025 Coveralls, Inc