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

Qiskit / qiskit-fermions / 30363137094
98%

Build:
DEFAULT BRANCH: main
Ran 28 Jul 2026 01:33PM UTC
Jobs 1
Files 102
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 01:21PM UTC coverage: 97.997% (+0.002%) from 97.995%
30363137094

push

github

web-flow
Introduce proper python `Protocol`s (#226)

* refactor: consolidate qiskit_fermions.protocols

* feat(protocols): add SupportsFermionOperator protocol

Introduces the SupportsFermionOperator protocol along with its type-agnostic
fermion_operator wrapper, mirroring ffsim's equivalent. MajoranaOperator,
EdgeVertexOperator, and TransferVertexOperator implement it by delegating to
their respective FermionOperator conversion mappers, each with docstrings and
regenerated .pyi stubs; adds unit tests covering all three implementers plus
a duck-typed fake to confirm protocol-based dispatch.

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

* feat(protocols): add SupportsMajoranaOperator and majorana_operator

Mirrors the existing SupportsFermionOperator/fermion_operator pattern for
MajoranaOperator conversion. The protocol method is implemented only by
operator classes with a genuine native `*_to_majorana` mapper function
(FermionOperator, EdgeVertexOperator, TransferVertexOperator); a
fermionic-detour conversion chain for other operators can be added later
if needed. Includes unit tests for the wrapper and docstrings for the new
protocol, wrapper function, and Rust `_majorana_operator_` methods.

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

* docs(protocols): cross-link protocols with their helper functions

Each SupportsXOperator/SupportsCommutators protocol docstring now links to
its dispatching helper function and carries a runnable doctest, completing
the reverse direction of the existing helper -> protocol links. The
qiskit_fermions.protocols module docstring gains a Protocol/Method/Helper
function table (paired with a hidden autosummary block, so the :toctree:
stub pages still generate without duplicating the table) to give readers a
single place to see how the protocols and their dispatch functions relate.

The mappers.library module docstring now separates the type-agnostic
Python convenience mappers from the native library impleme... (continued)

104 of 105 new or added lines in 20 files covered. (99.05%)

10223 of 10432 relevant lines covered (98.0%)

317.66 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
80.0
python/qiskit_fermions/linalg/apply_unitary.py
Jobs
ID Job ID Ran Files Coverage
1 30363137094.1 28 Jul 2026 01:33PM UTC 102
98.0
GitHub Action Run
Source Files on build 30363137094
  • Tree
  • List 102
  • Changed 11
  • Source Changed 11
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #30363137094
  • f79618c9 on github
  • Prev Build on main (#30361090251)
  • Next Build on main (#30439919391)
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