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

Qiskit / qiskit / 11612784879
89%
main: 88%

Build:
Build:
LAST BUILD BRANCH: stable/2.3
DEFAULT BRANCH: main
Ran 31 Oct 2024 01:46PM UTC
Jobs 1
Files 896
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

31 Oct 2024 01:25PM UTC coverage: 88.729% (-0.007%) from 88.736%
11612784879

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%)

23 existing lines in 4 files now uncovered.

75945 of 85592 relevant lines covered (88.73%)

362807.77 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
2
58.05
-0.35% qiskit/transpiler/passes/synthesis/unitary_synthesis.py
3
92.23
0.5% crates/qasm2/src/lex.rs
6
90.77
-4.62% qiskit/synthesis/two_qubit/xx_decompose/decomposer.py
12
97.15
-0.92% crates/qasm2/src/parse.rs
Jobs
ID Job ID Ran Files Coverage
1 11612784879.1 31 Oct 2024 01:46PM UTC 896
88.73
GitHub Action Run
Source Files on build 11612784879
  • Tree
  • List 896
  • Changed 64
  • Source Changed 1
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #11612784879
  • 4e6fd361 on github
  • Prev Build on gh-readonly-queue/main/pr-13384-8a97ef750f6a94c5b4ae421bad6c0336b1ae49d2 (#11610421903)
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