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

sandialabs / LoQS / 27216768946
81%

Build:
DEFAULT BRANCH: main
Ran 09 Jun 2026 03:28PM UTC
Jobs 1
Files 55
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 Jun 2026 03:24PM UTC coverage: 80.916% (+5.3%) from 75.603%
27216768946

push

github

web-flow
Improved test coverage and refactor of STIMPhysicalCircuit (#86)

See the opening comment of https://github.com/sandialabs/LoQS/pull/86 for a detailed description of changes. The TL;DR is as follows.

### 1. Refactored `STIMPhysicalCircuit.__init__`. 

The original monolithic constructor is split into module-level helpers (`_get_used_stim_indices`, `_reindex_stim_circuit`, `_separate_stimcircuit_instruction`, `_replace_instruction_targets`, `_as_stim_circuit`, `_check_label_count`) and a much shorter dispatch body. Behavior is preserved; the goal is to make the STIM/string/STIMPhysicalCircuit input branches reviewable independently.

### 2. New test files for `stimcircuit.py`, `stimdictmodel.py`, `pygstitools`, and `qsimtools`. 

The `STIMPhysicalCircuit` tests are organized into four `unittest.TestCase` classes by concern: init, mutators, queries, and helpers.

### 3. Minor cleanups. 

Fixed README typo, `pygstitools` typo, and a couple of type-annotations.

945 of 1144 branches covered (82.6%)

Branch coverage included in aggregate %.

5203 of 6454 relevant lines covered (80.62%)

0.81 hits per line

Coverage Regressions

Lines Coverage ∆ File
22
91.63
69.5% backends/circuit/stimcircuit.py
19
60.0
0.69% backends/circuit/basecircuit.py
7
94.62
94.62% backends/model/stimdictmodel.py
6
77.08
0.0% backends/model/basemodel.py
5
59.26
50.0% tools/qsimtools.py
Jobs
ID Job ID Ran Files Coverage
1 27216768946.1 09 Jun 2026 03:28PM UTC 55
80.92
GitHub Action Run
Source Files on build 27216768946
  • Tree
  • List 55
  • 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 #27216768946
  • e6e5c357 on github
  • Prev Build on main (#26317764304)
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