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

Qiskit / qiskit / 11613373021
88%

Build:
DEFAULT BRANCH: main
Ran 31 Oct 2024 02:22PM UTC
Jobs 1
Files 896
Run time 3min
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

31 Oct 2024 01:25PM UTC coverage: 88.727% (-0.009%) from 88.736%
11613373021

push

github

web-flow
Optimise `SparsePauliOp.from_operator` (#11557)

* Optimise `SparsePauliOp.from_operator`

This rewrites the `from_operator` handling (again!) from the initial
Rust implementation of the recursive matrix-addition form into an
iterative approach that re-uses the same scratch memory all the way
down.  This is significantly faster, and allocates far less often,
although in practice the peak heap memory usage will be not dissimilar.

The algorithm is rewritten to be a manual stack-based iteration, rather
than a functional recursion.  The size of a single stack entry in the
iteration is one `usize`, which is drastically smaller than whatever
per-function-call stack will have been used before.

* Improve documentation

* Increase test coverage

316 of 338 new or added lines in 1 file covered. (93.49%)

27 existing lines in 2 files now uncovered.

75943 of 85592 relevant lines covered (88.73%)

360489.33 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
22
93.51
0.33% crates/accelerate/src/sparse_pauli_op.rs

Uncovered Existing Lines

Lines Coverage ∆ File
3
92.48
0.75% crates/qasm2/src/lex.rs
24
96.23
-1.85% crates/qasm2/src/parse.rs
Jobs
ID Job ID Ran Files Coverage
1 11613373021.1 31 Oct 2024 02:22PM UTC 896
88.73
GitHub Action Run
Source Files on build 11613373021
  • Tree
  • List 896
  • Changed 66
  • Source Changed 1
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #11613373021
  • 4e6fd361 on github
  • Prev Build on gh-readonly-queue/main/pr-13384-8a97ef750f6a94c5b4ae421bad6c0336b1ae49d2 (#11610421903)
  • Next Build on main (#11613885904)
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