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

Qiskit / qiskit-fermions / 29499706546
98%

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

16 Jul 2026 12:50PM UTC coverage: 97.733% (+0.002%) from 97.731%
29499706546

push

github

web-flow
feat: add `order_terms` for user-controlled term ordering (#184)

`canonical_order` imposes a single fixed order, but the order of an
operator's terms is otherwise dictated by how it happened to be
assembled. Since term iteration order can materially affect runtime
algorithm behavior (e.g. randomized product-formula sampling in the
qDRIFT pass, cf. #164), users need a way to impose an arbitrary,
reproducible order of their own.

`order_terms(op, key, *, reverse=False)` does this: it sorts the terms
by a `sorted`-style key function and rebuilds a new operator of the same
type, leaving the input untouched. It is pure Python (like the `mappers`
framework helpers) and works for any built-in operator type via the
`OperatorTrait` protocol, so it needs no per-type dispatch and has no C
API counterpart. Group indices are preserved: when the operator is
grouped, the key receives the `(actions, coeff, group)` tuple and each
term carries its group tag as it moves.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>

11 of 11 new or added lines in 3 files covered. (100.0%)

8020 of 8206 relevant lines covered (97.73%)

155.5 hits per line

Jobs
ID Job ID Ran Files Coverage
1 29499706546.1 16 Jul 2026 01:01PM UTC 84
97.73
GitHub Action Run
Source Files on build 29499706546
  • Tree
  • List 84
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29499706546
  • 86c4f933 on github
  • Prev Build on main (#29497777470)
  • Next Build on main (#29501847937)
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