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

Qiskit / qiskit / 11460564193
88%

Build:
DEFAULT BRANCH: main
Ran 22 Oct 2024 01:12PM UTC
Jobs 1
Files 892
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

22 Oct 2024 12:09PM UTC coverage: 88.645% (+0.09%) from 88.552%
11460564193

push

github

web-flow
Add base representation of `SparseObservable` (#12671)

* Add base representation of `SparseObservable`

This adds the base representation of `SparseObservable`, including the
simple constructors from Python space and the ability to view the data
buffers.

This commit does not include the mathematical manipulations of the
operators, nor some of the helper methods that will be used to
manipulate the operators in the context of primitives execution. These
will follow in subsequent patches.

The design and implementation notes of `SparseObservable` are described
in a Qiskit RFC that preceeded this patch series[^1], and it's best to
consult that document for full details on the operator considerations.

[^1]: https://github.com/Qiskit/RFCs/blob/7a74b0879/0021-sparse-observable.md

* Rename `num_ops` to `num_terms`

* Fix typos and :us:

Co-authored-by: Julien Gacon <jul@zurich.ibm.com>

* Add additional documentation

* Fix tests of `num_terms`

* Add more documentation

* Fix error-message typo

Co-authored-by: Julien Gacon <jul@zurich.ibm.com>

---------

Co-authored-by: Julien Gacon <jul@zurich.ibm.com>

710 of 725 new or added lines in 4 files covered. (97.93%)

4 existing lines in 2 files now uncovered.

74581 of 84134 relevant lines covered (88.65%)

368043.63 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
15
97.92
crates/accelerate/src/sparse_observable.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
95.38
-0.77% qiskit/synthesis/two_qubit/xx_decompose/decomposer.py
3
92.73
0.5% crates/qasm2/src/lex.rs
Jobs
ID Job ID Ran Files Coverage
1 11460564193.1 22 Oct 2024 01:12PM UTC 892
88.65
GitHub Action Run
Source Files on build 11460564193
  • Tree
  • List 892
  • Changed 72
  • Source Changed 5
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #11460564193
  • 548c8576 on github
  • Prev Build on gh-readonly-queue/main/pr-13328-a9b8f4acda8dabf4e4acd8c97409f5d2344f92ea (#11445104263)
  • Next Build on main (#11461474832)
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