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

sandialabs / LoQS / 42656922475
90%

Build:
DEFAULT BRANCH: main
Ran 09 Nov 2026 04:51PM UTC
Jobs 1
Files 85
Run time 1min
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

09 Nov 2026 04:39PM UTC coverage: 89.384% (+0.02%) from 89.367%
42656922475

push

github

web-flow
Fix `History` copy and decode bookkeeping, stale lazy shots, and small core bugs (#173)

* Keep History bookkeeping through copy, decode and append

A copied or decoded History lost its frames' expiry and no-serialize
bookkeeping, so stale reads gave no warning and rewrites grew (#157).

- Copying a History gives it frames of its own and its expiry
  locations, so a QuantumProgram given a History initial history warns.
- Decoding restores the stored frames instead of appending them again,
  so a read-back history hashes equal to the one written.
- Frame.update keeps no-serialize marks; append expires through
  Frame.expire, and no_serialize skips a key that is already marked.
- Minor: round-trip, copy, rebuild and run tests; checkpoint test
  compares whole histories; docstrings.

Co-authored-by: claude-sonnet-5-5 <noreply@anthropic.com>
Co-authored-by: claude-opus-5-5 <noreply@anthropic.com>

* Fix stale lazy shots, QSim copies and small bugs (#157)

A replaced shot no longer reads back stale, a copied QSim state no
longer shares pending gates, and inputs that failed now work or fail up
front.

- add_shot drops a replaced shot's lazily read cache entry, so
  get_shot_history returns the new shot, as collect_shot_data does.
- QSimQuantumState(other_state) deep-copies its source, as copy() does.
- Repeat-until-success map_qubits maps expected only when it's a
  MeasurementOutcomes, so the default bool expected works.
- ProgramResults refuses max_memory_shots below 1 with ValueError, and
  MeasurementOutcomes accepts NumPy integer and bool scalars.
- Minor: the invalid-index error names its instruction; docstrings;
  tests; CHANGELOG entry for #157.

Co-authored-by: claude-sonnet-5-5 <noreply@anthropic.com>
Co-authored-by: claude-opus-5-5 <noreply@anthropic.com>

* Expire stale state in a History initial history

A QuantumProgram given a History initial history that didn't expire
state now warns on reads of that state after a run, as it does for a
list ... (continued)

3789 of 4508 branches covered (84.05%)

Branch coverage included in aggregate %.

12301 of 13493 relevant lines covered (91.17%)

0.91 hits per line

Coverage Regressions

Lines Coverage ∆ File
24
93.09
0.16% core/quantumprogram.py
17
83.93
0.0% internal/encoder/baseencoder.py
11
93.93
0.16% core/programresults.py
8
89.19
1.52% core/history.py
3
92.86
0.13% core/recordables/measurementoutcomes.py
3
91.32
-0.38% internal/serializable.py
Jobs
ID Job ID Ran Files Coverage
1 42656922475.1 09 Nov 2026 04:51PM UTC 85
89.38
GitHub Action Run
Source Files on build 42656922475
  • Tree
  • List 85
  • Changed 8
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #42656922475
  • d55e55da on github
  • Prev Build on main (#42178660578)
  • Next Build on main (#42695555994)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc