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

Qiskit / qiskit-fermions / 30361090251
98%

Build:
DEFAULT BRANCH: main
Ran 28 Jul 2026 01:06PM UTC
Jobs 1
Files 91
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

28 Jul 2026 12:55PM UTC coverage: 97.995% (+0.01%) from 97.983%
30361090251

push

github

web-flow
feat(transpiler): add `filter_trivial` to `QDriftTrotterization` (#222)

* feat(transpiler): add filter_trivial to QDriftTrotterization

Excitations sampled by qDRIFT that act entirely within the known-occupied
or known-unoccupied mode set cannot change the sampled bitstrings, so
including them only wastes one of the num_terms slots. filter_trivial
rejects and re-draws such terms, tracking the occupied/unoccupied mode
sets from any preceding InitializeModes gate(s).

Keep the common (non-filtering) sampling path on a single batched
rng.choice(size=num_terms) draw rather than num_terms separate scalar
draws, since rejection sampling is only needed once filtering is
actually active.

Closes #194

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>

* feat(transpiler): support PrepareSlaterDeterminant in filter_trivial

Since PrepareSlaterDeterminant is the fused composition of an
InitializeModes reference occupation and an OrbitalRotation,
QDriftTrotterization's filter_trivial now treats it the same way it
would treat those two gates back-to-back: seed the
occupied/unoccupied mode sets from its occupation, then immediately
mark every mode it touches as "uncertain" because of the rotation it
also carries.

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>

69 of 69 new or added lines in 1 file covered. (100.0%)

10167 of 10375 relevant lines covered (98.0%)

319.4 hits per line

Jobs
ID Job ID Ran Files Coverage
1 30361090251.1 28 Jul 2026 01:06PM UTC 91
98.0
GitHub Action Run
Source Files on build 30361090251
  • Tree
  • List 91
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #30361090251
  • 006308b1 on github
  • Prev Build on main (#30342414309)
  • Next Build on main (#30363137094)
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