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

Qiskit / qiskit / 11459841372
89%
main: 88%

Build:
Build:
LAST BUILD BRANCH: substitute_pi4_rotations
DEFAULT BRANCH: main
Ran 22 Oct 2024 12:29PM 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.638% (+0.09%) from 88.552%
11459841372

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

16 existing lines in 4 files now uncovered.

74575 of 84134 relevant lines covered (88.64%)

367639.5 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
92.24
0.0% crates/accelerate/src/unitary_synthesis.rs
2
61.59
-0.35% qiskit/transpiler/passes/synthesis/unitary_synthesis.py
6
91.73
-0.5% crates/qasm2/src/lex.rs
7
90.77
-5.38% qiskit/synthesis/two_qubit/xx_decompose/decomposer.py
Jobs
ID Job ID Ran Files Coverage
1 11459841372.1 22 Oct 2024 12:29PM UTC 892
88.64
GitHub Action Run
Source Files on build 11459841372
  • Tree
  • List 892
  • Changed 68
  • Source Changed 5
  • Coverage Changed 12
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #11459841372
  • 548c8576 on github
  • Prev Build on gh-readonly-queue/main/pr-13328-a9b8f4acda8dabf4e4acd8c97409f5d2344f92ea (#11445104263)
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