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

Qiskit / qiskit-fermions / 23818320805
98%

Build:
DEFAULT BRANCH: main
Ran 31 Mar 2026 08:54PM UTC
Jobs 1
Files 45
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

31 Mar 2026 08:38PM UTC coverage: 96.598% (+0.04%) from 96.561%
23818320805

push

github

web-flow
[Python] initial `circuit` and `transpiler` modules (#53)

* [wip] FermionCircuit as a Facade pattern to QuantumCircuit

* [wip] minimal fermion creation gate logic

The decomposition-style definition of this gate is not what the final
form is going to look like. Specifically because it currently assumes a
Jordan-Wigner like transformation and a 1-to-1 index mapping of
fermionic to qubit indices which is fairly restrictive.

However, this shows a simple proof of concept for what the circuit
library could look like.

* [wip] basic prototype of fermion-to-qubit evolution synthesis

* [wip] code restructuring

* fix: do not remove imaginary phase during evolution synthesis

This was done due to a faulty example test case...

* fix: lint

* [wip] refactor to handle all FermionGate types in one pass

Rather than having individual fermion-to-qubit gate `TransformationPass`
implementations, we should handle _all_ `FermionGate` objects in a
single pass. This is important because we need to translate all gates in
order that they appear and insert them into a new `DAGCircuit` with a
qubit-based register (rather than a fermion-based one) whose size may be
different. Thus, we cannot really have an intermediate object which has
a fermion- and qubit-based register at the same time (which is not what
is really happening anyways and feels clunky, too).

In this form, we can have our transpilation happen in the following
stages:

1. fermion-level optimization (translates FermionGate to FermionGate)
   (not yet implemented at this point)
2. fermion-to-qubit layouting (prepares the F2QLayout dataclass; creates
   the qubit-based register that will later be used to build the
   DAGCircuit on top of; associates each fermion with a qubit (and vice
   versa))
3. fermion-to-qubit gate translation (similar to Qiskit's
   HighLevelSynthesis, iterates over all `DAGOpNode`s in the
   fermion-based circuit, calls out to a registered routine for
   translating every single gate to... (continued)

150 of 154 new or added lines in 13 files covered. (97.4%)

3407 of 3527 relevant lines covered (96.6%)

257.48 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
81.82
python/qiskit_fermions/circuit/fermion_gate.py
1
94.74
python/qiskit_fermions/circuit/fermion_circuit.py
1
97.3
python/qiskit_fermions/transpiler/passes/synthesis/evolution.py
Jobs
ID Job ID Ran Files Coverage
1 23818320805.1 31 Mar 2026 08:54PM UTC 45
96.6
GitHub Action Run
Source Files on build 23818320805
  • Tree
  • List 45
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23818320805
  • a164f9f7 on github
  • Prev Build on main (#23796909341)
  • Next Build on main (#23888795743)
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