Open jakelishman opened 5 days ago
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
crates/accelerate/src/euler_one_qubit_decomposer.rs | 3 | 9 | 33.33% | ||
crates/accelerate/src/two_qubit_decompose.rs | 3 | 9 | 33.33% | ||
crates/circuit/src/circuit_data.rs | 82 | 93 | 88.17% | ||
crates/circuit/src/slice.rs | 106 | 129 | 82.17% | ||
crates/accelerate/src/sparse_observable.rs | 54 | 399 | 13.53% | ||
<!-- | Total: | 251 | 642 | 39.1% | --> |
Files with Coverage Reduction | New Missed Lines | % | ||
---|---|---|---|---|
crates/qasm2/src/expr.rs | 1 | 94.02% | ||
crates/qasm2/src/lex.rs | 5 | 92.37% | ||
crates/qasm2/src/parse.rs | 12 | 97.15% | ||
<!-- | Total: | 18 | --> |
Totals | |
---|---|
Change from base Build 9683280067: | -0.4% |
Covered Lines: | 63894 |
Relevant Lines: | 71496 |
Summary
This adds the very base representation of
SparseObservable
, including the lowest-level constructor from Python space and the ability to view the data buffers. It does not add any of the means to calculate with it, nor any of the high-level interfaces to construction.This WIP commit will be amended to at least add documentation and tests of the contents.
Details and comments
This is the beginnings of the implementation of Qiskit/RFCs#74, and subject to change based on decisions made there.
A current simple example of what works with the PR:
This PR depends on #12669.